OpendTect-6_4  6.4
uiodvw2dhor2dtreeitem.h
Go to the documentation of this file.
1 #ifndef uiodvw2dhor2dtreeitem_h
2 #define uiodvw2dhor2dtreeitem_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  CopyRight: (C) dGB Beheer B.V.
8  Author: Umesh Sinha
9  Date: Apr 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiodmainmod.h"
16 #include "uiodvw2dtreeitem.h"
17 #include "uistring.h"
18 
19 #include "emposid.h"
20 
21 class Vw2DHorizon2D;
22 
23 
26 public:
29 
30  bool showSubMenu();
31  void getHor2DVwr2DIDs(EM::ObjectID emid,
32  TypeSet<int>& vw2dids ) const;
33  void getLoadedHorizon2Ds(
34  TypeSet<EM::ObjectID>&) const;
35  void removeHorizon2D(EM::ObjectID emid);
36  void addHorizon2Ds(const TypeSet<EM::ObjectID>&);
37  void addNewTrackingHorizon2D(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  void getNonLoadedTrackedHor2Ds(
48 public:
49  void setupTrackingHorizon2D(EM::ObjectID emid);
50 };
51 
52 
55 {
56 public:
57  const char* name() const { return typeid(*this).name(); }
58  uiTreeItem* create() const
59  { return new uiODVw2DHor2DParentTreeItem(); }
60  uiTreeItem* createForVis(const uiODViewer2D&,int visid) const;
61 };
62 
63 
66 public:
68  uiODVw2DHor2DTreeItem(int dispid,bool dummy);
70 
71  bool showSubMenu();
72  bool select();
73  EM::ObjectID emObjectID() const { return emid_; }
74  const Vw2DHorizon2D* vw2DObject() const { return horview_; }
75 
76 protected:
77 
78  bool init();
79  const char* parentType() const
80  { return typeid(uiODVw2DHor2DParentTreeItem).name(); }
81  bool isSelectable() const { return true; }
82 
83  void updateSelSpec(const Attrib::SelSpec*,bool wva);
84  void deSelCB(CallBacker*);
85  void checkCB(CallBacker*);
86  void emobjAbtToDelCB(CallBacker*);
87  void mousePressInVwrCB(CallBacker*);
88  void mouseReleaseInVwrCB(CallBacker*);
89  void displayMiniCtab();
90 
91  void emobjChangeCB(CallBacker*);
92  void propChgCB(CallBacker*);
93 
97 
98  void renameVisObj();
101 };
102 
103 #endif
#define mExpClass(module)
Definition: commondefs.h:160
od_int32 ObjectID
Definition: emposid.h:24
bool trackerefed_
Definition: uiodvw2dhor2dtreeitem.h:96
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
const char * name() const
Definition: uiodvw2dhor2dtreeitem.h:57
const Vw2DHorizon2D * vw2DObject() const
Definition: uiodvw2dhor2dtreeitem.h:74
Definition: uiodvw2dhor2dtreeitem.h:24
OpendTect application top level object.
Definition: uiodmain.h:41
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
EM::ObjectID emid_
Definition: view2ddata.h:69
bool init()
Definition: uiodvw2dtreeitem.h:100
Definition: uiodvw2dhor2dtreeitem.h:64
const char * parentType() const
Definition: uiodvw2dhor2dtreeitem.h:79
const char * name() const
EM::ObjectID emObjectID() const
Definition: uiodvw2dhor2dtreeitem.h:73
Definition: uiodvw2dtreeitem.h:29
uiTreeItem * create() const
Definition: uiodvw2dhor2dtreeitem.h:58
Vw2DHorizon2D * horview_
Definition: uiodvw2dhor2dtreeitem.h:95
bool isSelectable() const
Definition: uiodvw2dhor2dtreeitem.h:81
Definition: uiodvw2dtreeitem.h:91
A 2D Viewer.
Definition: uiodviewer2d.h:45
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
const char * parentType() const
Definition: uiodvw2dhor2dtreeitem.h:44
Definition: uitreeitemmanager.h:34
Definition: uiodvw2dhor2dtreeitem.h:53
EM::ObjectID emid_
Definition: uiodvw2dhor2dtreeitem.h:94
Definition: view2dhorizon2d.h:30

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