OpendTect-6_4  6.4
uiodvw2dvariabledensity.h
Go to the documentation of this file.
1 #ifndef uiodvw2dvariabledensity_h
2 #define uiodvw2dvariabledensity_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  CopyRight: (C) dGB Beheer B.V.
8  Author: Umesh Sinha
9  Date: June 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiodmainmod.h"
16 #include "uiodvw2dtreeitem.h"
17 
18 #include "datapack.h"
19 #include "menuhandler.h"
20 
21 class uiMenuHandler;
22 class VW2DSeis;
23 namespace ColTab { class Sequence; };
24 
25 
28 public:
31 
32  bool select();
33  bool showSubMenu();
34 
35 protected:
36 
37  bool init();
38  const char* iconName() const;
39  void initColTab();
40  void displayMiniCtab(const ColTab::Sequence*);
41  const char* parentType() const
42  { return typeid(uiODVw2DTreeTop).name(); }
43  bool isSelectable() const { return true; }
44 
49 
50  void createSelMenu(MenuItem&);
51  bool handleSelMenu(int mnuid);
52 
53  DataPack::ID createDataPack(Attrib::SelSpec&,
54  const BufferString& attribnm="",
55  const bool steering=false,
56  const bool stored=false);
57 
58  void checkCB(CallBacker*);
59  void colTabChgCB(CallBacker*);
60  void dataChangedCB(CallBacker*);
61  void dataTransformCB(CallBacker*);
62  void deSelectCB(CallBacker*);
63  void createMenuCB(CallBacker*);
64  void handleMenuCB(CallBacker*);
65 };
66 
67 
70 {
71 public:
72  const char* name() const { return typeid(*this).name(); }
73  uiTreeItem* create() const
74  { return new uiODVW2DVariableDensityTreeItem(); }
75  uiTreeItem* createForVis(const uiODViewer2D&,int visid) const;
76 };
77 
78 
79 #endif
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
OpendTect application top level object.
Definition: uiodmain.h:41
const char * name() const
Definition: uiodvw2dvariabledensity.h:72
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
bool init()
uiTreeItem * create() const
Definition: uiodvw2dvariabledensity.h:73
Definition: uiodvw2dtreeitem.h:100
Definition: uiodvw2dvariabledensity.h:26
bool isSelectable() const
Definition: uiodvw2dvariabledensity.h:43
int ID
Definition: datapack.h:38
Definition: uimenuhandler.h:27
Definition: menuhandler.h:76
VW2DSeis * dummyview_
Definition: uiodvw2dvariabledensity.h:45
MenuItem selattrmnuitem_
Definition: uiodvw2dvariabledensity.h:47
Definition: uiodvw2dvariabledensity.h:68
Definition: uiodvw2dtreeitem.h:29
const char * parentType() const
Definition: uiodvw2dvariabledensity.h:41
Definition: uiodvw2dtreeitem.h:91
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
A 2D Viewer.
Definition: uiodviewer2d.h:45
Definition: view2dseismic.h:19
uiMenuHandler * menu_
Definition: uiodvw2dvariabledensity.h:46
bool coltabinitialized_
Definition: uiodvw2dvariabledensity.h:48
Color Table
Definition: coltab.h:22
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
Definition: uitreeitemmanager.h:34

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