OpendTect-6_4  6.4
uiodfaulttreeitem.h
Go to the documentation of this file.
1 #ifndef uiodfaulttreeitem_h
2 #define uiodfaulttreeitem_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 #include "emposid.h"
21 
22 class DataPointSet;
23 
24 
25 namespace visSurvey { class FaultDisplay; class FaultStickSetDisplay; }
26 
27 
30  typedef uiODTreeItem inheritedClass;
31 public:
34 
35 protected:
37  const char* iconName() const;
38  bool showSubMenu();
39  const char* parentType() const
40  { return typeid(uiODTreeTop).name(); }
41 };
42 
43 
46 public:
47  const char* name() const { return typeid(*this).name(); }
48  uiTreeItem* create() const
49  { return new uiODFaultParentTreeItem; }
50  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
51 };
52 
53 
56 public:
57  uiODFaultTreeItem(int,bool dummy);
60 
61  EM::ObjectID emObjectID() const { return emid_; }
62 
63  void setOnlyAtSectionsDisplay(bool);
64  bool isOnlyAtSections() const;
65 
66  static uiString sFaultPlanes() { return tr("Fault Planes" ); }
67  static uiString sFaultSticks() { return tr("Fault Sticks" ); }
68  static uiString sOnlyAtSections() { return tr( "Only at Sections" ); }
69  static uiString sOnlyAtHorizons() { return tr( "Only at Horizons" ); }
70 
71 protected:
72  bool askContinueAndSaveIfNeeded(bool withcancel);
73  void prepareForShutdown();
74  virtual void createMenu(MenuHandler*,bool istb);
75  void handleMenuCB(CallBacker*);
76  void colorChCB(CallBacker*);
77 
78  uiODDataTreeItem* createAttribItem(const Attrib::SelSpec*) const;
79 
80  bool init();
81  const char* parentType() const
82  {return typeid(uiODFaultParentTreeItem).name();}
83 
85 
94 };
95 
96 
99  mDefineItemMembers( FaultStickSetParent, TreeItem, TreeTop );
100  mShowMenu;
102 };
103 
104 
106  : public uiODTreeItemFactory
108 public:
109  const char* name() const { return typeid(*this).name(); }
110  uiTreeItem* create() const
111  { return new uiODFaultStickSetParentTreeItem; }
112  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
113 };
114 
115 
118 public:
119  uiODFaultStickSetTreeItem(int,bool dummy);
122 
123  EM::ObjectID emObjectID() const { return emid_; }
124 
125 protected:
126  bool askContinueAndSaveIfNeeded( bool withcancel );
127  void prepareForShutdown();
128  void createMenu(MenuHandler*,bool istb);
129  void handleMenuCB(CallBacker*);
130  void colorChCB(CallBacker*);
131 
132  bool init();
133  const char* parentType() const
134  {return typeid(uiODFaultStickSetParentTreeItem).name();}
135 
136 
142 };
143 
144 
147 public:
149  const char* parenttype);
150 
151  void setDataPointSet(const DataPointSet&);
152 
153 protected:
154 
155  void createMenu(MenuHandler*,bool istb);
156  void handleMenuCB(CallBacker*);
157  uiString createDisplayName() const;
158 
163 
164  bool changed_;
166 };
167 
168 #endif
Definition: uioddatatreeitem.h:31
#define mExpClass(module)
Definition: commondefs.h:160
od_int32 ObjectID
Definition: emposid.h:24
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Definition: menuhandler.h:187
const char * parentType() const
Definition: uiodfaulttreeitem.h:39
Set of data points with group selection.
Definition: datapointset.h:48
Definition: uiodtreeitem.h:27
OpendTect application top level object.
Definition: uiodmain.h:41
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
static uiString sFaultPlanes()
Definition: uiodfaulttreeitem.h:66
MenuItem onlyatsectmnuitem_
Definition: uiodfaulttreeitem.h:138
MenuItem displayintersectionmnuitem_
Definition: uiodfaulttreeitem.h:90
MenuItem savemnuitem_
Definition: uiodfaulttreeitem.h:139
MenuItem loadsurfacedatamnuitem_
Definition: uiodfaulttreeitem.h:161
Definition: uiodfaulttreeitem.h:145
visSurvey::FaultDisplay * faultdisplay_
Definition: uiodfaulttreeitem.h:93
MenuItem saveasmnuitem_
Definition: uiodfaulttreeitem.h:87
Definition: uiodfaulttreeitem.h:28
Definition: uiodfaulttreeitem.h:105
bool init()
EM::ObjectID emObjectID() const
Definition: uiodfaulttreeitem.h:123
EM::ObjectID emObjectID() const
Definition: uiodfaulttreeitem.h:61
bool changed_
Definition: uiodfaulttreeitem.h:164
Definition: uistring.h:89
Definition: uioddisplaytreeitem.h:24
Definition: uiodtreeitem.h:80
EM::ObjectID emid_
Definition: uiodfaulttreeitem.h:165
visSurvey::FaultStickSetDisplay * faultsticksetdisplay_
Definition: uiodfaulttreeitem.h:141
Used for displaying a polyline, preview for a random line created throught well path.
Definition: visarrowdisplay.h:20
const char * parentType() const
Definition: uiodfaulttreeitem.h:81
const char * parentType() const
Definition: uiodfaulttreeitem.h:133
#define mDefineItemMembers(type, inherited, parentitem)
Definition: uiodtreeitem.h:97
EM::ObjectID emid_
Definition: uiodfaulttreeitem.h:84
Definition: uiodfaulttreeitem.h:54
Definition: visfaultdisplay.h:55
MenuItem singlecolmnuitem_
Definition: uiodfaulttreeitem.h:92
MenuItem algomnuitem_
Definition: uiodfaulttreeitem.h:162
Definition: menuhandler.h:76
static uiString sFaultSticks()
Definition: uiodfaulttreeitem.h:67
MenuItem displaystickmnuitem_
Definition: uiodfaulttreeitem.h:89
#define mMenuOnAnyButton
Definition: uiodtreeitem.h:91
MenuItem displayintersecthorizonmnuitem_
Definition: uiodfaulttreeitem.h:91
Definition: uiodtreeitem.h:50
MenuItem saveasmnuitem_
Definition: uiodfaulttreeitem.h:140
MenuItem savemnuitem_
Definition: uiodfaulttreeitem.h:86
#define mShowMenu
Definition: uiodtreeitem.h:90
Definition: uiodattribtreeitem.h:22
Definition: uiodfaulttreeitem.h:44
static uiString sOnlyAtSections()
Definition: uiodfaulttreeitem.h:68
static uiHor3DInterpol * create(uiParent *)
EM::ObjectID emid_
Definition: uiodfaulttreeitem.h:137
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
MenuItem savesurfacedatamnuitem_
Definition: uiodfaulttreeitem.h:160
Definition: uiodfaulttreeitem.h:97
Display class for FaultStickSets.
Definition: visfaultsticksetdisplay.h:45
Definition: uitreeitemmanager.h:34
static uiString sOnlyAtHorizons()
Definition: uiodfaulttreeitem.h:69
Definition: uiodfaulttreeitem.h:116
MenuItem displayplanemnuitem_
Definition: uiodfaulttreeitem.h:88
MenuItem depthattribmnuitem_
Definition: uiodfaulttreeitem.h:159

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