OpendTect-6_4  6.4
uiodvw2dpicksettreeitem.h
Go to the documentation of this file.
1 #ifndef uiodvw2dpicksettreeitem_h
2 #define uiodvw2dpicksettreeitem_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  CopyRight: (C) dGB Beheer B.V.
8  Author: Ranojay Sen
9  Date: Mar 2011
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiodmainmod.h"
16 #include "uiodvw2dtreeitem.h"
17 
18 #include "emposid.h"
19 
20 class VW2DPickSet;
21 
22 namespace Pick{ class Set; class SetMgr; }
23 
24 
25 
28 public:
31 
32  bool showSubMenu();
33  void getPickSetVwr2DIDs(const MultiID& mid,
34  TypeSet<int>& vw2ids) const;
35  void getLoadedPickSets(TypeSet<MultiID>&) const;
36  void removePickSet(const MultiID&);
37  void addPickSets(const TypeSet<MultiID>&);
38 
39 protected:
40 
41  bool init();
42  const char* iconName() const;
43  bool handleSubMenu(int);
44  const char* parentType() const
45  { return typeid(uiODVw2DTreeTop).name(); }
47 
48 public:
49  void setupNewPickSet(const MultiID&);
50 };
51 
52 
55 {
56 public:
57  const char* name() const { return typeid(*this).name(); }
58  uiTreeItem* create() const
59  { return new uiODVw2DPickSetParentTreeItem(); }
60  uiTreeItem* createForVis(const uiODViewer2D&,int visid) const;
61 };
62 
63 
66 public:
67  uiODVw2DPickSetTreeItem(int picksetid);
68  uiODVw2DPickSetTreeItem(int id,bool dummy);
70 
71  bool showSubMenu();
72  bool select();
73  const MultiID& pickMultiID() const;
74  const VW2DPickSet* vw2DObject() const { return vw2dpickset_; }
75  void keyPressedCB(CallBacker*);
76 
77 protected:
78 
79  bool init();
80  const char* parentType() const
81  { return typeid(uiODVw2DPickSetParentTreeItem).name(); }
82  bool isSelectable() const { return true; }
83 
84  void deSelCB(CallBacker*);
85  void checkCB(CallBacker*);
86  void displayChangedCB(CallBacker*);
87  void displayMiniCtab();
88  void removePickSetCB(CallBacker*);
89 
93 };
94 
95 
96 #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
Definition: uiodvw2dpicksettreeitem.h:64
OpendTect application top level object.
Definition: uiodmain.h:41
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
bool init()
Definition: uiodvw2dpicksettreeitem.h:53
Definition: uiodvw2dtreeitem.h:100
VW2DPickSet * vw2dpickset_
Definition: uiodvw2dpicksettreeitem.h:92
Definition: view2dpickset.h:26
const VW2DPickSet * vw2DObject() const
Definition: uiodvw2dpicksettreeitem.h:74
Set of picks with something in common.
Definition: pickset.h:31
const char * parentType() const
Definition: uiodvw2dpicksettreeitem.h:80
uiTreeItem * create() const
Definition: uiodvw2dpicksettreeitem.h:58
const char * name() const
Definition: uiodvw2dpicksettreeitem.h:57
Pick::SetMgr & picksetmgr_
Definition: uiodvw2dpicksettreeitem.h:46
Definition: uiodvw2dtreeitem.h:29
Pick::Set & pickset_
Definition: uiodvw2dpicksettreeitem.h:91
Definition: uiodvw2dtreeitem.h:91
A 2D Viewer.
Definition: uiodviewer2d.h:45
const char * parentType() const
Definition: uiodvw2dpicksettreeitem.h:44
Definition: picklocation.h:21
Definition: uiodvw2dpicksettreeitem.h:26
Definition: uitreeitemmanager.h:34
Utility to manage pick set lifecycles. Also supports change notifications.
Definition: picksetmgr.h:34
bool isSelectable() const
Definition: uiodvw2dpicksettreeitem.h:82
Compound key consisting of ints.
Definition: multiid.h:25
Pick::SetMgr & picksetmgr_
Definition: uiodvw2dpicksettreeitem.h:90

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