OpendTect-6_4  6.4
uiodvw2dtreeitem.h
Go to the documentation of this file.
1 #ifndef uiodvw2dtreeitem_h
2 #define uiodvw2dtreeitem_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  CopyRight: (C) dGB Beheer B.V.
8  Author: Umesh Sinha
9  Date: Apr 2010
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiodmainmod.h"
16 #include "uitreeitemmanager.h"
17 #include "uistrings.h"
18 
19 class TrcKeyZSampling;
20 class uiTreeView;
21 class uiMenu;
22 class uiODApplMgr;
23 class uiODViewer2D;
24 class ZAxisTransform;
25 
26 namespace Attrib { class SelSpec; }
27 
28 
31 public:
32  uiODVw2DTreeItem(const uiString&);
34 
35  bool setZAxisTransform(ZAxisTransform*);
36 
37  void updSampling(const TrcKeyZSampling&,bool);
38  void updSelSpec(const Attrib::SelSpec*,bool wva);
39 
40  void fillPar(IOPar&) const;
41  void usePar(const IOPar&);
42 
43  static bool create(uiTreeItem*,int vwrvisid,int displayid);
44  static bool create(uiTreeItem*,const uiODViewer2D&,int displayid);
45  const uiODVw2DTreeItem* getVW2DItem(int displayid) const;
46  void addKeyBoardEvent( int id );
47 
48 
49 protected:
50 
51  virtual bool init();
52  virtual const char* iconName() const { return 0; }
53  static uiString sChangeSetup() { return m3Dots(tr("Change setup")); }
54 
56  int objid_;
58 
59  uiODApplMgr* applMgr();
60  uiODViewer2D* viewer2D();
61 
62  void addAction(uiMenu& mnu,uiString txt,int id,
63  const char* icon=0,bool enab=true);
64 
65  uiMenu* createAddMenu();
66  bool isAddItem(int id,bool addall) const;
67  uiMenu* createRemoveMenu();
68  bool isRemoveItem(int id,bool removeall) const;
69  int getNewItemID() const;
70 
71  virtual void insertStdSubMenu(uiMenu&);
72  virtual bool handleStdSubMenu(int menuid);
73 
74  virtual void updateCS(const TrcKeyZSampling&,bool) {}
75  virtual void updateSelSpec(const Attrib::SelSpec*,bool wva) {}
76  virtual void dataTransformCB(CallBacker*) {}
77  virtual void showAllChildren();
78  virtual void hideAllChildren();
79  virtual void removeAllChildren();
80  void keyPressedCB(CallBacker*);
81  void doSave();
82  void doSaveAs();
83  void renameVisObj();
84 
85 private:
86  void doStoreObject(bool);
87 
88 };
89 
90 
92 {
93  public:
94  virtual uiTreeItem* createForVis(const uiODViewer2D&,int visid) const
95  { return 0; }
96 };
97 
98 
99 
101 {
102 public:
105  ~uiODVw2DTreeTop();
106 
107  static const char* viewer2dptr();
108  static const char* applmgrstr();
109 
110  bool setZAxisTransform(ZAxisTransform*);
111 
112  void updSampling(const TrcKeyZSampling&,bool);
113  void updSelSpec(const Attrib::SelSpec*,bool wva);
114  const uiODVw2DTreeItem* getVW2DItem(int displayid) const;
115 
116 protected:
117 
118  void addFactoryCB(CallBacker*);
119  void removeFactoryCB(CallBacker*);
120 
121  virtual const char* parentType() const { return 0; }
122  uiODApplMgr* applMgr();
123  uiODViewer2D* viewer2D();
124 
126  bool selectWithKey(int);
127 };
128 
129 
130 #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
Application level manager - ties part servers together.
Definition: uiodapplmgr.h:55
OpendTect application top level object.
Definition: uiodmain.h:41
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
bool init()
Definition: uiodvw2dtreeitem.h:100
Definition: uistring.h:89
virtual void updateSelSpec(const Attrib::SelSpec *, bool wva)
Definition: uiodvw2dtreeitem.h:75
virtual void updateCS(const TrcKeyZSampling &, bool)
Definition: uiodvw2dtreeitem.h:74
virtual const char * parentType() const
Definition: uiodvw2dtreeitem.h:121
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
Definition: uitreeitemmanager.h:278
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
uiTreeFactorySet * tfs_
Definition: uiodvw2dtreeitem.h:125
Definition: uiodvw2dtreeitem.h:29
Definition: uimenu.h:65
static uiString sChangeSetup()
Definition: uiodvw2dtreeitem.h:53
Definition: uitreeview.h:33
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
Definition: uiodvw2dtreeitem.h:91
A 2D Viewer.
Definition: uiodviewer2d.h:45
static uiHor3DInterpol * create(uiParent *)
int objid_
Definition: uiodvw2dtreeitem.h:56
Definition: uitreeitemmanager.h:239
virtual void dataTransformCB(CallBacker *)
Definition: uiodvw2dtreeitem.h:76
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
ZAxisTransform * datatransform_
Definition: uiodvw2dtreeitem.h:57
virtual const char * iconName() const
Definition: uiodvw2dtreeitem.h:52
Base class for z-axis transforms.
Definition: zaxistransform.h:37
Definition: uitreeitemmanager.h:287
int displayid_
Definition: uiodvw2dtreeitem.h:55
Definition: uitreeitemmanager.h:34
#define m3Dots(txt)
Definition: uistrings.h:548
Semblance Attribute.
Definition: attribdataholder.h:25
virtual uiTreeItem * createForVis(const uiODViewer2D &, int visid) const
Definition: uiodvw2dtreeitem.h:94

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