OpendTect-6_4  6.4
uiodseis2dtreeitem.h
Go to the documentation of this file.
1 #ifndef uiodseis2dtreeitem_h
2 #define uiodseis2dtreeitem_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: May 2006
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "uiodmainmod.h"
17 #include "uiodattribtreeitem.h"
18 #include "uioddisplaytreeitem.h"
19 
20 class uiMenu;
21 class uiTaskRunner;
22 
23 
24 
25 
28  mDefineItemMembers( Line2DParent, TreeItem, TreeTop );
29  mShowMenu;
31  bool handleSubMenu(int);
32  bool loadDefaultData();
33  bool selectLoadAttribute(const TypeSet<Pos::GeomID>&,
34  const char* attrnm=sKeyRightClick(),int attridx=-1);
35  static const char* sKeyRightClick();
36  static const char* sKeyUnselected();
37  uiMenu* replaceattritm_;
38  uiMenu* removeattritm_;
39  uiMenu* dispattritm_;
40  uiMenu* hideattritm_;
41  uiMenu* editcoltabitm_;
42  void setTopAttribName(const char*);
43 };
44 
45 
46 
49 public:
50  const char* name() const { return typeid(*this).name(); }
51  uiTreeItem* create() const
52  { return new uiODLine2DParentTreeItem; }
53  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
54 };
55 
56 
59 public:
60  uiOD2DLineTreeItem(Pos::GeomID,int displayid=-1,
61  bool rgba=false);
62 
63  bool displayDefaultData();
64  bool addStoredData(const char*,int component,uiTaskRunner&);
65  void addAttrib(const Attrib::SelSpec&,uiTaskRunner&);
66  void showLineName(bool);
67  void setZRange(const Interval<float>);
68  void removeAttrib(const char*);
69 
70  Pos::GeomID getGeomID() const { return geomid_; }
71 
72 protected:
74  bool init();
75  const char* parentType() const;
76  uiString createDisplayName() const;
77 
78  uiODDataTreeItem* createAttribItem(const Attrib::SelSpec*) const;
79 
80  void createMenu(MenuHandler*,bool istb);
81  void handleMenuCB(CallBacker*);
82  void getNewData(CallBacker*);
83 
84 private:
85 
91  bool rgba_;
92 };
93 
94 
97 public:
98  uiOD2DLineSetAttribItem(const char* parenttype);
99  bool displayStoredData(const char*,int component,
100  uiTaskRunner&);
101  void setAttrib(const Attrib::SelSpec&,
102  uiTaskRunner&);
103  void clearAttrib();
104 
105 protected:
106  void createMenu(MenuHandler*,bool istb);
107  void handleMenuCB(CallBacker*);
108 
113 };
114 
115 #endif
Definition: uioddatatreeitem.h:31
#define mExpClass(module)
Definition: commondefs.h:160
MenuItem attrnoneitm_
Definition: uiodseis2dtreeitem.h:112
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
bool rgba_
Definition: uiodseis2dtreeitem.h:91
Definition: menuhandler.h:187
Definition: uiodtreeitem.h:27
OpendTect application top level object.
Definition: uiodmain.h:41
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: uiodseis2dtreeitem.h:47
MenuItem positionitm_
Definition: uiodseis2dtreeitem.h:90
bool init()
Definition: uiodseis2dtreeitem.h:95
Pos::GeomID getGeomID() const
Definition: uiodseis2dtreeitem.h:70
MenuItem zattritm_
Definition: uiodseis2dtreeitem.h:111
Definition: uiodseis2dtreeitem.h:57
Definition: uistring.h:89
Definition: uioddisplaytreeitem.h:24
Definition: uiodtreeitem.h:80
Definition: uiodseis2dtreeitem.h:26
MenuItem storeditm_
Definition: uiodseis2dtreeitem.h:109
#define mDefineItemMembers(type, inherited, parentitem)
Definition: uiodtreeitem.h:97
Set of (small) copyable elements.
Definition: commontypes.h:30
Definition: menuhandler.h:76
uiTreeItem * create() const
Definition: uiodseis2dtreeitem.h:51
#define mMenuOnAnyButton
Definition: uiodtreeitem.h:91
MenuItem panelitm_
Definition: uiodseis2dtreeitem.h:88
Position.
Definition: commontypes.h:42
MenuItem linenmitm_
Definition: uiodseis2dtreeitem.h:87
Pos::GeomID geomid_
Definition: uiodseis2dtreeitem.h:86
Definition: uimenu.h:65
#define mShowMenu
Definition: uiodtreeitem.h:90
Definition: uiodattribtreeitem.h:22
Index_Type GeomID
Definition: commontypes.h:52
Definition: uitaskrunner.h:26
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
MenuItem polylineitm_
Definition: uiodseis2dtreeitem.h:89
const char * name() const
Definition: uiodseis2dtreeitem.h:50
MenuItem steeringitm_
Definition: uiodseis2dtreeitem.h:110
Definition: uitreeitemmanager.h:34

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