OpendTect  6.3
uiodplanedatatreeitem.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: Kristofer Tingdahl
8  Date: May 2006
9 ________________________________________________________________________
10 
11 
12 -*/
13 
14 #include "uiodmainmod.h"
15 #include "uioddisplaytreeitem.h"
16 #include "uiodattribtreeitem.h"
18 #include "oduicommon.h"
19 #include "datapack.h"
20 #include "flatview.h"
21 #include "probe.h"
22 
23 class uiSliceSelDlg;
24 class TrcKeyZSampling;
25 namespace Attrib { class DescID; }
26 namespace Well { class Data; }
27 
28 
31 public:
32 
34 
35  bool init();
36 
37 protected:
39  Probe&);
40 
41  void updateDisplay();
42  void handleObjChanged(const ChangeData&);
43 
44  virtual void createMenu(MenuHandler*,bool istb);
45  virtual void handleMenuCB(CallBacker*);
46 
47  void updatePlanePos(CallBacker*);
48  void updatePositionDlg(CallBacker*);
49  void posDlgClosed(CallBacker*);
50 
51  void selChg(CallBacker*);
52  void posChange(CallBacker*);
53  void keyUnReDoPressedCB(CallBacker*);
54  void selectRGBA();
55 
62 
64 };
65 
66 
67 
71 public:
73  virtual void addMenuItems();
74  virtual bool handleSubMenu(int mnuid);
75  virtual bool setPosToBeAddedFromWell(const Well::Data&) =0;
76  static uiString sAddAtWellLocation();
77  static int sAddAtWellLOcationMenuID() { return 3; }
78 
79 protected:
80 
82 
83  virtual bool canAddFromWell() const =0;
84  virtual bool setProbeToBeAddedParams(int mnuid);
85  virtual bool setDefaultPosToBeAdded() =0;
86 };
87 
88 
92  mDefineItemMembers( InlineParent, PlaneDataParentTreeItem, SceneTreeTop );
94 
95  bool canShowSubMenu() const;
96  bool canAddFromWell() const { return true; }
97  Probe* createNewProbe() const;
98  virtual bool setPosToBeAddedFromWell(const Well::Data&);
99  const char* childObjTypeKey() const;
100  uiPresManagedTreeItem* addChildItem(const OD::ObjPresentationInfo&);
101 protected:
102  virtual bool setDefaultPosToBeAdded();
103 };
104 
105 
107 {
108 public:
109  const char* name() const { return typeid(*this).name(); }
111  { return new uiODInlineParentTreeItem; }
112  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
113 };
114 
115 
117 {
118 public:
119  uiODInlineTreeItem(Probe&,int displayid=-1);
120 
121 protected:
122  const char* parentType() const
123  { return typeid(uiODInlineParentTreeItem).name(); }
124 };
125 
126 
128 {
129 public:
130  uiODInlineAttribTreeItem(const char*);
131  static void initClass();
133 };
134 
135 
138 { mODTextTranslationClass(uiODCrossineParentTreeItem);
139  mDefineItemMembers( CrosslineParent, SceneProbeParentTreeItem,SceneTreeTop);
141  bool canShowSubMenu() const;
142  bool canAddFromWell() const { return true; }
143  const char* childObjTypeKey() const;
144  uiPresManagedTreeItem* addChildItem(const OD::ObjPresentationInfo&);
145  Probe* createNewProbe() const;
146  virtual bool setPosToBeAddedFromWell(const Well::Data&);
147 protected:
148  virtual bool setDefaultPosToBeAdded();
149 };
150 
151 
153  : public uiODSceneTreeItemFactory
154 {
155 public:
156  const char* name() const { return typeid(*this).name(); }
158  { return new uiODCrosslineParentTreeItem; }
159  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
160 };
161 
162 
164 {
165 public:
166  uiODCrosslineTreeItem(Probe&,int diplayid=-1);
167 
168 protected:
169  const char* parentType() const
170  { return typeid(uiODCrosslineParentTreeItem).name(); }
171 };
172 
173 
175 {
176 public:
177  uiODCrosslineAttribTreeItem(const char*);
178  static void initClass();
180 };
181 
182 
186  mDefineItemMembers( ZsliceParent, SceneProbeParentTreeItem, SceneTreeTop );
188  bool canShowSubMenu() const;
189  bool canAddFromWell() const { return true; }
190  const char* childObjTypeKey() const;
191  uiPresManagedTreeItem* addChildItem(const OD::ObjPresentationInfo&);
192  Probe* createNewProbe() const;
193  virtual bool setPosToBeAddedFromWell(const Well::Data&)
194  { return false; }
195 protected:
196  virtual bool setDefaultPosToBeAdded();
197 };
198 
199 
201 {
202 public:
203  const char* name() const { return typeid(*this).name(); }
205  { return new uiODZsliceParentTreeItem; }
206  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
207 };
208 
209 
212 public:
213  uiODZsliceTreeItem(Probe&,int displayid=-1);
214 
215 protected:
216  const char* parentType() const
217  { return typeid(uiODZsliceParentTreeItem).name(); }
218  uiString createDisplayName() const;
219 };
220 
221 
223 {
224 public:
225  uiODZsliceAttribTreeItem(const char*);
226  static void initClass();
228 };
Definition: uioddatatreeitem.h:53
Definition: uiodplanedatatreeitem.h:152
#define mExpClass(module)
Definition: commondefs.h:157
Definition: probe.h:26
Definition: uiodplanedatatreeitem.h:222
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
MenuItem addcrlitem_
Definition: uiodplanedatatreeitem.h:60
Definition: menuhandler.h:185
TrcKeyZSampling probetobeaddedpos_
Definition: uiodplanedatatreeitem.h:81
const char * parentType() const
Definition: uiodplanedatatreeitem.h:216
OpendTect application top level object.
Definition: uiodmain.h:38
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
MenuItem positionmnuitem_
Definition: uiodplanedatatreeitem.h:57
#define mMenuOnAnyButton
Definition: uiodscenetreeitem.h:80
Definition: uiodplanedatatreeitem.h:89
bool init()
Definition: uiodprobeparenttreeitem.h:65
Definition: uiodplanedatatreeitem.h:200
Definition: uislicesel.h:91
Definition: uiodplanedatatreeitem.h:29
Definition: uistring.h:88
Definition: uiodscenetreeitem.h:69
const char * parentType() const
Definition: uiodplanedatatreeitem.h:169
static int sAddAtWellLOcationMenuID()
Definition: uiodplanedatatreeitem.h:77
bool canAddFromWell() const
Definition: uiodplanedatatreeitem.h:142
Definition: uiodplanedatatreeitem.h:163
const char * name() const
Definition: uiodplanedatatreeitem.h:156
uiTreeItem * create() const
Definition: uiodplanedatatreeitem.h:157
virtual bool setPosToBeAddedFromWell(const Well::Data &)
Definition: uiodplanedatatreeitem.h:193
uiSliceSelDlg * positiondlg_
Definition: uiodplanedatatreeitem.h:63
const OD::SliceType orient_
Definition: uiodplanedatatreeitem.h:56
Definition: uiodplanedatatreeitem.h:183
Definition: uiodprmantreeitem.h:24
Definition: uiodplanedatatreeitem.h:68
Definition: menuhandler.h:74
const char * name() const
Definition: uiodplanedatatreeitem.h:109
Definition: wellcommon.h:16
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:32
Definition: uiodplanedatatreeitem.h:127
uiTreeItem * create() const
Definition: uiodplanedatatreeitem.h:204
MenuItem addinlitem_
Definition: uiodplanedatatreeitem.h:59
Definition: repos.h:23
const char * name() const
Definition: uiodplanedatatreeitem.h:203
Definition: uiodattribtreeitem.h:22
#define mDefineItemMembers(type, inherited, parentitem)
Definition: uiodscenetreeitem.h:86
bool canAddFromWell() const
Definition: uiodplanedatatreeitem.h:189
SliceType
OpendTect flat slice types.
Definition: oduicommon.h:30
static uiHor3DInterpol * create(uiParent *)
MenuItem gridlinesmnuitem_
Definition: uiodplanedatatreeitem.h:58
Definition: uiodplanedatatreeitem.h:106
Definition: monitorable.h:113
Definition: uiodplanedatatreeitem.h:174
Definition: uiodplanedatatreeitem.h:136
const char * parentType() const
Definition: uiodplanedatatreeitem.h:122
Definition: uiodplanedatatreeitem.h:116
The holder of all data concerning a certain well.
Definition: welldata.h:36
MenuItem addzitem_
Definition: uiodplanedatatreeitem.h:61
bool canAddFromWell() const
Definition: uiodplanedatatreeitem.h:96
Definition: probe.h:82
are helping classes for uiTreeViews, wich makes it easy to bundle inteligence and data to treeitems...
Definition: uitreeitem.h:34
Definition: odpresentationmgr.h:60
static void initClass()
Definition: uiodplanedatatreeitem.h:210
Semblance Attribute.
Definition: attribdataholder.h:21
uiTreeItem * create() const
Definition: uiodplanedatatreeitem.h:110
Definition: uiodprobeparenttreeitem.h:21

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