OpendTect  6.6
uimpepartserv.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: K. Tingdahl
8  Date: December 2004
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uimpemod.h"
15 #include "attribsel.h"
16 #include "uiapplserv.h"
17 #include "multiid.h"
18 #include "trckeyzsampling.h"
19 #include "datapack.h"
20 #include "emposid.h"
21 #include "emtracker.h"
22 
23 class BufferStringSet;
24 
25 namespace Geometry { class Element; }
26 namespace MPE { class uiSetupGroup; class DataHolder; }
27 namespace Attrib { class DescSet; class DataCubes; class Data2DArray; }
28 
29 
34 public:
38  const Attrib::DescSet* getCurAttrDescSet(bool is2d) const;
39 
40  const char* name() const { return "MPE";}
41 
42  int getTrackerID(const EM::ObjectID&) const;
43  int getTrackerID(const char* name) const;
45  bool addTracker(const char* trackertype,int sceneid);
47  const Coord3& pos);
56  EM::ObjectID getEMObjectID(int trackerid) const;
57  int getCurSceneID() const { return cursceneid_; }
58 
59  bool canAddSeed(int trackerid) const;
60 
61  void enableTracking(int trackerid,bool yn);
62  bool isTrackingEnabled(int trackerid) const;
63 
65  const EM::SectionID&);
68  const char* grpnm);
70  const EM::SectionID&);
71  MPE::uiSetupGroup* getSetupGroup() { return setupgrp_; }
72 
73  int activeTrackerID() const;
76  static int evGetAttribData();
77  bool is2D() const;
88  DataPack::ID);
89 
90  static int evCreate2DSelSpec();
92  const char* get2DLineName() const;
93  const char* get2DAttribName() const;
95 
96  static int evStartSeedPick();
97  static int evEndSeedPick();
98 
99  static int evAddTreeObject();
101  static int evRemoveTreeObject();
103  static int evUpdateTrees();
104  static int evUpdateSeedConMode();
105  static int evStoreEMObject();
106  static int evSetupLaunched();
107  static int evSetupClosed();
108  static int evInitFromSession();
109  static int evHorizonTracking();
110 
113  bool saveSetupAs(const MultiID&);
114  bool saveSetup(const MultiID&);
115  bool readSetup(const MultiID&);
116 
117  bool sendMPEEvent(int);
118 
119  void fillPar(IOPar&) const;
120  bool usePar(const IOPar&);
121 
122 protected:
125  void mergeAttribSets(const Attrib::DescSet& newads,
126  MPE::EMTracker&);
128  MPE::EMTracker*& tracker,
129  const EM::SectionID& sid,
130  bool freshdlg=false);
131 
134 
135  //Interaction variables
140 
141  //2D interaction
144 
149 
154 
160 
162 
165 
167 
168 private:
171 
172 public:
173  void fillTrackerSettings(int trackerid);
174 };
175 
uiMPEPartServer::canAddSeed
bool canAddSeed(int trackerid) const
uiMPEPartServer::temptrackerid_
int temptrackerid_
Definition: uimpepartserv.h:138
uiMPEPartServer::loadEMObjectCB
void loadEMObjectCB(CallBacker *)
Coord3
A cartesian coordinate in 3D space.
Definition: coord.h:72
uiMPEPartServer::setupgrp_
MPE::uiSetupGroup * setupgrp_
Definition: uimpepartserv.h:166
uiMPEPartServer::initialundoid_
int initialundoid_
Definition: uimpepartserv.h:150
uiMPEPartServer::aboutToAddRemoveSeed
void aboutToAddRemoveSeed(CallBacker *)
emposid.h
emtracker.h
uiMPEPartServer::get2DLineName
const char * get2DLineName() const
uiMPEPartServer::evUpdateTrees
static int evUpdateTrees()
uiMPEPartServer::eventChangedCB
void eventChangedCB(CallBacker *)
uiMPEPartServer::useSavedSetupDlg
void useSavedSetupDlg(const EM::ObjectID &, const EM::SectionID &)
uiMPEPartServer::geomid_
Pos::GeomID geomid_
Definition: uimpepartserv.h:142
uiMPEPartServer::showSetupDlg
bool showSetupDlg(const EM::ObjectID &, const EM::SectionID &)
uiMPEPartServer::evHorizonTracking
static int evHorizonTracking()
uiMPEPartServer::getGeomID
Pos::GeomID getGeomID() const
uiMPEPartServer::getTrackerID
int getTrackerID(const char *name) const
BufferStringSet
Set of BufferString objects.
Definition: bufstringset.h:26
uiMPEPartServer::evRemoveTreeObject
static int evRemoveTreeObject()
uiMPEPartServer::seedAddedCB
void seedAddedCB(CallBacker *)
Geometry
Definition: arraytesselator.h:21
uiMPEPartServer::usePar
bool usePar(const IOPar &)
uiMPEPartServer::noTrackingRemoval
void noTrackingRemoval()
uiMPEPartServer::setupbeingupdated_
bool setupbeingupdated_
Definition: uimpepartserv.h:152
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiMPEPartServer::getTrackerID
int getTrackerID(const EM::ObjectID &) const
uiMPEPartServer::eventattrselspec_
const Attrib::SelSpec * eventattrselspec_
Definition: uimpepartserv.h:136
uiMPEPartServer::activeTrackerID
int activeTrackerID() const
uiMPEPartServer::evStartSeedPick
static int evStartSeedPick()
MPE::uiMPE
uiMPEEngine & uiMPE()
Access function for an instance (and normally the only instance) of MPE::uiMPEEngine.
uiMPEPartServer::setAttribData
void setAttribData(const Attrib::SelSpec &, DataPack::ID)
uiMPEPartServer::getAttribSelSpec
const Attrib::SelSpec * getAttribSelSpec() const
uiMPEPartServer::nrHorChangeCB
void nrHorChangeCB(CallBacker *)
uiMPEPartServer::uiMPEPartServer
uiMPEPartServer(uiApplService &)
uiMPEPartServer::name
const char * name() const
Definition: uimpepartserv.h:40
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiMPEPartServer::prepareSaveSetupAs
bool prepareSaveSetupAs(const MultiID &)
uiMPEPartServer::sNoAskGoOnStr
static uiString sNoAskGoOnStr()
uiApplPartServer
Makes available certain services that are needed on a higher level.
Definition: uiapplserv.h:48
uiMPEPartServer::trackercurrentobject_
EM::ObjectID trackercurrentobject_
Definition: uimpepartserv.h:147
uiMPEPartServer::~uiMPEPartServer
~uiMPEPartServer()
TrcKeyZSampling
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
uiMPEPartServer::fillTrackerSettings
void fillTrackerSettings(int trackerid)
uiMPEPartServer::addTracker
int addTracker(const EM::ObjectID &, const Coord3 &pos)
uiMPEPartServer::evUpdateSeedConMode
static int evUpdateSeedConMode()
uiMPEPartServer
Implementation of Tracking part server interface.
Definition: uimpepartserv.h:33
MPE
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:32
multiid.h
uiMPEPartServer::addTracker
bool addTracker(const char *trackertype, int sceneid)
uiMPEPartServer::activeVolumeChange
void activeVolumeChange(CallBacker *)
uiMPEPartServer::saveSetupAs
bool saveSetupAs(const MultiID &)
uiMPEPartServer::seedswithoutattribsel_
bool seedswithoutattribsel_
Definition: uimpepartserv.h:153
uiMPEPartServer::evEndSeedPick
static int evEndSeedPick()
uiMPEPartServer::get2DAttribName
const char * get2DAttribName() const
uiMPEPartServer::loadTrackSetupCB
void loadTrackSetupCB(CallBacker *)
uiMPEPartServer::mergeAttribSets
void mergeAttribSets(const Attrib::DescSet &newads, MPE::EMTracker &)
uiMPEPartServer::seedhasbeenpicked_
bool seedhasbeenpicked_
Definition: uimpepartserv.h:151
uiMPEPartServer::showSetupGroupOnTop
bool showSetupGroupOnTop(const EM::ObjectID &, const char *grpnm)
uiMPEPartServer::getSetupGroup
MPE::uiSetupGroup * getSetupGroup()
Definition: uimpepartserv.h:71
uiMPEPartServer::activetrackerid_
int activetrackerid_
Definition: uimpepartserv.h:137
trckeyzsampling.h
uiMPEPartServer::is2D
bool is2D() const
uiMPEPartServer::saveSetup
bool saveSetup(const MultiID &)
uiapplserv.h
uiMPEPartServer::cursceneid_
int cursceneid_
Definition: uimpepartserv.h:139
uiMPEPartServer::evStoreEMObject
static int evStoreEMObject()
uiMPEPartServer::evGetAttribData
static int evGetAttribData()
uiMPEPartServer::attrset3d_
const Attrib::DescSet * attrset3d_
Definition: uimpepartserv.h:132
uiMPEPartServer::set2DSelSpec
void set2DSelSpec(const Attrib::SelSpec &)
uiMPEPartServer::initSetupDlg
bool initSetupDlg(EM::EMObject *&emobj, MPE::EMTracker *&tracker, const EM::SectionID &sid, bool freshdlg=false)
uiMPEPartServer::attrset2d_
const Attrib::DescSet * attrset2d_
Definition: uimpepartserv.h:133
MPE::uiSetupGroup
Definition: uimpe.h:56
uiApplService
Services from application level to 'Part servers'.
Definition: uiapplserv.h:24
uiMPEPartServer::getAttribVolume
TrcKeyZSampling getAttribVolume(const Attrib::SelSpec &) const
datapack.h
MPE::EMTracker
Tracks EM objects.
Definition: emtracker.h:40
uiMPEPartServer::enableTracking
void enableTracking(int trackerid, bool yn)
uiMPEPartServer::readSetup
bool readSetup(const MultiID &)
MultiID
Compound key consisting of ints.
Definition: multiid.h:24
uiMPEPartServer::getCurAttrDescSet
const Attrib::DescSet * getCurAttrDescSet(bool is2d) const
uiMPEPartServer::cleanSetupDependents
void cleanSetupDependents()
uiMPEPartServer::isTrackingEnabled
bool isTrackingEnabled(int trackerid) const
uiMPEPartServer::evCreate2DSelSpec
static int evCreate2DSelSpec()
uiMPEPartServer::modeChangedCB
void modeChangedCB(CallBacker *)
EM::SectionID
od_int16 SectionID
Definition: emposid.h:24
uiMPEPartServer::propertyChangedCB
void propertyChangedCB(CallBacker *)
DataPack::ID
int ID
Definition: datapack.h:37
uiMPEPartServer::evSetupClosed
static int evSetupClosed()
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
EM::ObjectID
od_int32 ObjectID
Definition: emposid.h:23
uiMPEPartServer::correlationChangedCB
void correlationChangedCB(CallBacker *)
uiMPEPartServer::sendMPEEvent
bool sendMPEEvent(int)
uiMPEPartServer::trackerWinClosedCB
void trackerWinClosedCB(CallBacker *)
uiMPEPartServer::getTrackerTypes
void getTrackerTypes(BufferStringSet &) const
uiMPEPartServer::setCurrentAttribDescSet
void setCurrentAttribDescSet(const Attrib::DescSet *)
uiMPEPartServer::mODTextTranslationClass
mODTextTranslationClass(uiMPEPartServer)
uiMPEPartServer::getCurSceneID
int getCurSceneID() const
Definition: uimpepartserv.h:57
uiMPEPartServer::settingsChangedCB
void settingsChangedCB(CallBacker *)
uiMPEPartServer::lineselspec_
Attrib::SelSpec lineselspec_
Definition: uimpepartserv.h:143
EM::EMObject
Base class for all EarthModel objects.
Definition: emobject.h:159
uiMPEPartServer::evSetupLaunched
static int evSetupLaunched()
uiMPEPartServer::evInitFromSession
static int evInitFromSession()
Attrib::DescSet
Set of attribute descriptions.
Definition: attribdescset.h:35
Attrib
Semblance Attribute.
Definition: attribdataholder.h:25
Attrib::SelSpec
Specifies an attribute selection (ID or output number of NN).
Definition: attribsel.h:45
uiMPEPartServer::fillPar
void fillPar(IOPar &) const
uiMPEPartServer::getEMObjectID
EM::ObjectID getEMObjectID(int trackerid) const
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
attribsel.h
uiMPEPartServer::sYesAskGoOnStr
static uiString sYesAskGoOnStr()
Pos::GeomID
Index_Type GeomID
Definition: commontypes.h:87
uiMPEPartServer::evAddTreeObject
static int evAddTreeObject()

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