OpendTect-6_4  6.4
uimpe.h
Go to the documentation of this file.
1 #ifndef uimpe_h
2 #define uimpe_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: July 2005
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uimpemod.h"
16 
17 #include "bufstring.h"
18 #include "callback.h"
19 #include "color.h"
20 #include "draw.h"
21 #include "emposid.h"
22 #include "emseedpicker.h"
23 #include "mpeengine.h"
24 #include "randcolor.h"
25 #include "valseriestracker.h"
26 
27 #include "uigroup.h"
28 
29 class TrcKeyValue;
30 class uiMPEPartServer;
31 class uiParent;
32 
33 namespace Attrib { class DescSet; }
34 
35 
36 namespace MPE
37 {
38 
39 class SectionTracker;
40 
41 
45 public:
46  bool checkInVolumeTrackMode() const;
47  bool checkActiveTracker() const;
48  bool checkStoredData(Attrib::SelSpec&,MultiID&) const;
49  bool checkPreloadedData(const MultiID&) const;
50 };
51 
57 {
58 public:
59  uiSetupGroup(uiParent*,const char* helpref);
62  virtual EMSeedPicker::TrackMode getMode() const = 0;
64  virtual EventTracker::CompareMethod getTrackingMethod() const = 0;
65  virtual void setSeedPos(const TrcKeyValue&) {}
66  virtual void setColor(const Color&) {}
67  virtual const Color& getColor() = 0;
68  virtual void setLineWidth(int) {}
69  virtual int getLineWidth() const = 0;
70  virtual void setMarkerStyle(const MarkerStyle3D&) {}
71  virtual const MarkerStyle3D& getMarkerStyle() = 0;
72 
73  virtual NotifierAccess* modeChangeNotifier() { return 0; }
74  virtual NotifierAccess* propertyChangeNotifier() { return 0; }
75  virtual NotifierAccess* eventChangeNotifier() { return 0; }
76  virtual NotifierAccess* correlationChangeNotifier() { return 0; }
77 
78  virtual bool commitToTracker(bool& fieldchg) const { return true; }
79  virtual bool commitToTracker() const;
80 
81  virtual void showGroupOnTop(const char* grpnm) {}
83 
85 };
86 
87 
91 typedef uiSetupGroup*(*uiSetupGrpCreationFunc)(uiParent*,const char* typestr);
92 
99 {
100 public:
101  void addFactory(uiSetupGrpCreationFunc f, const char* name);
102  uiSetupGroup* create(const char* nm,uiParent*,const char* typestr);
106 protected:
109 
110 };
111 
112 
120 {
121 public:
123 };
124 
125 
126 
132 
133 } // namespace MPE
134 
135 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
uiSetupGroup *(* uiSetupGrpCreationFunc)(uiParent *, const char *typestr)
Definition: uimpe.h:91
Definition: trckeyvalue.h:27
virtual NotifierAccess * modeChangeNotifier()
Definition: uimpe.h:73
Definition: uimpe.h:98
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
virtual void setLineWidth(int)
Definition: uimpe.h:68
#define mGlobal(module)
Definition: commondefs.h:163
TypeSet< uiSetupGrpCreationFunc > funcs
Definition: uimpe.h:108
Interface class for Notifier. See comments there.
Definition: callback.h:161
virtual void setMarkerStyle(const MarkerStyle3D &)
Definition: uimpe.h:70
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:32
uiSetupGroupFactory setupgrpfact
Definition: uimpe.h:122
virtual void showGroupOnTop(const char *grpnm)
Definition: uimpe.h:81
Definition: uiparent.h:26
virtual NotifierAccess * eventChangeNotifier()
Definition: uimpe.h:75
virtual void setSectionTracker(SectionTracker *)
Definition: uimpe.h:60
Set of BufferString objects.
Definition: bufstringset.h:28
Tracks sections of EM::EMObject with ID EM::SectionID.
Definition: sectiontracker.h:38
virtual void setSeedPos(const TrcKeyValue &)
Definition: uimpe.h:65
virtual void setColor(const Color &)
Definition: uimpe.h:66
uiMPEEngine & uiMPE()
Access function for an instance (and normally the only instance) of MPE::uiMPEEngine.
virtual void setMPEPartServer(uiMPEPartServer *)
Definition: uimpe.h:82
Implementation of Tracking part server interface.
Definition: uimpepartserv.h:33
virtual void setMode(EMSeedPicker::TrackMode)
Definition: uimpe.h:61
virtual NotifierAccess * propertyChangeNotifier()
Definition: uimpe.h:74
TrackMode
Definition: emseedpicker.h:106
Definition: draw.h:88
Definition: uimpe.h:56
virtual bool commitToTracker(bool &fieldchg) const
Definition: uimpe.h:78
virtual NotifierAccess * correlationChangeNotifier()
Definition: uimpe.h:76
Definition: uimpe.h:43
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
static uiHor3DInterpol * create(uiParent *)
CompareMethod
Definition: valseriestracker.h:74
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
BufferStringSet names_
Definition: uimpe.h:107
BufferString helpref_
Definition: uimpe.h:84
virtual void setTrackingMethod(EventTracker::CompareMethod)
Definition: uimpe.h:63
Definition: mpeengine.h:37
Holder class for MPE ui-factories. Is normally only retrieved by MPE::uiMPE().
Definition: uimpe.h:119
Compound key consisting of ints.
Definition: multiid.h:25
Semblance Attribute.
Definition: attribdataholder.h:25

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