OpendTect-6_4  6.4
uiodbodydisplaytreeitem.h
Go to the documentation of this file.
1 #ifndef uiodbodydisplaytreeitem_h
2 #define uiodbodydisplaytreeitem_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 
23 namespace visSurvey { class MarchingCubesDisplay; class PolygonBodyDisplay;
24  class RandomPosBodyDisplay; }
25 
26 
28 {
30  mDefineItemMembers( BodyDisplayParent, TreeItem, TreeTop );
31  mShowMenu;
33  void loadBodies();
34 };
35 
36 
39 public:
40  const char* name() const { return typeid(*this).name(); }
41  uiTreeItem* create() const
42  { return new uiODBodyDisplayParentTreeItem; }
43  virtual uiTreeItem* createForVis(int visid,uiTreeItem*) const;
44 };
45 
46 
49 public:
50  uiODBodyDisplayTreeItem(int,bool dummy);
53 
54  EM::ObjectID emObjectID() const { return emid_; }
55  void setOnlyAtSectionsDisplay(bool);
56 
57 protected:
58  static uiString sCalcVolume() { return tr("Calculate Volume"); }
59  static uiString sPickedPolygons() { return tr("Picked Polygons"); }
60 
61  void prepareForShutdown();
62  bool askContinueAndSaveIfNeeded(bool withcancel);
63  virtual void createMenu(MenuHandler*,bool istb);
64  void handleMenuCB(CallBacker*);
65  void keyPressedCB(CallBacker*);
66  void colorChCB(CallBacker*);
67  uiODDataTreeItem* createAttribItem(const Attrib::SelSpec*) const;
68  bool createUiVisObj();
69 
70  bool init();
71  const char* parentType() const
72  {return typeid(uiODBodyDisplayParentTreeItem).name();}
73 
78 
86 
87 public:
88  void displayAtSections(bool yn)
89  { setOnlyAtSectionsDisplay( yn ); }
90 };
91 
92 
95 public:
96  uiODBodyDisplayDataTreeItem(const char* parenttype);
97 protected:
98  void createMenu(MenuHandler*,bool istb);
99  void handleMenuCB(CallBacker*);
100  uiString createDisplayName() const;
101 
104 };
105 
106 
107 
108 #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: uiodbodydisplaytreeitem.h:93
Definition: menuhandler.h:187
Definition: uiodtreeitem.h:27
OpendTect application top level object.
Definition: uiodmain.h:41
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
static uiString sCalcVolume()
Definition: uiodbodydisplaytreeitem.h:58
bool init()
Definition: uiodbodydisplaytreeitem.h:37
MenuItem displaypolygonmnuitem_
Definition: uiodbodydisplaytreeitem.h:82
MenuItem volcalmnuitem_
Definition: uiodbodydisplaytreeitem.h:85
MenuItem displaybodymnuitem_
Definition: uiodbodydisplaytreeitem.h:81
Definition: uistring.h:89
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
Definition: vismarchingcubessurfacedisplay.h:31
EM::ObjectID emObjectID() const
Definition: uiodbodydisplaytreeitem.h:54
#define mDefineItemMembers(type, inherited, parentitem)
Definition: uiodtreeitem.h:97
visSurvey::PolygonBodyDisplay * plg_
Definition: uiodbodydisplaytreeitem.h:76
Definition: vispolygonbodydisplay.h:46
Definition: menuhandler.h:76
MenuItem singlecolormnuitem_
Definition: uiodbodydisplaytreeitem.h:84
#define mMenuOnAnyButton
Definition: uiodtreeitem.h:91
Definition: uiodbodydisplaytreeitem.h:27
Definition: uiodbodydisplaytreeitem.h:47
used for displaying a set of random picks in xyz coordinate.
Definition: visrandomposbodydisplay.h:31
EM::ObjectID emid_
Definition: uiodbodydisplaytreeitem.h:74
#define mShowMenu
Definition: uiodtreeitem.h:90
MenuItem isochronmnuitem_
Definition: uiodbodydisplaytreeitem.h:103
Definition: uiodattribtreeitem.h:22
static uiString sPickedPolygons()
Definition: uiodbodydisplaytreeitem.h:59
static uiHor3DInterpol * create(uiParent *)
MenuItem saveasmnuitem_
Definition: uiodbodydisplaytreeitem.h:80
visSurvey::RandomPosBodyDisplay * rpb_
Definition: uiodbodydisplaytreeitem.h:77
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
MenuItem displayintersectionmnuitem_
Definition: uiodbodydisplaytreeitem.h:83
visSurvey::MarchingCubesDisplay * mcd_
Definition: uiodbodydisplaytreeitem.h:75
const char * parentType() const
Definition: uiodbodydisplaytreeitem.h:71
void displayAtSections(bool yn)
Definition: uiodbodydisplaytreeitem.h:88
MenuItem depthattribmnuitem_
Definition: uiodbodydisplaytreeitem.h:102
Definition: uitreeitemmanager.h:34
MenuItem savemnuitem_
Definition: uiodbodydisplaytreeitem.h:79

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