OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | 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 ()
 
int activeTrackerID () const
 
bool addTracker (const char *trackertype, int sceneid)
 
int addTracker (const EM::ObjectID &, const Coord3 &pos)
 
bool canAddSeed (int trackerid) const
 
void enableTracking (int trackerid, bool yn)
 
void fillPar (IOPar &) const
 
void fillTrackerSettings (int trackerid)
 
const char * get2DAttribName () const
 
const char * get2DLineName () const
 
const Attrib::SelSpecgetAttribSelSpec () const
 
TrcKeyZSampling getAttribVolume (const Attrib::SelSpec &) const
 
const Attrib::DescSetgetCurAttrDescSet (bool is2d) const
 
int getCurSceneID () const
 
EM::ObjectID getEMObjectID (int trackerid) const
 
Pos::GeomID getGeomID () const
 
MPE::uiSetupGroupgetSetupGroup ()
 
int getTrackerID (const char *name) const
 
int getTrackerID (const EM::ObjectID &) const
 
void getTrackerTypes (BufferStringSet &) const
 
bool is2D () const
 
bool isTrackingEnabled (int trackerid) const
 
void loadTrackSetupCB (CallBacker *)
 
const char * name () const
 
bool prepareSaveSetupAs (const MultiID &)
 
bool readSetup (const MultiID &)
 
bool saveSetup (const MultiID &)
 
bool saveSetupAs (const MultiID &)
 
bool sendMPEEvent (int)
 
void set2DSelSpec (const Attrib::SelSpec &)
 
void setAttribData (const Attrib::SelSpec &, DataPack::ID)
 
void setCurrentAttribDescSet (const Attrib::DescSet *)
 
bool showSetupDlg (const EM::ObjectID &, const EM::SectionID &)
 
bool showSetupGroupOnTop (const EM::ObjectID &, const char *grpnm)
 
bool usePar (const IOPar &)
 
void useSavedSetupDlg (const EM::ObjectID &, const EM::SectionID &)
 
- 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 (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 

Static Public Member Functions

static int evAddTreeObject ()
 
static int evCreate2DSelSpec ()
 
static int evEndSeedPick ()
 
static int evGetAttribData ()
 
static int evHorizonTracking ()
 
static int evInitFromSession ()
 
static int evRemoveTreeObject ()
 
static int evSetupClosed ()
 
static int evSetupLaunched ()
 
static int evStartSeedPick ()
 
static int evStoreEMObject ()
 
static int evUpdateSeedConMode ()
 
static int evUpdateTrees ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Protected Member Functions

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

Protected Attributes

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

Static Private Member Functions

static uiString sNoAskGoOnStr ()
 
static uiString sYesAskGoOnStr ()
 

Detailed Description

Implementation of Tracking part server interface.

<>

Constructor & Destructor Documentation

◆ uiMPEPartServer()

uiMPEPartServer::uiMPEPartServer ( uiApplService )

◆ ~uiMPEPartServer()

uiMPEPartServer::~uiMPEPartServer ( )

Member Function Documentation

◆ aboutToAddRemoveSeed()

void uiMPEPartServer::aboutToAddRemoveSeed ( CallBacker )
protected

◆ activeTrackerID()

int uiMPEPartServer::activeTrackerID ( ) const

returns the trackerid of the last event

◆ activeVolumeChange()

void uiMPEPartServer::activeVolumeChange ( CallBacker )
protected

◆ addTracker() [1/2]

bool uiMPEPartServer::addTracker ( const char *  trackertype,
int  sceneid 
)

◆ addTracker() [2/2]

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.

◆ canAddSeed()

bool uiMPEPartServer::canAddSeed ( int  trackerid) const

◆ cleanSetupDependents()

void uiMPEPartServer::cleanSetupDependents ( )
protected

◆ correlationChangedCB()

void uiMPEPartServer::correlationChangedCB ( CallBacker )
protected

◆ enableTracking()

void uiMPEPartServer::enableTracking ( int  trackerid,
bool  yn 
)

◆ evAddTreeObject()

static int uiMPEPartServer::evAddTreeObject ( )
static

Get trackerid via activeTrackerID

◆ evCreate2DSelSpec()

static int uiMPEPartServer::evCreate2DSelSpec ( )
static

◆ evEndSeedPick()

static int uiMPEPartServer::evEndSeedPick ( )
static

◆ eventChangedCB()

void uiMPEPartServer::eventChangedCB ( CallBacker )
protected

◆ evGetAttribData()

static int uiMPEPartServer::evGetAttribData ( )
static

◆ evHorizonTracking()

static int uiMPEPartServer::evHorizonTracking ( )
static

◆ evInitFromSession()

static int uiMPEPartServer::evInitFromSession ( )
static

◆ evRemoveTreeObject()

static int uiMPEPartServer::evRemoveTreeObject ( )
static

Get trackerid via activeTrackerID

◆ evSetupClosed()

static int uiMPEPartServer::evSetupClosed ( )
static

◆ evSetupLaunched()

static int uiMPEPartServer::evSetupLaunched ( )
static

◆ evStartSeedPick()

static int uiMPEPartServer::evStartSeedPick ( )
static

◆ evStoreEMObject()

static int uiMPEPartServer::evStoreEMObject ( )
static

◆ evUpdateSeedConMode()

static int uiMPEPartServer::evUpdateSeedConMode ( )
static

◆ evUpdateTrees()

static int uiMPEPartServer::evUpdateTrees ( )
static

◆ fillPar()

void uiMPEPartServer::fillPar ( IOPar ) const

◆ fillTrackerSettings()

void uiMPEPartServer::fillTrackerSettings ( int  trackerid)

◆ get2DAttribName()

const char* uiMPEPartServer::get2DAttribName ( ) const

◆ get2DLineName()

const char* uiMPEPartServer::get2DLineName ( ) const

◆ getAttribSelSpec()

const Attrib::SelSpec* uiMPEPartServer::getAttribSelSpec ( ) const

◆ getAttribVolume()

TrcKeyZSampling uiMPEPartServer::getAttribVolume ( const Attrib::SelSpec ) const
Returns
the volume needed of an attrib if tracking should be possible in the activeVolume.

◆ getCurAttrDescSet()

const Attrib::DescSet* uiMPEPartServer::getCurAttrDescSet ( bool  is2d) const

◆ getCurSceneID()

int uiMPEPartServer::getCurSceneID ( ) const
inline

◆ getEMObjectID()

EM::ObjectID uiMPEPartServer::getEMObjectID ( int  trackerid) const

◆ getGeomID()

Pos::GeomID uiMPEPartServer::getGeomID ( ) const

◆ getSetupGroup()

MPE::uiSetupGroup* uiMPEPartServer::getSetupGroup ( )
inline

◆ getTrackerID() [1/2]

int uiMPEPartServer::getTrackerID ( const char *  name) const

◆ getTrackerID() [2/2]

int uiMPEPartServer::getTrackerID ( const EM::ObjectID ) const

◆ getTrackerTypes()

void uiMPEPartServer::getTrackerTypes ( BufferStringSet ) const

◆ initSetupDlg()

bool uiMPEPartServer::initSetupDlg ( EM::EMObject *&  emobj,
MPE::EMTracker *&  tracker,
const EM::SectionID sid,
bool  freshdlg = false 
)
protected

◆ is2D()

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.

◆ isTrackingEnabled()

bool uiMPEPartServer::isTrackingEnabled ( int  trackerid) const

◆ loadEMObjectCB()

void uiMPEPartServer::loadEMObjectCB ( CallBacker )
protected

◆ loadTrackSetupCB()

void uiMPEPartServer::loadTrackSetupCB ( CallBacker )

◆ mergeAttribSets()

void uiMPEPartServer::mergeAttribSets ( const Attrib::DescSet newads,
MPE::EMTracker  
)
protected

◆ modeChangedCB()

void uiMPEPartServer::modeChangedCB ( CallBacker )
protected

◆ name()

const char* uiMPEPartServer::name ( ) const
inlinevirtual

Implements uiApplPartServer.

◆ noTrackingRemoval()

void uiMPEPartServer::noTrackingRemoval ( )
protected

◆ nrHorChangeCB()

void uiMPEPartServer::nrHorChangeCB ( CallBacker )
protected

◆ prepareSaveSetupAs()

bool uiMPEPartServer::prepareSaveSetupAs ( const MultiID )

◆ propertyChangedCB()

void uiMPEPartServer::propertyChangedCB ( CallBacker )
protected

◆ readSetup()

bool uiMPEPartServer::readSetup ( const MultiID )

◆ saveSetup()

bool uiMPEPartServer::saveSetup ( const MultiID )

◆ saveSetupAs()

bool uiMPEPartServer::saveSetupAs ( const MultiID )

◆ seedAddedCB()

void uiMPEPartServer::seedAddedCB ( CallBacker )
protected

◆ sendMPEEvent()

bool uiMPEPartServer::sendMPEEvent ( int  )

◆ set2DSelSpec()

void uiMPEPartServer::set2DSelSpec ( const Attrib::SelSpec )

◆ setAttribData()

void uiMPEPartServer::setAttribData ( const Attrib::SelSpec ,
DataPack::ID   
)

◆ setCurrentAttribDescSet()

void uiMPEPartServer::setCurrentAttribDescSet ( const Attrib::DescSet )

◆ settingsChangedCB()

void uiMPEPartServer::settingsChangedCB ( CallBacker )
protected

◆ showSetupDlg()

bool uiMPEPartServer::showSetupDlg ( const EM::ObjectID ,
const EM::SectionID  
)
Returns
false if cancel was pressed.

◆ showSetupGroupOnTop()

bool uiMPEPartServer::showSetupGroupOnTop ( const EM::ObjectID ,
const char *  grpnm 
)

◆ sNoAskGoOnStr()

static uiString uiMPEPartServer::sNoAskGoOnStr ( )
staticprivate

◆ sYesAskGoOnStr()

static uiString uiMPEPartServer::sYesAskGoOnStr ( )
staticprivate

◆ trackerWinClosedCB()

void uiMPEPartServer::trackerWinClosedCB ( CallBacker )
protected

◆ usePar()

bool uiMPEPartServer::usePar ( const IOPar )

◆ useSavedSetupDlg()

void uiMPEPartServer::useSavedSetupDlg ( const EM::ObjectID ,
const EM::SectionID  
)

Member Data Documentation

◆ activetrackerid_

int uiMPEPartServer::activetrackerid_
protected

◆ attrset2d_

const Attrib::DescSet* uiMPEPartServer::attrset2d_
protected

◆ attrset3d_

const Attrib::DescSet* uiMPEPartServer::attrset3d_
protected

◆ cursceneid_

int uiMPEPartServer::cursceneid_
protected

◆ eventattrselspec_

const Attrib::SelSpec* uiMPEPartServer::eventattrselspec_
protected

◆ geomid_

Pos::GeomID uiMPEPartServer::geomid_
protected

◆ initialundoid_

int uiMPEPartServer::initialundoid_
protected

◆ lineselspec_

Attrib::SelSpec uiMPEPartServer::lineselspec_
protected

◆ seedhasbeenpicked_

bool uiMPEPartServer::seedhasbeenpicked_
protected

◆ seedswithoutattribsel_

bool uiMPEPartServer::seedswithoutattribsel_
protected

◆ setupbeingupdated_

bool uiMPEPartServer::setupbeingupdated_
protected

◆ setupgrp_

MPE::uiSetupGroup* uiMPEPartServer::setupgrp_
protected

◆ temptrackerid_

int uiMPEPartServer::temptrackerid_
protected

◆ trackercurrentobject_

EM::ObjectID uiMPEPartServer::trackercurrentobject_
protected

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