OpendTect-6_4  6.4
uiodrandlinetreeitem.h
Go to the documentation of this file.
1 #ifndef uiodrandlinetreeitem_h
2 #define uiodrandlinetreeitem_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 
19 class IOObj;
20 class uiRandomLinePolyLineDlg;
21 namespace Geometry { class RandomLineSet; }
22 
23 
25 {
27  mDefineItemMembers( RandomLineParent, TreeItem, TreeTop );
28  mShowMenu;
30 
31  bool load(const IOObj&,int);
32  bool addStored(int);
33  void genRandLine(int);
34  void genFromContours();
35  void genFromExisting();
36  void genFromPolygon();
37  void genFromTable();
38  void genFromWell();
39  void loadRandLineFromWell(CallBacker*);
40  void genFromPicks();
41  void rdlPolyLineDlgCloseCB(CallBacker*);
42  void removeChild(uiTreeItem*);
43  uiRandomLinePolyLineDlg* rdlpolylinedlg_;
44 };
45 
46 
47 namespace visSurvey { class RandomTrackDisplay; }
48 
49 
52 public:
53  const char* name() const { return typeid(*this).name(); }
54  uiTreeItem* create() const
55  { return new uiODRandomLineParentTreeItem; }
56  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
57 };
58 
59 
62 public:
63  enum Type { Empty, Select, Default, RGBA };
64 
65  uiODRandomLineTreeItem(int displayid=-1,Type tp=Empty,
66  int rlid_=-1);
67 
68  bool init();
69  bool displayDefaultData();
70  void setRandomLineID(int id);
71 
72 protected:
73 
74  virtual void createMenu(MenuHandler*,bool istb);
75  void handleMenuCB(CallBacker*);
76  void changeColTabCB(CallBacker*);
77  void remove2DViewerCB(CallBacker*);
78  const char* parentType() const
79  { return typeid(uiODRandomLineParentTreeItem).name(); }
80 
81  void editNodes();
82 
90  int rlid_;
91 };
92 
93 
94 #endif
MenuItem saveas2dmnuitem_
Definition: uiodrandlinetreeitem.h:87
int rlid_
Definition: uiodrandlinetreeitem.h:90
#define mExpClass(module)
Definition: commondefs.h:160
uiRandomLinePolyLineDlg * rdlpolylinedlg_
Definition: uiodrandlinetreeitem.h:43
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
FixedString Default()
Definition: keystrs.h:59
Definition: ioobj.h:58
Definition: menuhandler.h:187
Definition: uiodtreeitem.h:27
OpendTect application top level object.
Definition: uiodmain.h:41
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
bool init()
Definition: uiodrandlinetreeitem.h:24
const char * parentType() const
Definition: uiodrandlinetreeitem.h:78
MenuItem editnodesmnuitem_
Definition: uiodrandlinetreeitem.h:83
Definition: uioddisplaytreeitem.h:24
Definition: uiodtreeitem.h:80
Used for displaying a polyline, preview for a random line created throught well path.
Definition: visarrowdisplay.h:20
Type type_
Definition: uiodrandlinetreeitem.h:89
#define mDefineItemMembers(type, inherited, parentitem)
Definition: uiodtreeitem.h:97
MenuItem insertnodemnuitem_
Definition: uiodrandlinetreeitem.h:84
Definition: uiodrandlinetreeitem.h:50
Definition: menuhandler.h:76
#define mMenuOnAnyButton
Definition: uiodtreeitem.h:91
Definition: oduicommon.h:78
#define mShowMenu
Definition: uiodtreeitem.h:90
Type
Definition: angles.h:27
MenuItem usewellsmnuitem_
Definition: uiodrandlinetreeitem.h:85
static uiHor3DInterpol * create(uiParent *)
Definition: uiodrandlinetreeitem.h:60
MenuItem saveasmnuitem_
Definition: uiodrandlinetreeitem.h:86
Definition: uitreeitemmanager.h:34
Definition: arraytesselator.h:21
MenuItem create2dgridmnuitem_
Definition: uiodrandlinetreeitem.h:88

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