OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | List of all members
uiMPEPartServer Class Reference

Implementation of Tracking part server interface. More...

Inheritance diagram for uiMPEPartServer:
[legend]

Public Member Functions

 uiMPEPartServer (uiApplService &)
 
 ~uiMPEPartServer ()
 
void setCurrentAttribDescSet (const Attrib::DescSet *)
 
const Attrib::DescSetgetCurAttrDescSet (bool is2d) const
 
const char * name () const
 
int getTrackerID (const EM::ObjectID &) const
 
int getTrackerID (const char *name) const
 
void getTrackerTypes (BufferStringSet &) const
 
bool addTracker (const char *trackertype, int sceneid)
 
int addTracker (const EM::ObjectID &, const Coord3 &pos)
 
EM::ObjectID getEMObjectID (int trackerid) const
 
int getCurSceneID () const
 
bool canAddSeed (int trackerid) const
 
void enableTracking (int trackerid, bool yn)
 
bool isTrackingEnabled (int trackerid) const
 
bool showSetupDlg (const EM::ObjectID &, const EM::SectionID &)
 
bool showSetupGroupOnTop (const EM::ObjectID &, const char *grpnm)
 
void useSavedSetupDlg (const EM::ObjectID &, const EM::SectionID &)
 
MPE::uiSetupGroupgetSetupGroup ()
 
int activeTrackerID () const
 
bool is2D () const
 
TrcKeyZSampling getAttribVolume (const Attrib::SelSpec &) const
 
const Attrib::SelSpecgetAttribSelSpec () const
 
void setAttribData (const Attrib::SelSpec &, DataPack::ID)
 
Pos::GeomID getGeomID () const
 
const char * get2DLineName () const
 
const char * get2DAttribName () const
 
void set2DSelSpec (const Attrib::SelSpec &)
 
void loadTrackSetupCB (CallBacker *)
 
bool prepareSaveSetupAs (const MultiID &)
 
bool saveSetupAs (const MultiID &)
 
bool saveSetup (const MultiID &)
 
bool readSetup (const MultiID &)
 
bool sendMPEEvent (int)
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
void fillTrackerSettings (int trackerid)
 
- Public Member Functions inherited from uiApplPartServer
 uiApplPartServer (uiApplService &a)
 
uiApplServiceappserv ()
 
const uiApplServiceappserv () const
 
void setParent (uiParent *)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Static Public Member Functions

static int evGetAttribData ()
 
static int evCreate2DSelSpec ()
 
static int evStartSeedPick ()
 
static int evEndSeedPick ()
 
static int evAddTreeObject ()
 
static int evRemoveTreeObject ()
 
static int evUpdateTrees ()
 
static int evUpdateSeedConMode ()
 
static int evStoreEMObject ()
 
static int evSetupLaunched ()
 
static int evSetupClosed ()
 
static int evInitFromSession ()
 
static int evHorizonTracking ()
 

Protected Member Functions

void activeVolumeChange (CallBacker *)
 
void loadEMObjectCB (CallBacker *)
 
void mergeAttribSets (const Attrib::DescSet &newads, MPE::EMTracker &)
 
bool initSetupDlg (EM::EMObject *&emobj, MPE::EMTracker *&tracker, const EM::SectionID &sid, bool freshdlg=false)
 
void aboutToAddRemoveSeed (CallBacker *)
 
void seedAddedCB (CallBacker *)
 
void trackerWinClosedCB (CallBacker *)
 
void modeChangedCB (CallBacker *)
 
void eventChangedCB (CallBacker *)
 
void propertyChangedCB (CallBacker *)
 
void correlationChangedCB (CallBacker *)
 
void settingsChangedCB (CallBacker *)
 
void nrHorChangeCB (CallBacker *)
 
void noTrackingRemoval ()
 
void cleanSetupDependents ()
 
- Protected Member Functions inherited from uiApplPartServer
uiParentparent () const
 
bool sendEvent (int evid) const
 
void * getObject (int objid) const
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

const Attrib::DescSetattrset3d_
 
const Attrib::DescSetattrset2d_
 
const Attrib::SelSpeceventattrselspec_
 
int activetrackerid_
 
int temptrackerid_
 
int cursceneid_
 
Pos::GeomID geomid_
 
Attrib::SelSpec lineselspec_
 
EM::ObjectID trackercurrentobject_
 
int initialundoid_
 
bool seedhasbeenpicked_
 
bool setupbeingupdated_
 
bool seedswithoutattribsel_
 
MPE::uiSetupGroupsetupgrp_
 

Private Member Functions

 mODTextTranslationClass (uiMPEPartServer)
 

Static Private Member Functions

static uiString sYesAskGoOnStr ()
 
static uiString sNoAskGoOnStr ()
 

Detailed Description

Implementation of Tracking part server interface.

Constructor & Destructor Documentation

uiMPEPartServer::uiMPEPartServer ( uiApplService )
uiMPEPartServer::~uiMPEPartServer ( )

Member Function Documentation

void uiMPEPartServer::aboutToAddRemoveSeed ( CallBacker )
protected
int uiMPEPartServer::activeTrackerID ( ) const

returns the trackerid of the last event

void uiMPEPartServer::activeVolumeChange ( CallBacker )
protected
bool uiMPEPartServer::addTracker ( const char *  trackertype,
int  sceneid 
)
int uiMPEPartServer::addTracker ( const EM::ObjectID ,
const Coord3 pos 
)

Creates a new tracker for the object and returns the trackerid of it or -1 if it failed.

Parameters
posshould contain the clicked position. If the activevolume is not set before, it will be centered pos, otherwise, it will be expanded to include pos.
bool uiMPEPartServer::canAddSeed ( int  trackerid) const
void uiMPEPartServer::cleanSetupDependents ( )
protected
void uiMPEPartServer::correlationChangedCB ( CallBacker )
protected
void uiMPEPartServer::enableTracking ( int  trackerid,
bool  yn 
)
static int uiMPEPartServer::evAddTreeObject ( )
static

Get trackerid via activeTrackerID

static int uiMPEPartServer::evCreate2DSelSpec ( )
static
static int uiMPEPartServer::evEndSeedPick ( )
static
void uiMPEPartServer::eventChangedCB ( CallBacker )
protected
static int uiMPEPartServer::evGetAttribData ( )
static
static int uiMPEPartServer::evHorizonTracking ( )
static
static int uiMPEPartServer::evInitFromSession ( )
static
static int uiMPEPartServer::evRemoveTreeObject ( )
static

Get trackerid via activeTrackerID

static int uiMPEPartServer::evSetupClosed ( )
static
static int uiMPEPartServer::evSetupLaunched ( )
static
static int uiMPEPartServer::evStartSeedPick ( )
static
static int uiMPEPartServer::evStoreEMObject ( )
static
static int uiMPEPartServer::evUpdateSeedConMode ( )
static
static int uiMPEPartServer::evUpdateTrees ( )
static
void uiMPEPartServer::fillPar ( IOPar ) const
void uiMPEPartServer::fillTrackerSettings ( int  trackerid)
const char* uiMPEPartServer::get2DAttribName ( ) const
const char* uiMPEPartServer::get2DLineName ( ) const
const Attrib::SelSpec* uiMPEPartServer::getAttribSelSpec ( ) const
TrcKeyZSampling uiMPEPartServer::getAttribVolume ( const Attrib::SelSpec ) const
Returns
the volume needed of an attrib if tracking should be possible in the activeVolume.
const Attrib::DescSet* uiMPEPartServer::getCurAttrDescSet ( bool  is2d) const
int uiMPEPartServer::getCurSceneID ( ) const
inline
EM::ObjectID uiMPEPartServer::getEMObjectID ( int  trackerid) const
Pos::GeomID uiMPEPartServer::getGeomID ( ) const
MPE::uiSetupGroup* uiMPEPartServer::getSetupGroup ( )
inline
int uiMPEPartServer::getTrackerID ( const EM::ObjectID ) const
int uiMPEPartServer::getTrackerID ( const char *  name) const
void uiMPEPartServer::getTrackerTypes ( BufferStringSet ) const
bool uiMPEPartServer::initSetupDlg ( EM::EMObject *&  emobj,
MPE::EMTracker *&  tracker,
const EM::SectionID sid,
bool  freshdlg = false 
)
protected
bool uiMPEPartServer::is2D ( ) const

If attrib is 2D, check for a selspec. If selspec is returned, calculate the attrib. If no selspec is present, use getLineSet, getLineName & getAttribName.

bool uiMPEPartServer::isTrackingEnabled ( int  trackerid) const
void uiMPEPartServer::loadEMObjectCB ( CallBacker )
protected
void uiMPEPartServer::loadTrackSetupCB ( CallBacker )
void uiMPEPartServer::mergeAttribSets ( const Attrib::DescSet newads,
MPE::EMTracker  
)
protected
void uiMPEPartServer::modeChangedCB ( CallBacker )
protected
uiMPEPartServer::mODTextTranslationClass ( uiMPEPartServer  )
private
const char* uiMPEPartServer::name ( ) const
inlinevirtual

Implements uiApplPartServer.

void uiMPEPartServer::noTrackingRemoval ( )
protected
void uiMPEPartServer::nrHorChangeCB ( CallBacker )
protected
bool uiMPEPartServer::prepareSaveSetupAs ( const MultiID )
void uiMPEPartServer::propertyChangedCB ( CallBacker )
protected
bool uiMPEPartServer::readSetup ( const MultiID )
bool uiMPEPartServer::saveSetup ( const MultiID )
bool uiMPEPartServer::saveSetupAs ( const MultiID )
void uiMPEPartServer::seedAddedCB ( CallBacker )
protected
bool uiMPEPartServer::sendMPEEvent ( int  )
void uiMPEPartServer::set2DSelSpec ( const Attrib::SelSpec )
void uiMPEPartServer::setAttribData ( const Attrib::SelSpec ,
DataPack::ID   
)
void uiMPEPartServer::setCurrentAttribDescSet ( const Attrib::DescSet )
void uiMPEPartServer::settingsChangedCB ( CallBacker )
protected
bool uiMPEPartServer::showSetupDlg ( const EM::ObjectID ,
const EM::SectionID  
)
Returns
false if cancel was pressed.
bool uiMPEPartServer::showSetupGroupOnTop ( const EM::ObjectID ,
const char *  grpnm 
)
static uiString uiMPEPartServer::sNoAskGoOnStr ( )
staticprivate
static uiString uiMPEPartServer::sYesAskGoOnStr ( )
staticprivate
void uiMPEPartServer::trackerWinClosedCB ( CallBacker )
protected
bool uiMPEPartServer::usePar ( const IOPar )
void uiMPEPartServer::useSavedSetupDlg ( const EM::ObjectID ,
const EM::SectionID  
)

Member Data Documentation

int uiMPEPartServer::activetrackerid_
protected
const Attrib::DescSet* uiMPEPartServer::attrset2d_
protected
const Attrib::DescSet* uiMPEPartServer::attrset3d_
protected
int uiMPEPartServer::cursceneid_
protected
const Attrib::SelSpec* uiMPEPartServer::eventattrselspec_
protected
Pos::GeomID uiMPEPartServer::geomid_
protected
int uiMPEPartServer::initialundoid_
protected
Attrib::SelSpec uiMPEPartServer::lineselspec_
protected
bool uiMPEPartServer::seedhasbeenpicked_
protected
bool uiMPEPartServer::seedswithoutattribsel_
protected
bool uiMPEPartServer::setupbeingupdated_
protected
MPE::uiSetupGroup* uiMPEPartServer::setupgrp_
protected
int uiMPEPartServer::temptrackerid_
protected
EM::ObjectID uiMPEPartServer::trackercurrentobject_
protected

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