OpendTect  6.3
Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | List of all members
visSurvey::WellDisplay Class Reference

Used for displaying welltracks, markers and logs. More...

Inheritance diagram for visSurvey::WellDisplay:
[legend]

Protected Member Functions

 ~WellDisplay ()
 
void setWell (visBase::Well *)
 
void updateMarkers ()
 
void fullRedraw ()
 
void getTrackPos (TypeSet< Coord3 > &)
 
void setLogProperties (visBase::Well::LogParams &)
 
void pickCB (CallBacker *cb=0)
 
void welldataDelNotify (CallBacker *cb=0)
 
void saveDispProp (const Well::Data *wd)
 
void setLogInfo (BufferString &, BufferString &, float, bool) const
 
bool upscaleLogs (const Well::Track &, Well::Log &, Well::Log *) const
 
void removePick (const visBase::EventInfo &)
 
void addPick (const visBase::EventInfo &, int)
 
void infoChgCB (CallBacker *)
 
void trackChgCB (CallBacker *)
 
void d2tChgCB (CallBacker *)
 
void logsChgCB (CallBacker *)
 
void logChgCB (CallBacker *)
 
void markersChgCB (CallBacker *)
 
void trackDispPropsChgCB (CallBacker *)
 
void markerDispPropsChgCB (CallBacker *)
 
void logDispPropsChgCB (CallBacker *)
 
void dataTransformCB (CallBacker *)
 
- Protected Member Functions inherited from visBase::VisualObjectImpl
int addChild (osg::Node *)
 
void insertChild (int pos, osg::Node *)
 
void removeChild (osg::Node *)
 
int childIndex (const osg::Node *) const
 
 VisualObjectImpl (bool selectable)
 
virtual ~VisualObjectImpl ()
 
virtual void materialChangeCB (CallBacker *)
 
virtual void setGroupNode (osg::Group *)
 Must be called during construction. More...
 
- Protected Member Functions inherited from visBase::VisualObject
void triggerSel ()
 
void triggerDeSel ()
 
void triggerRightClick (const EventInfo *)
 
 VisualObject (bool selectable=false)
 
 ~VisualObject ()
 
- Protected Member Functions inherited from visBase::DataObject
 ~DataObject ()
 
virtual osg::StateSet * getStateSet ()
 
void doAddNodeState (NodeState *ns)
 
 DataObject ()
 
template<class T >
T * setOsgNode (T *t)
 Must be called during construction. More...
 
void updateNodemask ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
- Protected Member Functions inherited from visSurvey::SurveyObject
 SurveyObject ()
 
 ~SurveyObject ()
 
void initAdaptiveMouseCursor (CallBacker *eventcb, int objid, int inplanedragkeys, MouseCursor &)
 

Protected Attributes

Well::DisplayPropertiesdispprop_
 
Coord3 mousepressposition_
 
const mVisTranstransformation_
 
DBKey wellid_
 
visBase::EventCatchereventcatcher_
 
visBase::MarkerSetmarkerset_
 
visBase::Wellwell_
 
Well::Trackpseudotrack_
 
Well::Tracktimetrack_
 
RefMan< Well::Datawd_
 
ZAxisTransformdatatransform_
 
Notifier< WellDisplaychanged_
 
int logsnumber_
 
int mousepressid_
 
bool needsave_
 
bool onelogdisplayed_
 
bool picksallowed_
 
const bool zistime_
 
const bool zinfeet_
 
- Protected Attributes inherited from visBase::VisualObjectImpl
Materialmaterial_
 
bool righthandsystem_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 
- Protected Attributes inherited from visSurvey::SurveyObject
uiString errmsg_
 
Scenescene_
 
int updatestagenr_
 
bool locked_
 
ObjectSet< BufferStringSetuserrefs_
 
const Survey::Geometry3Ds3dgeom_
 
BufferString survname_
 
bool saveinsessionsflag_
 

Static Protected Attributes

static const char * sKeyEarthModelID
 
static const char * sKeyWellID
 

Private Member Functions

mODTextTranslationClass(WellDisplay) public mDefaultFactoryInstantiation (visSurvey::SurveyObject, WellDisplay,"WellDisplay", toUiString(sFactoryKeyword())) uiRetVal setDBKey(const DBKey &)
 
DBKey getDBKey () const
 
void fillTrackParams (visBase::Well::TrackParams &)
 
bool wellTopNameShown () const
 
void showWellTopName (bool)
 
bool wellBotNameShown () const
 
void showWellBotName (bool)
 
TypeSet< Coord3getWellCoords () const
 
void fillMarkerParams (visBase::Well::MarkerParams &)
 
bool canShowMarkers () const
 
bool markersShown () const
 
void showMarkers (bool)
 
bool markerNameShown () const
 
void showMarkerName (bool)
 
int markerScreenSize () const
 
void setMarkerScreenSize (int)
 
void fillLogParams (visBase::Well::LogParams &, visBase::Well::Side side)
 
const OD::LineStylelineStyle () const
 
void setLineStyle (const OD::LineStyle &)
 
bool hasColor () const
 
Color getColor () const
 
void setLogData (visBase::Well::LogParams &, bool)
 
void setLogDisplay (visBase::Well::Side)
 
void calcClippedRange (float, Interval< float > &, int)
 
void displayRightLog ()
 
void displayLeftLog ()
 
void setOneLogDisplayed (bool)
 
const ColorlogColor (visBase::Well::Side) const
 
void setLogColor (const Color &, visBase::Well::Side)
 
float getLogWidth (visBase::Well::Side) const
 
void setLogWidth (float, visBase::Well::Side)
 
int getLogLineWidth () const
 
void setLogLineWidth (int, visBase::Well::Side)
 
bool logsShown () const
 
void showLogs (bool)
 
bool logNameShown () const
 
void showLogName (bool)
 
const mVisTransgetDisplayTransformation () const
 
void setDisplayTransformation (const mVisTrans *)
 
void setDisplayTransformForPicks (const mVisTrans *)
 
void setSceneEventCatcher (visBase::EventCatcher *)
 
void addPick (const Coord3 &)
 
void addKnownPos ()
 
void getMousePosInfo (const visBase::EventInfo &ei, IOPar &iop) const
 
void getMousePosInfo (const visBase::EventInfo &pos, Coord3 &, BufferString &val, BufferString &info) const
 
NotifierAccessgetManipulationNotifier ()
 
bool hasChanged () const
 
bool isHomeMadeWell () const
 
void setChanged (bool yn)
 
void setupPicking (bool)
 
void showKnownPositions ()
 
void restoreDispProp ()
 
uiRetVal getWD () const
 
bool needsConversionToTime () const
 
bool allowsPicks () const
 
bool setZAxisTransform (ZAxisTransform *, TaskRunner *)
 
const ZAxisTransformgetZAxisTransform () const
 
virtual void fillPar (IOPar &) const
 
virtual bool usePar (const IOPar &)
 
virtual void setPixelDensity (float)
 
const visBase::WellgetWell () const
 

Additional Inherited Members

- Public Member Functions inherited from visBase::VisualObjectImpl
void setRightHandSystem (bool yn)
 
bool isRightHandSystem () const
 
void setLockable ()
 
void readLock ()
 
void readUnLock ()
 
bool tryReadLock ()
 
void writeLock ()
 
void writeUnLock ()
 
bool tryWriteLock ()
 
void setMaterial (Material *)
 
const MaterialgetMaterial () const
 
MaterialgetMaterial ()
 
- Public Member Functions inherited from visBase::VisualObject
virtual bool getBoundingBox (Coord3 &min, Coord3 &max) const
 
void setSelectable (bool yn)
 
bool selectable () const
 
NotifierAccessselection ()
 
NotifierAccessdeSelection ()
 
virtual NotifierAccessrightClicked ()
 
const EventInforightClickedEventInfo () const
 
const TypeSet< int > * rightClickedPath () const
 
- Public Member Functions inherited from visBase::DataObject
virtual const char * getClassName () const
 
virtual bool isOK () const
 
int id () const
 
void setID (int nid)
 
uiString name () const
 
virtual void setName (const uiString &)
 
osg::Node * osgNode (bool skipswitch=false)
 
const osg::Node * osgNode (bool skipswitch=false) const
 
void enableTraversal (unsigned int mask, bool yn=true)
 
bool isTraversalEnabled (unsigned int mask) const
 
virtual bool turnOn (bool yn)
 
virtual bool isOn () const
 
bool isPickable (bool actively=true) const
 
void setPickable (bool actively, bool passively=true)
 
virtual bool rightClickable () const
 
void select () const
 
void deSelect () const
 
void updateSel () const
 
virtual bool isSelected () const
 
virtual void setDisplayTransformation (const visBase::Transformation *)
 
virtual float getPixelDensity () const
 
virtual const uiStringerrMsg () const
 
bool serialize (const char *filename, bool binary=false)
 
void setParent (DataObjectGroup *g)
 
template<class T >
T * addNodeState (T *ns)
 
NodeStateremoveNodeState (NodeState *)
 
NodeStategetNodeState (int idx)
 
- 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 detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
virtual bool isCapsule () const
 
void stopReceivingNotifications () const
 
- Static Public Member Functions inherited from visBase::VisualObjectImpl
static const char * sKeyMaterialID ()
 
static const char * sKeyMaterial ()
 
static const char * sKeyIsOn ()
 
- Static Public Member Functions inherited from visBase::DataObject
static int getID (const osg::Node *)
 
static float getDefaultPixelDensity ()
 
static void setVisualizationThread (Threads::ThreadID)
 Call only once from initialization. More...
 
static bool isVisualizationThread ()
 
static void requestSingleRedraw ()
 
static void setCommonViewer (osgViewer::CompositeViewer *)
 
static osgViewer::CompositeViewer * getCommonViewer ()
 
static const osgGeo::GLInfo * getGLInfo ()
 
static NotifierAccessglInfoAvailable ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Static Protected Member Functions inherited from visSurvey::SurveyObject
static int cValNameOffset ()
 

Detailed Description

Used for displaying welltracks, markers and logs.

Constructor & Destructor Documentation

visSurvey::WellDisplay::~WellDisplay ( )
protected

Member Function Documentation

void visSurvey::WellDisplay::addKnownPos ( )
private
void visSurvey::WellDisplay::addPick ( const Coord3 )
private
void visSurvey::WellDisplay::addPick ( const visBase::EventInfo ,
int   
)
protected
bool visSurvey::WellDisplay::allowsPicks ( ) const
inlineprivatevirtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::WellDisplay::calcClippedRange ( float  ,
Interval< float > &  ,
int   
)
private
bool visSurvey::WellDisplay::canShowMarkers ( ) const
private
void visSurvey::WellDisplay::d2tChgCB ( CallBacker )
protected
void visSurvey::WellDisplay::dataTransformCB ( CallBacker )
protected
void visSurvey::WellDisplay::displayLeftLog ( )
private
void visSurvey::WellDisplay::displayRightLog ( )
private
void visSurvey::WellDisplay::fillLogParams ( visBase::Well::LogParams &  ,
visBase::Well::Side  side 
)
private
void visSurvey::WellDisplay::fillMarkerParams ( visBase::Well::MarkerParams &  )
private
virtual void visSurvey::WellDisplay::fillPar ( IOPar ) const
privatevirtual

Reimplemented from visBase::VisualObjectImpl.

void visSurvey::WellDisplay::fillTrackParams ( visBase::Well::TrackParams &  )
private
void visSurvey::WellDisplay::fullRedraw ( )
protected
Color visSurvey::WellDisplay::getColor ( ) const
privatevirtual

Reimplemented from visSurvey::SurveyObject.

DBKey visSurvey::WellDisplay::getDBKey ( ) const
inlineprivatevirtual

Reimplemented from visSurvey::SurveyObject.

const mVisTrans* visSurvey::WellDisplay::getDisplayTransformation ( ) const
privatevirtual

All positions going from the outside world to the vis should be transformed with this transform. This enables us to have different coord-systems outside OI, e.g. we can use UTM coords outside the vis without loosing precision in the vis.

Reimplemented from visBase::DataObject.

int visSurvey::WellDisplay::getLogLineWidth ( ) const
private
float visSurvey::WellDisplay::getLogWidth ( visBase::Well::Side  ) const
private
NotifierAccess* visSurvey::WellDisplay::getManipulationNotifier ( )
inlineprivatevirtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::WellDisplay::getMousePosInfo ( const visBase::EventInfo ei,
IOPar iop 
) const
inlineprivatevirtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::WellDisplay::getMousePosInfo ( const visBase::EventInfo pos,
Coord3 ,
BufferString val,
BufferString info 
) const
privatevirtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::WellDisplay::getTrackPos ( TypeSet< Coord3 > &  )
protected
uiRetVal visSurvey::WellDisplay::getWD ( ) const
private
const visBase::Well* visSurvey::WellDisplay::getWell ( ) const
inlineprivate
TypeSet<Coord3> visSurvey::WellDisplay::getWellCoords ( ) const
private
const ZAxisTransform* visSurvey::WellDisplay::getZAxisTransform ( ) const
privatevirtual

Reimplemented from visSurvey::SurveyObject.

bool visSurvey::WellDisplay::hasChanged ( ) const
inlineprivate
bool visSurvey::WellDisplay::hasColor ( ) const
inlineprivatevirtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::WellDisplay::infoChgCB ( CallBacker )
protected
bool visSurvey::WellDisplay::isHomeMadeWell ( ) const
inlineprivate
const OD::LineStyle* visSurvey::WellDisplay::lineStyle ( ) const
privatevirtual
Note
Modification of color should be done with setMaterial on visBase::VisualObject If the linestyle can be set, a non-zero pointer should be return.

Reimplemented from visSurvey::SurveyObject.

void visSurvey::WellDisplay::logChgCB ( CallBacker )
protected
const Color& visSurvey::WellDisplay::logColor ( visBase::Well::Side  ) const
private
void visSurvey::WellDisplay::logDispPropsChgCB ( CallBacker )
protected
bool visSurvey::WellDisplay::logNameShown ( ) const
private
void visSurvey::WellDisplay::logsChgCB ( CallBacker )
protected
bool visSurvey::WellDisplay::logsShown ( ) const
private
void visSurvey::WellDisplay::markerDispPropsChgCB ( CallBacker )
protected
bool visSurvey::WellDisplay::markerNameShown ( ) const
private
void visSurvey::WellDisplay::markersChgCB ( CallBacker )
protected
int visSurvey::WellDisplay::markerScreenSize ( ) const
private
bool visSurvey::WellDisplay::markersShown ( ) const
private
mODTextTranslationClass (WellDisplay) public visSurvey::WellDisplay::mDefaultFactoryInstantiation ( visSurvey::SurveyObject  ,
WellDisplay  ,
"WellDisplay"  ,
toUiString(sFactoryKeyword())   
) const
private
bool visSurvey::WellDisplay::needsConversionToTime ( ) const
private
void visSurvey::WellDisplay::pickCB ( CallBacker cb = 0)
protected
void visSurvey::WellDisplay::removePick ( const visBase::EventInfo )
protected
void visSurvey::WellDisplay::restoreDispProp ( )
private
void visSurvey::WellDisplay::saveDispProp ( const Well::Data wd)
protected
void visSurvey::WellDisplay::setChanged ( bool  yn)
inlineprivate
void visSurvey::WellDisplay::setDisplayTransformation ( const mVisTrans )
private
void visSurvey::WellDisplay::setDisplayTransformForPicks ( const mVisTrans )
private
void visSurvey::WellDisplay::setLineStyle ( const OD::LineStyle )
privatevirtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::WellDisplay::setLogColor ( const Color ,
visBase::Well::Side   
)
private
void visSurvey::WellDisplay::setLogData ( visBase::Well::LogParams &  ,
bool   
)
private
void visSurvey::WellDisplay::setLogDisplay ( visBase::Well::Side  )
private
void visSurvey::WellDisplay::setLogInfo ( BufferString ,
BufferString ,
float  ,
bool   
) const
protected
void visSurvey::WellDisplay::setLogLineWidth ( int  ,
visBase::Well::Side   
)
private
void visSurvey::WellDisplay::setLogProperties ( visBase::Well::LogParams &  )
protected
void visSurvey::WellDisplay::setLogWidth ( float  ,
visBase::Well::Side   
)
private
void visSurvey::WellDisplay::setMarkerScreenSize ( int  )
private
void visSurvey::WellDisplay::setOneLogDisplayed ( bool  )
private
virtual void visSurvey::WellDisplay::setPixelDensity ( float  )
privatevirtual

Reimplemented from visBase::DataObject.

void visSurvey::WellDisplay::setSceneEventCatcher ( visBase::EventCatcher )
privatevirtual

Reimplemented from visBase::VisualObject.

void visSurvey::WellDisplay::setupPicking ( bool  )
private
void visSurvey::WellDisplay::setWell ( visBase::Well )
protected
bool visSurvey::WellDisplay::setZAxisTransform ( ZAxisTransform ,
TaskRunner  
)
privatevirtual

Reimplemented from visSurvey::SurveyObject.

void visSurvey::WellDisplay::showKnownPositions ( )
private
void visSurvey::WellDisplay::showLogName ( bool  )
private
void visSurvey::WellDisplay::showLogs ( bool  )
private
void visSurvey::WellDisplay::showMarkerName ( bool  )
private
void visSurvey::WellDisplay::showMarkers ( bool  )
private
void visSurvey::WellDisplay::showWellBotName ( bool  )
private
void visSurvey::WellDisplay::showWellTopName ( bool  )
private
void visSurvey::WellDisplay::trackChgCB ( CallBacker )
protected
void visSurvey::WellDisplay::trackDispPropsChgCB ( CallBacker )
protected
void visSurvey::WellDisplay::updateMarkers ( )
protected
bool visSurvey::WellDisplay::upscaleLogs ( const Well::Track ,
Well::Log ,
Well::Log  
) const
protected
virtual bool visSurvey::WellDisplay::usePar ( const IOPar )
privatevirtual

Reimplemented from visBase::VisualObjectImpl.

bool visSurvey::WellDisplay::wellBotNameShown ( ) const
private
void visSurvey::WellDisplay::welldataDelNotify ( CallBacker cb = 0)
protected
bool visSurvey::WellDisplay::wellTopNameShown ( ) const
private

Member Data Documentation

Notifier<WellDisplay> visSurvey::WellDisplay::changed_
protected
ZAxisTransform* visSurvey::WellDisplay::datatransform_
protected
Well::DisplayProperties* visSurvey::WellDisplay::dispprop_
protected
visBase::EventCatcher* visSurvey::WellDisplay::eventcatcher_
protected
int visSurvey::WellDisplay::logsnumber_
protected
visBase::MarkerSet* visSurvey::WellDisplay::markerset_
protected
int visSurvey::WellDisplay::mousepressid_
protected
Coord3 visSurvey::WellDisplay::mousepressposition_
protected
bool visSurvey::WellDisplay::needsave_
protected
bool visSurvey::WellDisplay::onelogdisplayed_
protected
bool visSurvey::WellDisplay::picksallowed_
protected
Well::Track* visSurvey::WellDisplay::pseudotrack_
protected
const char* visSurvey::WellDisplay::sKeyEarthModelID
staticprotected
const char* visSurvey::WellDisplay::sKeyWellID
staticprotected
Well::Track* visSurvey::WellDisplay::timetrack_
protected
const mVisTrans* visSurvey::WellDisplay::transformation_
protected
RefMan<Well::Data> visSurvey::WellDisplay::wd_
protected
visBase::Well* visSurvey::WellDisplay::well_
protected
DBKey visSurvey::WellDisplay::wellid_
protected
const bool visSurvey::WellDisplay::zinfeet_
protected
const bool visSurvey::WellDisplay::zistime_
protected

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