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

Public Types

enum  Type { Translate1D, Translate2D, Translate3D, Scale3D }
 

Public Member Functions

 Dragger ()
 
virtual const char * getClassName () const
 
void setDraggerType (Type)
 
void setPos (const Coord3 &)
 
Coord3 getPos () const
 
void setSize (const float)
 
float getSize () const
 
void setArrowColor (const Color &)
 
const ColorgetArrowColor () const
 
void setRotation (const Coord3 &, const float)
 
void setDefaultRotation ()
 
bool defaultRotation () const
 
void setOwnShape (DataObject *, bool activeshape)
 
bool selectable () const
 
NotifierAccessrightClicked ()
 
const TypeSet< int > * rightClickedPath () const
 
const EventInforightClickedEventInfo () const
 
void updateDragger (bool active)
 
void setDisplayTransformation (const visBase::Transformation *)
 
bool isMoving () const
 
- Public Member Functions inherited from visBase::DraggerBase
const visBase::TransformationgetDisplayTransformation () const
 
void setSpaceLimits (const Interval< float > &x, const Interval< float > &y, const Interval< float > &z)
 
void handleEvents (bool yn)
 
bool isHandlingEvents () 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 NotifierAccessselection ()
 
virtual NotifierAccessdeSelection ()
 
virtual void setRightHandSystem (bool yn)
 
virtual bool isRightHandSystem () 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 Draggercreate ()
 
static void initClass ()
 
static const char * getStaticClassName ()
 
static const char * sFactoryKeyword ()
 
- 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 ()
 

Protected Member Functions

 ~Dragger ()
 
void triggerRightClick (const EventInfo *eventinfo)
 
virtual void notifyStart ()
 
virtual void notifyStop ()
 
virtual void notifyMove ()
 
osg::MatrixTransform * createDefaultDraggerGeometry ()
 
osg::MatrixTransform * createTranslateDefaultGeometry ()
 
void setScaleAndTranslation (bool move=false)
 
- Protected Member Functions inherited from visBase::DraggerBase
 DraggerBase ()
 
 ~DraggerBase ()
 
void initDragger (osgManipulator::Dragger *)
 
- Protected Member Functions inherited from visBase::DataObject
virtual osg::StateSet * getStateSet ()
 
void doAddNodeState (NodeState *ns)
 
virtual void triggerSel ()
 
virtual void triggerDeSel ()
 
 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

Notifier< Draggerrightclicknotifier_
 
const EventInforightclickeventinfo_
 
DataObjectinactiveshape_
 
bool ismarkershape_
 
bool is2dtranslate_
 
Coord3 markerpos_
 
float draggersizescale_
 
float defaultdraggergeomsize_
 
Coord3 rotation_
 
float rotangle_
 
Color arrowcolor_
 
- Protected Attributes inherited from visBase::DraggerBase
const visBase::Transformationdisplaytrans_
 
osgManipulator::Dragger * osgdragger_
 
osg::Group * osgroot_
 
Interval< float > spaceranges_ [3]
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

Draggeroperator= (const Dragger &)
 
 Dragger (const Dragger &)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Additional Inherited Members

- Public Attributes inherited from visBase::DraggerBase
Notifier< DraggerBasestarted
 
Notifier< DraggerBasemotion
 
Notifier< DraggerBasefinished
 
Notifier< DraggerBasechanged
 

Detailed Description

Member Enumeration Documentation

Enumerator
Translate1D 
Translate2D 
Translate3D 
Scale3D 

Constructor & Destructor Documentation

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

Member Function Documentation

static Dragger* visBase::Dragger::create ( )
inlinestatic
osg::MatrixTransform* visBase::Dragger::createDefaultDraggerGeometry ( )
protected
static visBase::DataObject* visBase::Dragger::createInternal ( )
inlinestaticprivate
osg::MatrixTransform* visBase::Dragger::createTranslateDefaultGeometry ( )
protected
bool visBase::Dragger::defaultRotation ( ) const
const Color& visBase::Dragger::getArrowColor ( ) const
virtual const char* visBase::Dragger::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

Coord3 visBase::Dragger::getPos ( ) const
float visBase::Dragger::getSize ( ) const
static const char* visBase::Dragger::getStaticClassName ( )
static
static void visBase::Dragger::initClass ( )
static
bool visBase::Dragger::isMoving ( ) const
virtual void visBase::Dragger::notifyMove ( )
protectedvirtual

Implements visBase::DraggerBase.

virtual void visBase::Dragger::notifyStart ( )
protectedvirtual

Implements visBase::DraggerBase.

virtual void visBase::Dragger::notifyStop ( )
protectedvirtual

Implements visBase::DraggerBase.

Dragger& visBase::Dragger::operator= ( const Dragger )
private
NotifierAccess* visBase::Dragger::rightClicked ( )
inlinevirtual

Reimplemented from visBase::DataObject.

const EventInfo* visBase::Dragger::rightClickedEventInfo ( ) const
const TypeSet<int>* visBase::Dragger::rightClickedPath ( ) const
virtual

Reimplemented from visBase::DataObject.

bool visBase::Dragger::selectable ( ) const
virtual

Reimplemented from visBase::DataObject.

void visBase::Dragger::setArrowColor ( const Color )
void visBase::Dragger::setDefaultRotation ( )
void visBase::Dragger::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::DraggerBase.

void visBase::Dragger::setDraggerType ( Type  )
void visBase::Dragger::setOwnShape ( DataObject ,
bool  activeshape 
)

Sets a shape on the dragger.

void visBase::Dragger::setPos ( const Coord3 )
void visBase::Dragger::setRotation ( const Coord3 ,
const float   
)
void visBase::Dragger::setScaleAndTranslation ( bool  move = false)
protected
void visBase::Dragger::setSize ( const float  )
static const char* visBase::Dragger::sFactoryKeyword ( )
static
void visBase::Dragger::triggerRightClick ( const EventInfo eventinfo)
protectedvirtual

Reimplemented from visBase::DataObject.

void visBase::Dragger::updateDragger ( bool  active)

Member Data Documentation

Color visBase::Dragger::arrowcolor_
protected
float visBase::Dragger::defaultdraggergeomsize_
protected
float visBase::Dragger::draggersizescale_
protected
DataObject* visBase::Dragger::inactiveshape_
protected
bool visBase::Dragger::is2dtranslate_
protected
bool visBase::Dragger::ismarkershape_
protected
Coord3 visBase::Dragger::markerpos_
protected
const EventInfo* visBase::Dragger::rightclickeventinfo_
protected
Notifier<Dragger> visBase::Dragger::rightclicknotifier_
protected
float visBase::Dragger::rotangle_
protected
Coord3 visBase::Dragger::rotation_
protected

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