OpendTect-6_4  6.4
uiodpicksettreeitem.h
Go to the documentation of this file.
1 #ifndef uiodpicksettreeitem_h
2 #define uiodpicksettreeitem_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 namespace Pick { class Set; }
20 
21 
22 
25  mDefineItemMembers( PickSetParent, TreeItem, TreeTop );
26  mShowMenu;
28  void addPickSet(Pick::Set*);
29  void setRemovedCB(CallBacker*);
31 };
32 
33 
36 public:
37 
38  const char* name() const { return typeid(*this).name(); }
39  uiTreeItem* create() const { return new uiODPickSetParentTreeItem; }
40  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
41 
42 };
43 
44 
47 public:
48  uiODPickSetTreeItem(int dispid,Pick::Set&);
49  virtual ~uiODPickSetTreeItem();
50 
51  virtual bool actModeWhenSelected() const;
52  void showAllPicks(bool yn);
53  Pick::Set& getSet() { return set_; }
54  const Pick::Set& getSet() const { return set_; }
55 
56 protected:
57 
58  bool init();
59  void prepareForShutdown();
60  bool askContinueAndSaveIfNeeded(bool withcancel);
61  void setChg(CallBacker*);
62  virtual void createMenu(MenuHandler*,bool istb);
63  void handleMenuCB(CallBacker*);
64  bool doubleClick(uiTreeViewItem*);
65  virtual const char* parentType() const
66  { return typeid(uiODPickSetParentTreeItem).name(); }
67 
69 
76 
77  void selChangedCB(CallBacker*);
78 };
79 
80 
83  mDefineItemMembers( PolygonParent, TreeItem, TreeTop );
84  mShowMenu;
87  void addPolygon(Pick::Set*);
88  void setRemovedCB(CallBacker*);
89 
90 };
91 
92 
95 public:
96 
97  const char* name() const { return typeid(*this).name(); }
98  uiTreeItem* create() const { return new uiODPolygonParentTreeItem; }
99  uiTreeItem* createForVis(int visid,uiTreeItem*) const;
100 
101 };
102 
103 
106 public:
107  uiODPolygonTreeItem(int dispid,Pick::Set&);
108  virtual ~uiODPolygonTreeItem();
109 
110  virtual bool actModeWhenSelected() const;
111  void showAllPicks(bool yn);
112  Pick::Set& getSet() { return set_; }
113  const Pick::Set& getSet() const { return set_; }
114 
115 protected:
116 
117  bool init();
118  void prepareForShutdown();
119  bool askContinueAndSaveIfNeeded(bool withcancel);
120  void setChg(CallBacker*);
121  virtual void createMenu(MenuHandler*,bool istb);
122  void handleMenuCB(CallBacker*);
123  bool doubleClick(uiTreeViewItem*);
124  virtual const char* parentType() const
125  { return typeid(uiODPolygonParentTreeItem).name(); }
126 
128 
134 
135  void selChangedCB(CallBacker*);
136 };
137 
138 
139 #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: menuhandler.h:187
Definition: uiodtreeitem.h:27
OpendTect application top level object.
Definition: uiodmain.h:41
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
MenuItem closepolyitem_
Definition: uiodpicksettreeitem.h:133
bool init()
Definition: uioddisplaytreeitem.h:24
Definition: uiodtreeitem.h:80
Pick::Set & getSet()
Definition: uiodpicksettreeitem.h:112
MenuItem storeasmnuitem_
Definition: uiodpicksettreeitem.h:130
virtual const char * parentType() const
Definition: uiodpicksettreeitem.h:65
#define mDefineItemMembers(type, inherited, parentitem)
Definition: uiodtreeitem.h:97
Set of picks with something in common.
Definition: pickset.h:31
Definition: uiodpicksettreeitem.h:93
Definition: uitreeview.h:201
Definition: menuhandler.h:76
#define mMenuOnAnyButton
Definition: uiodtreeitem.h:91
const Pick::Set & getSet() const
Definition: uiodpicksettreeitem.h:113
MenuItem dirmnuitem_
Definition: uiodpicksettreeitem.h:72
Pick::Set & set_
Definition: uiodpicksettreeitem.h:127
MenuItem storemnuitem_
Definition: uiodpicksettreeitem.h:70
MenuItem propertymnuitem_
Definition: uiodpicksettreeitem.h:75
const Pick::Set & getSet() const
Definition: uiodpicksettreeitem.h:54
#define mShowMenu
Definition: uiodtreeitem.h:90
Pick::Set & getSet()
Definition: uiodpicksettreeitem.h:53
Definition: uiodpicksettreeitem.h:23
Definition: uiodpicksettreeitem.h:45
Pick::Set & set_
Definition: uiodpicksettreeitem.h:68
static uiHor3DInterpol * create(uiParent *)
Definition: picklocation.h:21
MenuItem convertbodymnuitem_
Definition: uiodpicksettreeitem.h:74
Definition: uiodpicksettreeitem.h:81
MenuItem storeasmnuitem_
Definition: uiodpicksettreeitem.h:71
MenuItem onlyatsectmnuitem_
Definition: uiodpicksettreeitem.h:73
Definition: uiodpicksettreeitem.h:104
MenuItem propertymnuitem_
Definition: uiodpicksettreeitem.h:132
Definition: uiodpicksettreeitem.h:34
Definition: uitreeitemmanager.h:34
MenuItem storemnuitem_
Definition: uiodpicksettreeitem.h:129
virtual const char * parentType() const
Definition: uiodpicksettreeitem.h:124
MenuItem onlyatsectmnuitem_
Definition: uiodpicksettreeitem.h:131

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