OpendTect-6_4  6.4
view2ddataman.h
Go to the documentation of this file.
1 #ifndef view2ddataman_h
2 #define view2ddataman_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 "uiviewer2dmod.h"
16 #include "callback.h"
17 #include "factory.h"
18 #include "emposid.h"
19 
20 class Vw2DDataObject;
21 class uiFlatViewWin;
23 
24 mExpClass(uiViewer2D) Vw2DDataManager : public CallBacker
25 {
26 public:
28  ~Vw2DDataManager();
29 
30  void addObject(Vw2DDataObject*);
31  void removeObject(Vw2DDataObject*);
32  void removeAll();
33 
34  void getObjects(ObjectSet<Vw2DDataObject>&) const;
35 
36  const Vw2DDataObject* getObject(int id) const;
37  Vw2DDataObject* getObject(int id);
38 
39  void setSelected(Vw2DDataObject*);
40  int selectedID() { return selectedid_; }
41 
42  void usePar(const IOPar&,uiFlatViewWin*,
44  void fillPar(IOPar&) const;
45 
48  const ObjectSet<uiFlatViewAuxDataEditor>&,factory);
49 
53 
54 protected:
55 
56  void deSelect(int id);
57 
60  int freeid_;
61 
62  static const char* sKeyNrObjects() { return "Nr objects"; }
63 
64  bool similarObjectPresent(
65  const Vw2DDataObject*) const;
66 public:
67  void getObjectIDs(TypeSet<int>&) const;
68 };
69 
70 #endif
#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
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
CNotifier< Vw2DDataManager, int > dataObjAdded
Definition: view2ddataman.h:51
ObjectSet< Vw2DDataObject > objects_
Definition: view2ddataman.h:58
Definition: view2ddataman.h:24
Notifier< Vw2DDataManager > addRemove
Definition: view2ddataman.h:50
int selectedID()
Definition: view2ddataman.h:40
#define mDefineFactory3ParamInClass(T, P0, P1, P2, funcname)
Definition: factory.h:496
void removeAll()
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
CNotifier< Vw2DDataManager, int > dataObjToBeRemoved
Definition: view2ddataman.h:52
Definition: view2ddata.h:24
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
Flatview auxiliary data editor.
Definition: uiflatauxdataeditor.h:23
int selectedid_
Definition: view2ddataman.h:59
Base class for windows containing one or more uiFlatViewer(s).
Definition: uiflatviewwin.h:31
static const char * sKeyNrObjects()
Definition: view2ddataman.h:62
int freeid_
Definition: view2ddataman.h:60

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