OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Friends | List of all members
visBase::DepthTabPlaneDragger Class Reference
Inheritance diagram for visBase::DepthTabPlaneDragger:
[legend]

Public Member Functions

 DepthTabPlaneDragger ()
 
virtual const char * getClassName () const
 
void removeScaleTabs ()
 
void setCenter (const Coord3 &, bool alldims=true)
 
Coord3 center () const
 
void setSize (const Coord3 &, bool alldims=true)
 
Coord3 size () const
 
void setDim (int dim)
 
int getDim () const
 
void setSpaceLimits (const Interval< float > &x, const Interval< float > &y, const Interval< float > &z)
 
void getSpaceLimits (Interval< float > &x, Interval< float > &y, Interval< float > &z) const
 
void setWidthLimits (const Interval< float > &x, const Interval< float > &y, const Interval< float > &z)
 
void getWidthLimits (Interval< float > &x, Interval< float > &y, Interval< float > &z) const
 
void setDisplayTransformation (const visBase::Transformation *)
 
const visBase::TransformationgetDisplayTransformation () const
 
void showDraggerBorder (bool yn=true)
 
bool isDraggerBorderShown () const
 
void showPlane (bool yn=true)
 
bool isPlaneShown () const
 
void setTransDragKeys (bool depth, int keys)
 
int getTransDragKeys (bool depth) const
 
void setDragCtrlSpacing (const StepInterval< float > &, const StepInterval< float > &, const StepInterval< float > &)
 
- 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 ()
 
virtual bool usePar (const IOPar &)
 
virtual void fillPar (IOPar &) const
 
- Public Member Functions inherited from visBase::VisualObject
virtual bool getBoundingBox (Coord3 &min, Coord3 &max) const
 
virtual void setSceneEventCatcher (EventCatcher *)
 
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 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
 
SoNode * getInventorNode ()
 
const SoNode * getInventorNode () 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 setPixelDensity (float dpi)
 
virtual float getPixelDensity () const
 
virtual const char * errMsg () 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 (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 DepthTabPlaneDraggercreate ()
 
static void initClass ()
 
static const char * getStaticClassName ()
 
static const char * sFactoryKeyword ()
 
- 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 (const void *)
 Call only once from initialization. More...
 
static bool isVisualizationThread ()
 
static void requestSingleRedraw ()
 
static void setCommonViewer (osgViewer::CompositeViewer *)
 
static osgViewer::CompositeViewer * getCommonViewer ()
 

Public Attributes

Notifier< DepthTabPlaneDraggerstarted
 
Notifier< DepthTabPlaneDraggermotion
 
Notifier< DepthTabPlaneDraggerchanged
 
Notifier< DepthTabPlaneDraggerfinished
 

Protected Member Functions

 ~DepthTabPlaneDragger ()
 
void setOsgMatrix (const Coord3 &worldscale, const Coord3 &worldtrans)
 
void initOsgDragger ()
 
- 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
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 ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

int dim_
 
TypeSet< Coord3centers_
 
TypeSet< Coord3sizes_
 
RefMan< const visBase::Transformationtransform_
 
osgGeo::TabPlaneDragger * osgdragger_
 
osg::Switch * osgdraggerplane_
 
PlaneDraggerCallbackHandlerosgcallbackhandler_
 
Interval< float > widthranges_ [3]
 
Interval< float > spaceranges_ [3]
 
StepInterval< float > dragctrlspacing_ [3]
 
- Protected Attributes inherited from visBase::VisualObjectImpl
Materialmaterial_
 
bool righthandsystem_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

DepthTabPlaneDraggeroperator= (const DepthTabPlaneDragger &)
 
 DepthTabPlaneDragger (const DepthTabPlaneDragger &)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Friends

class PlaneDraggerCallbackHandler
 

Detailed Description

Constructor & Destructor Documentation

visBase::DepthTabPlaneDragger::DepthTabPlaneDragger ( const DepthTabPlaneDragger )
private
visBase::DepthTabPlaneDragger::DepthTabPlaneDragger ( )
visBase::DepthTabPlaneDragger::~DepthTabPlaneDragger ( )
protected

Member Function Documentation

Coord3 visBase::DepthTabPlaneDragger::center ( ) const
static DepthTabPlaneDragger* visBase::DepthTabPlaneDragger::create ( )
inlinestatic
static visBase::DataObject* visBase::DepthTabPlaneDragger::createInternal ( )
inlinestaticprivate
virtual const char* visBase::DepthTabPlaneDragger::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

int visBase::DepthTabPlaneDragger::getDim ( ) const
const visBase::Transformation* visBase::DepthTabPlaneDragger::getDisplayTransformation ( ) const
virtual

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.

void visBase::DepthTabPlaneDragger::getSpaceLimits ( Interval< float > &  x,
Interval< float > &  y,
Interval< float > &  z 
) const
static const char* visBase::DepthTabPlaneDragger::getStaticClassName ( )
static
int visBase::DepthTabPlaneDragger::getTransDragKeys ( bool  depth) const
Parameters
depthspecifies wheter the depth or the plane setting should be returned.
Returns
combination of OD::ButtonState
void visBase::DepthTabPlaneDragger::getWidthLimits ( Interval< float > &  x,
Interval< float > &  y,
Interval< float > &  z 
) const
static void visBase::DepthTabPlaneDragger::initClass ( )
static
void visBase::DepthTabPlaneDragger::initOsgDragger ( )
protected
bool visBase::DepthTabPlaneDragger::isDraggerBorderShown ( ) const
bool visBase::DepthTabPlaneDragger::isPlaneShown ( ) const
DepthTabPlaneDragger& visBase::DepthTabPlaneDragger::operator= ( const DepthTabPlaneDragger )
private
void visBase::DepthTabPlaneDragger::removeScaleTabs ( )
void visBase::DepthTabPlaneDragger::setCenter ( const Coord3 ,
bool  alldims = true 
)
Note
once removed, they cannot be restored
Parameters
alldimsif true, it updates the internal cache, so the new position is valid through a setDim()
void visBase::DepthTabPlaneDragger::setDim ( int  dim)

Sets the dim of the plane's normal

Parameters
dim=0x-axis
dim=1y-axis
dim=2z-axis
void visBase::DepthTabPlaneDragger::setDisplayTransformation ( const visBase::Transformation )
virtual

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.

void visBase::DepthTabPlaneDragger::setDragCtrlSpacing ( const StepInterval< float > &  ,
const StepInterval< float > &  ,
const StepInterval< float > &   
)
void visBase::DepthTabPlaneDragger::setOsgMatrix ( const Coord3 worldscale,
const Coord3 worldtrans 
)
protected
void visBase::DepthTabPlaneDragger::setSize ( const Coord3 ,
bool  alldims = true 
)
Parameters
alldimsif true, it updates the internal cache, so the new position is valid through a setDim()
void visBase::DepthTabPlaneDragger::setSpaceLimits ( const Interval< float > &  x,
const Interval< float > &  y,
const Interval< float > &  z 
)
void visBase::DepthTabPlaneDragger::setTransDragKeys ( bool  depth,
int  keys 
)
Parameters
depthspecifies wheter the depth or the plane setting should be changed.
keyscombination of OD::ButtonState
Note
only shift/ctrl/alt are used.
void visBase::DepthTabPlaneDragger::setWidthLimits ( const Interval< float > &  x,
const Interval< float > &  y,
const Interval< float > &  z 
)
static const char* visBase::DepthTabPlaneDragger::sFactoryKeyword ( )
static
void visBase::DepthTabPlaneDragger::showDraggerBorder ( bool  yn = true)
void visBase::DepthTabPlaneDragger::showPlane ( bool  yn = true)
Coord3 visBase::DepthTabPlaneDragger::size ( ) const

Friends And Related Function Documentation

friend class PlaneDraggerCallbackHandler
friend

Member Data Documentation

TypeSet<Coord3> visBase::DepthTabPlaneDragger::centers_
protected
Notifier<DepthTabPlaneDragger> visBase::DepthTabPlaneDragger::changed
int visBase::DepthTabPlaneDragger::dim_
protected
StepInterval<float> visBase::DepthTabPlaneDragger::dragctrlspacing_[3]
protected
Notifier<DepthTabPlaneDragger> visBase::DepthTabPlaneDragger::finished
Notifier<DepthTabPlaneDragger> visBase::DepthTabPlaneDragger::motion
PlaneDraggerCallbackHandler* visBase::DepthTabPlaneDragger::osgcallbackhandler_
protected
osgGeo::TabPlaneDragger* visBase::DepthTabPlaneDragger::osgdragger_
protected
osg::Switch* visBase::DepthTabPlaneDragger::osgdraggerplane_
protected
TypeSet<Coord3> visBase::DepthTabPlaneDragger::sizes_
protected
Interval<float> visBase::DepthTabPlaneDragger::spaceranges_[3]
protected
Notifier<DepthTabPlaneDragger> visBase::DepthTabPlaneDragger::started
RefMan<const visBase::Transformation > visBase::DepthTabPlaneDragger::transform_
protected
Interval<float> visBase::DepthTabPlaneDragger::widthranges_[3]
protected

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