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::BoxDragger Class Reference
Inheritance diagram for visBase::BoxDragger:
[legend]

Public Member Functions

 BoxDragger ()
 
virtual const char * getClassName () const
 
void setCenter (const Coord3 &)
 
Coord3 center () const
 
void setWidth (const Coord3 &)
 
Coord3 width () const
 
void setBoxTransparency (float)
 Between 0 and 1. More...
 
void showScaleTabs (bool)
 
void setSpaceLimits (const Interval< float > &, const Interval< float > &, const Interval< float > &)
 
void setWidthLimits (const Interval< float > &x, const Interval< float > &y, const Interval< float > &z)
 
void showDraggerBorder (bool yn=true)
 
bool isDraggerBorderShown () const
 
bool selectable () const
 
void setSelectable (bool yn)
 
void setDisplayTransformation (const visBase::Transformation *)
 
const visBase::TransformationgetDisplayTransformation () const
 
void setPlaneTransDragKeys (bool depth, int keys)
 
int getPlaneTransDragKeys (bool depth) const
 
void useInDepthTranslationForResize (bool)
 
bool isInDepthTranslationUsedForResize () 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 BoxDraggercreate ()
 
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< BoxDraggerstarted
 
Notifier< BoxDraggermotion
 
Notifier< BoxDraggerchanged
 
Notifier< BoxDraggerfinished
 

Protected Member Functions

 ~BoxDragger ()
 
void setOsgMatrix (const Coord3 &worldscale, const Coord3 &worldtrans)
 
- 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

RefMan< const visBase::Transformationtransform_
 
osgGeo::TabBoxDragger * osgboxdragger_
 
osg::ShapeDrawable * osgdraggerbox_
 
BoxDraggerCallbackHandlerosgcallbackhandler_
 
Interval< float > widthranges_ [3]
 
Interval< float > spaceranges_ [3]
 
StepInterval< float > dragctrlspacing_ [3]
 
bool selectable_
 
bool useindepthtransforresize_
 
- Protected Attributes inherited from visBase::VisualObjectImpl
Materialmaterial_
 
bool righthandsystem_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

BoxDraggeroperator= (const BoxDragger &)
 
 BoxDragger (const BoxDragger &)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Friends

class BoxDraggerCallbackHandler
 

Detailed Description

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from visBase::DataObject.

const visBase::Transformation* visBase::BoxDragger::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.

int visBase::BoxDragger::getPlaneTransDragKeys ( bool  depth) const
Parameters
depthtells whether the setting for in-depth or in-plane translation of the box should be returned.
Returns
combination of OD::ButtonState
static const char* visBase::BoxDragger::getStaticClassName ( )
static
static void visBase::BoxDragger::initClass ( )
static
bool visBase::BoxDragger::isDraggerBorderShown ( ) const
bool visBase::BoxDragger::isInDepthTranslationUsedForResize ( ) const
BoxDragger& visBase::BoxDragger::operator= ( const BoxDragger )
private
bool visBase::BoxDragger::selectable ( ) const
inlinevirtual

Reimplemented from visBase::DataObject.

void visBase::BoxDragger::setBoxTransparency ( float  )

Between 0 and 1.

void visBase::BoxDragger::setCenter ( const Coord3 )
void visBase::BoxDragger::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::BoxDragger::setDragCtrlSpacing ( const StepInterval< float > &  ,
const StepInterval< float > &  ,
const StepInterval< float > &   
)
void visBase::BoxDragger::setOsgMatrix ( const Coord3 worldscale,
const Coord3 worldtrans 
)
protected
void visBase::BoxDragger::setPlaneTransDragKeys ( bool  depth,
int  keys 
)
Parameters
depthtells whether the setting for in-depth or in-plane translation of the box planes should be changed.
keyscombination of OD::ButtonState
Note
only shift/ctrl/alt are used.
void visBase::BoxDragger::setSelectable ( bool  yn)
inline
void visBase::BoxDragger::setSpaceLimits ( const Interval< float > &  ,
const Interval< float > &  ,
const Interval< float > &   
)
void visBase::BoxDragger::setWidth ( const Coord3 )
void visBase::BoxDragger::setWidthLimits ( const Interval< float > &  x,
const Interval< float > &  y,
const Interval< float > &  z 
)
static const char* visBase::BoxDragger::sFactoryKeyword ( )
static
void visBase::BoxDragger::showDraggerBorder ( bool  yn = true)
void visBase::BoxDragger::showScaleTabs ( bool  )
void visBase::BoxDragger::useInDepthTranslationForResize ( bool  )
Coord3 visBase::BoxDragger::width ( ) const

Friends And Related Function Documentation

friend class BoxDraggerCallbackHandler
friend

Member Data Documentation

Notifier<BoxDragger> visBase::BoxDragger::changed
StepInterval<float> visBase::BoxDragger::dragctrlspacing_[3]
protected
Notifier<BoxDragger> visBase::BoxDragger::finished
Notifier<BoxDragger> visBase::BoxDragger::motion
osgGeo::TabBoxDragger* visBase::BoxDragger::osgboxdragger_
protected
BoxDraggerCallbackHandler* visBase::BoxDragger::osgcallbackhandler_
protected
osg::ShapeDrawable* visBase::BoxDragger::osgdraggerbox_
protected
bool visBase::BoxDragger::selectable_
protected
Interval<float> visBase::BoxDragger::spaceranges_[3]
protected
Notifier<BoxDragger> visBase::BoxDragger::started
RefMan<const visBase::Transformation > visBase::BoxDragger::transform_
protected
bool visBase::BoxDragger::useindepthtransforresize_
protected
Interval<float> visBase::BoxDragger::widthranges_[3]
protected

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