OpendTect-6_4  6.4
uiodvw2dfaulttreeitem.h
Go to the documentation of this file.
1 #ifndef uiodvw2dfaulttreeitem_h
2 #define uiodvw2dfaulttreeitem_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  CopyRight: (C) dGB Beheer B.V.
8  Author: Umesh Sinha
9  Date: Mar 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiodmainmod.h"
16 #include "uiodvw2dtreeitem.h"
17 
18 #include "emposid.h"
19 
20 class VW2DFault;
21 class uiODViewer2D;
22 
23 
26 public:
29 
30  bool showSubMenu();
32  TypeSet<int>& vw2dids ) const;
33  void getLoadedFaults(
34  TypeSet<EM::ObjectID>& emids) const;
36  void addFaults(const TypeSet<EM::ObjectID>&);
37  void addNewTempFault(EM::ObjectID emid);
38 
39 protected:
40 
41  bool init();
42  const char* iconName() const;
43  bool handleSubMenu(int);
44  const char* parentType() const
45  { return typeid(uiODVw2DTreeTop).name(); }
46 public:
48 };
49 
50 
53 {
54 public:
55  const char* name() const { return typeid(*this).name(); }
56  uiTreeItem* create() const
57  { return new uiODVw2DFaultParentTreeItem(); }
58  uiTreeItem* createForVis(const uiODViewer2D&,int visid) const;
59 };
60 
61 
64 public:
66  uiODVw2DFaultTreeItem(int dispid,bool dummy);
68 
69  bool showSubMenu();
70  bool select();
71  EM::ObjectID emObjectID() const { return emid_; }
72  const VW2DFault* vw2DObject() const { return faultview_; }
73 
74 protected:
75 
76  bool init();
77  const char* parentType() const
78  { return typeid(uiODVw2DFaultParentTreeItem).name(); }
79  bool isSelectable() const { return true; }
80 
81  void updateCS(const TrcKeyZSampling&,bool upd);
82  void deSelCB(CallBacker*);
83  void checkCB(CallBacker*);
84  void emobjAbtToDelCB(CallBacker*);
85  void displayMiniCtab();
86 
87  void emobjChangeCB(CallBacker*);
88  void enableKnotsCB(CallBacker*);
89  void propChgCB(CallBacker*);
90 
93  void renameVisObj();
96 };
97 
98 
99 #endif
#define mExpClass(module)
Definition: commondefs.h:160
od_int32 ObjectID
Definition: emposid.h:24
Definition: uiodvw2dfaulttreeitem.h:62
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
EM::ObjectID emid_
Definition: uiodvw2dfaulttreeitem.h:91
OpendTect application top level object.
Definition: uiodmain.h:41
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
bool init()
Definition: uiodvw2dtreeitem.h:100
void setupNewTempFault(EM::ObjectID emid)
Definition: view2dfault.h:27
const VW2DFault * vw2DObject() const
Definition: uiodvw2dfaulttreeitem.h:72
Definition: uiodvw2dfaulttreeitem.h:51
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
VW2DFault * faultview_
Definition: uiodvw2dfaulttreeitem.h:92
Definition: uiodvw2dtreeitem.h:29
EM::ObjectID emObjectID() const
Definition: uiodvw2dfaulttreeitem.h:71
void removeFault(EM::Fault &)
const char * name() const
Definition: uiodvw2dfaulttreeitem.h:55
Definition: uiodvw2dtreeitem.h:91
A 2D Viewer.
Definition: uiodviewer2d.h:45
uiTreeItem * create() const
Definition: uiodvw2dfaulttreeitem.h:56
bool isSelectable() const
Definition: uiodvw2dfaulttreeitem.h:79
const char * parentType() const
Definition: uiodvw2dfaulttreeitem.h:77
const char * parentType() const
Definition: uiodvw2dfaulttreeitem.h:44
Definition: uitreeitemmanager.h:34
void addFaults(const TypeSet< EM::ObjectID > &)
Definition: uiodvw2dfaulttreeitem.h:24
void getLoadedFaults(TypeSet< EM::ObjectID > &) const
void addNewTempFault(EM::ObjectID emid)
void getFaultVwr2DIDs(EM::ObjectID emid, TypeSet< int > &vw2dids) const

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019