OpendTect-6_4  6.4
uiodplanedatatreeitem.h
Go to the documentation of this file.
1 #ifndef uiodplanedatatreeitem_h
2 #define uiodplanedatatreeitem_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 "uioddisplaytreeitem.h"
18 #include "oduicommon.h"
19 #include "datapack.h"
20 #include "flatview.h"
21 
22 class uiSliceSelDlg;
23 class TrcKeyZSampling;
24 namespace Attrib { class DescID; }
25 namespace Well { class Data; }
26 
27 
30 public:
31 
32  enum Type { Empty, Select, Default, RGBA };
33 
35 
36  bool init();
37  void setAtWellLocation(const Well::Data&);
38  void setTrcKeyZSampling(const TrcKeyZSampling&);
39  bool displayDefaultData();
40  bool displayGuidance();
41  bool displayDataFromDesc(const Attrib::DescID&,bool stored);
42  bool displayDataFromDataPack(DataPack::ID,
43  const Attrib::SelSpec&,
45  bool displayDataFromOther(int visid);
46 
47  static uiString sAddEmptyPlane();
48  static uiString sAddAndSelectData();
49  static uiString sAddDefaultData();
50  static uiString sAddColorBlended();
51  static uiString sAddAtWellLocation();
52 
53 protected:
55 
56  uiString createDisplayName() const;
57 
58  virtual void createMenu(MenuHandler*,bool istb);
59  virtual void handleMenuCB(CallBacker*);
60 
61  void updatePlanePos(CallBacker*);
62  void updatePositionDlg(CallBacker*);
63  void posDlgClosed(CallBacker*);
64  void keyPressCB(CallBacker*);
65  void movePlane(bool forward,int step=1);
66 
67  void selChg(CallBacker*);
68  void posChange(CallBacker*);
69  void movePlaneAndCalcAttribs(const TrcKeyZSampling&);
70  void keyUnReDoPressedCB(CallBacker*);
71 
73  const Type type_;
79 
81 };
82 
83 
84 
87  mDefineItemMembers( InlineParent, TreeItem, TreeTop );
88  mShowMenu;
90 };
91 
92 
94 {
95 public:
96  const char* name() const { return typeid(*this).name(); }
97  uiTreeItem* create() const
98  { return new uiODInlineParentTreeItem; }
99  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
100 };
101 
102 
104 {
105 public:
106  uiODInlineTreeItem(int displayid,Type);
107 
108 protected:
109  const char* parentType() const
110  { return typeid(uiODInlineParentTreeItem).name(); }
111 };
112 
113 
115 { mODTextTranslationClass(uiODCrossineParentTreeItem);
116  mDefineItemMembers( CrosslineParent, TreeItem, TreeTop );
117  mShowMenu;
119 };
120 
121 
123 {
124 public:
125  const char* name() const { return typeid(*this).name(); }
127  { return new uiODCrosslineParentTreeItem; }
128  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
129 };
130 
131 
133 {
134 public:
135  uiODCrosslineTreeItem(int displayid,Type);
136 
137 protected:
138  const char* parentType() const
139  { return typeid(uiODCrosslineParentTreeItem).name(); }
140 };
141 
142 
143 
146  mDefineItemMembers( ZsliceParent, TreeItem, TreeTop );
147  mShowMenu;
149 };
150 
151 
153 {
154 public:
155  const char* name() const { return typeid(*this).name(); }
157  { return new uiODZsliceParentTreeItem; }
158  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
159 };
160 
161 
163 {
164 public:
165  uiODZsliceTreeItem(int displayid,Type);
166 
167 protected:
168  const char* parentType() const
169  { return typeid(uiODZsliceParentTreeItem).name(); }
170 };
171 
172 
173 #endif
Definition: uiodplanedatatreeitem.h:122
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
MenuItem addcrlitem_
Definition: uiodplanedatatreeitem.h:77
FixedString Default()
Definition: keystrs.h:59
Definition: menuhandler.h:187
const char * parentType() const
Definition: uiodplanedatatreeitem.h:168
Definition: uiodtreeitem.h:27
OpendTect application top level object.
Definition: uiodmain.h:41
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
MenuItem positionmnuitem_
Definition: uiodplanedatatreeitem.h:74
Definition: uiodplanedatatreeitem.h:85
bool init()
AttribDesc ID: each Desc has a unique ID in a set; the boolean isstored allows us to know whether thi...
Definition: attribdescid.h:27
Definition: uiodplanedatatreeitem.h:152
Definition: uislicesel.h:93
Definition: uiodplanedatatreeitem.h:28
Definition: uistring.h:89
Definition: uioddisplaytreeitem.h:24
const char * parentType() const
Definition: uiodplanedatatreeitem.h:138
Definition: uiodtreeitem.h:80
int ID
Definition: datapack.h:38
Definition: uiodplanedatatreeitem.h:132
const char * name() const
Definition: uiodplanedatatreeitem.h:125
uiTreeItem * create() const
Definition: uiodplanedatatreeitem.h:126
#define mDefineItemMembers(type, inherited, parentitem)
Definition: uiodtreeitem.h:97
uiSliceSelDlg * positiondlg_
Definition: uiodplanedatatreeitem.h:80
const OD::SliceType orient_
Definition: uiodplanedatatreeitem.h:72
Definition: uiodplanedatatreeitem.h:144
Definition: menuhandler.h:76
const char * name() const
Definition: uiodplanedatatreeitem.h:96
Variable Density (=color-bar driven) parameters.
Definition: flatview.h:205
#define mMenuOnAnyButton
Definition: uiodtreeitem.h:91
Definition: directionalsurvey.h:19
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
Definition: oduicommon.h:78
uiTreeItem * create() const
Definition: uiodplanedatatreeitem.h:156
MenuItem addinlitem_
Definition: uiodplanedatatreeitem.h:76
const Type type_
Definition: uiodplanedatatreeitem.h:73
#define mShowMenu
Definition: uiodtreeitem.h:90
Definition: repos.h:25
const char * name() const
Definition: uiodplanedatatreeitem.h:155
Type
Definition: angles.h:27
SliceType
OpendTect flat slice types.
Definition: oduicommon.h:32
MenuItem gridlinesmnuitem_
Definition: uiodplanedatatreeitem.h:75
Definition: uiodplanedatatreeitem.h:93
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
Definition: uiodplanedatatreeitem.h:114
const char * parentType() const
Definition: uiodplanedatatreeitem.h:109
Definition: uiodplanedatatreeitem.h:103
The holder of all data concerning a certain well.
Definition: welldata.h:113
MenuItem addzitem_
Definition: uiodplanedatatreeitem.h:78
Definition: uitreeitemmanager.h:34
Definition: uiodplanedatatreeitem.h:162
Semblance Attribute.
Definition: attribdataholder.h:25
uiTreeItem * create() const
Definition: uiodplanedatatreeitem.h:97

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