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

Classes

struct  DragControl
 

Public Member Functions

 RandomTrackDragger ()
 
virtual const char * getClassName () const
 
int nrKnots () const
 
Coord getKnot (int) const
 
void setKnot (int, const Coord &)
 
void insertKnot (int, const Coord &)
 
void removeKnot (int)
 
void showAdjacentPanels (int knotidx, bool yn)
 
bool areAdjacentPanelsShown (int knotidx) const
 
void showAllPanels (bool yn)
 
bool areAllPanelsShown () const
 
Interval< float > getDepthRange () const
 
void setDepthRange (const Interval< float > &)
 
void setDisplayTransformation (const visBase::Transformation *)
 
const visBase::TransformationgetDisplayTransformation () const
 
void setLimits (const Coord3 &start, const Coord3 &stop, const Coord3 &step)
 
void updateZLimit (const Interval< float > &zborder)
 
void showPlaneDraggers (bool yn, int minsizeinsteps=0)
 
void setTransDragKeys (bool trans1d, int keys, int groupidx=0)
 
int getTransDragKeys (bool trans1d, int groupidx=0) const
 
NotifierAccessrightClicked ()
 
const TypeSet< int > * rightClickedPath () const
 
const EventInforightClickedEventInfo () const
 
int getKnotIdx (const TypeSet< int > &pickpath) const
 
void handleEvents (bool yn)
 
bool isHandlingEvents () const
 
- 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 ()
 
const EventInforightClickedEventInfo () 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 RandomTrackDraggercreate ()
 
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

CNotifier< RandomTrackDragger, int > motion
 knotidx>=0, panelidx<0 More...
 
Notifier< RandomTrackDraggermovefinished
 

Protected Member Functions

 ~RandomTrackDragger ()
 
void startCB (CallBacker *)
 
void moveCB (CallBacker *)
 
void finishCB (CallBacker *)
 
void triggerRightClick (const EventInfo *eventinfo)
 
void doSetKnot (int, const Coord &)
 
void followActiveDragger (int activeidx)
 
void updatePanels ()
 
void postponePanelUpdate (bool)
 
void turnPanelOn (int planeidx, bool yn)
 
void setPanelsPolygonOffset (bool)
 
void removePlaneDraggerCBHandler (int idx)
 
void addPlaneDraggerCBHandler ()
 
void updatePlaneDraggers ()
 
void updateKnotColor (int idx, bool horoverlap)
 
bool canShowPlaneDragger (int planeidx, bool &horoverlap) const
 
void snapToLimits (Coord3 &pos) const
 
Coord3 getPlaneBoundingBoxInSteps (int planeidx) const
 
bool doesKnotStickToBorder (int knotidx) const
 
unsigned char getOnBorderFlags (int knotidx) const
 
void showRotationAxis (bool yn, int planeidx=0, Coord normpickedpos=Coord::udf())
 
int getDragControlIdx (bool trans1d, int groupidx, bool docreate)
 
int getDragControlIdx (bool trans1d, int groupidx) const
 
- 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 ()
 
 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...
 

Static Protected Member Functions

static const char * sKeyDraggerScale ()
 

Protected Attributes

ObjectSet< Draggerdraggers_
 
ObjectSet< MarkerSetdraggermarkers_
 
ObjectSet< PlaneDragCBHandlerplanedraghandlers_
 
osg::Switch * panels_
 
osg::Switch * planedraggers_
 
osg::Switch * rotationaxis_
 
BoolTypeSet showadjacents_
 
bool showallpanels_
 
bool showplanedraggers_
 
int planedraggerminsizeinsteps_
 
bool postponepanelupdate_
 
Interval< float > zrange_
 
StepInterval< float > limits_ [3]
 
Geom::Rectangle< double > horborder_
 
Interval< float > zborder_
 
Notifier< RandomTrackDraggerrightclicknotifier_
 
const EventInforightclickeventinfo_
 
const visBase::Transformationdisplaytrans_
 
ObjectSet< DragControldragcontrols_
 
- Protected Attributes inherited from visBase::VisualObjectImpl
Materialmaterial_
 
bool righthandsystem_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

RandomTrackDraggeroperator= (const RandomTrackDragger &)
 
 RandomTrackDragger (const RandomTrackDragger &)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Friends

class PlaneDragCBHandler
 

Detailed Description

Constructor & Destructor Documentation

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

Member Function Documentation

void visBase::RandomTrackDragger::addPlaneDraggerCBHandler ( )
protected
bool visBase::RandomTrackDragger::areAdjacentPanelsShown ( int  knotidx) const
bool visBase::RandomTrackDragger::areAllPanelsShown ( ) const
bool visBase::RandomTrackDragger::canShowPlaneDragger ( int  planeidx,
bool &  horoverlap 
) const
protected
static RandomTrackDragger* visBase::RandomTrackDragger::create ( )
inlinestatic
static visBase::DataObject* visBase::RandomTrackDragger::createInternal ( )
inlinestaticprivate
bool visBase::RandomTrackDragger::doesKnotStickToBorder ( int  knotidx) const
protected
void visBase::RandomTrackDragger::doSetKnot ( int  ,
const Coord  
)
protected
void visBase::RandomTrackDragger::finishCB ( CallBacker )
protected
void visBase::RandomTrackDragger::followActiveDragger ( int  activeidx)
protected
virtual const char* visBase::RandomTrackDragger::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

Interval<float> visBase::RandomTrackDragger::getDepthRange ( ) const
const visBase::Transformation* visBase::RandomTrackDragger::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::RandomTrackDragger::getDragControlIdx ( bool  trans1d,
int  groupidx,
bool  docreate 
)
protected
int visBase::RandomTrackDragger::getDragControlIdx ( bool  trans1d,
int  groupidx 
) const
protected
Coord visBase::RandomTrackDragger::getKnot ( int  ) const
int visBase::RandomTrackDragger::getKnotIdx ( const TypeSet< int > &  pickpath) const
unsigned char visBase::RandomTrackDragger::getOnBorderFlags ( int  knotidx) const
protected
Coord3 visBase::RandomTrackDragger::getPlaneBoundingBoxInSteps ( int  planeidx) const
protected
static const char* visBase::RandomTrackDragger::getStaticClassName ( )
static
int visBase::RandomTrackDragger::getTransDragKeys ( bool  trans1d,
int  groupidx = 0 
) const
void visBase::RandomTrackDragger::handleEvents ( bool  yn)
static void visBase::RandomTrackDragger::initClass ( )
static
void visBase::RandomTrackDragger::insertKnot ( int  ,
const Coord  
)
bool visBase::RandomTrackDragger::isHandlingEvents ( ) const
void visBase::RandomTrackDragger::moveCB ( CallBacker )
protected
int visBase::RandomTrackDragger::nrKnots ( ) const
RandomTrackDragger& visBase::RandomTrackDragger::operator= ( const RandomTrackDragger )
private
void visBase::RandomTrackDragger::postponePanelUpdate ( bool  )
protected
void visBase::RandomTrackDragger::removeKnot ( int  )
void visBase::RandomTrackDragger::removePlaneDraggerCBHandler ( int  idx)
protected
NotifierAccess* visBase::RandomTrackDragger::rightClicked ( )
inlinevirtual

Reimplemented from visBase::VisualObject.

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

Reimplemented from visBase::VisualObject.

void visBase::RandomTrackDragger::setDepthRange ( const Interval< float > &  )
void visBase::RandomTrackDragger::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::RandomTrackDragger::setKnot ( int  ,
const Coord  
)
void visBase::RandomTrackDragger::setLimits ( const Coord3 start,
const Coord3 stop,
const Coord3 step 
)
void visBase::RandomTrackDragger::setPanelsPolygonOffset ( bool  )
protected
void visBase::RandomTrackDragger::setTransDragKeys ( bool  trans1d,
int  keys,
int  groupidx = 0 
)
static const char* visBase::RandomTrackDragger::sFactoryKeyword ( )
static
void visBase::RandomTrackDragger::showAdjacentPanels ( int  knotidx,
bool  yn 
)
void visBase::RandomTrackDragger::showAllPanels ( bool  yn)
void visBase::RandomTrackDragger::showPlaneDraggers ( bool  yn,
int  minsizeinsteps = 0 
)
void visBase::RandomTrackDragger::showRotationAxis ( bool  yn,
int  planeidx = 0,
Coord  normpickedpos = Coord::udf() 
)
protected
static const char* visBase::RandomTrackDragger::sKeyDraggerScale ( )
inlinestaticprotected
void visBase::RandomTrackDragger::snapToLimits ( Coord3 pos) const
protected
void visBase::RandomTrackDragger::startCB ( CallBacker )
protected
void visBase::RandomTrackDragger::triggerRightClick ( const EventInfo eventinfo)
protectedvirtual

Reimplemented from visBase::VisualObject.

void visBase::RandomTrackDragger::turnPanelOn ( int  planeidx,
bool  yn 
)
protected
void visBase::RandomTrackDragger::updateKnotColor ( int  idx,
bool  horoverlap 
)
protected
void visBase::RandomTrackDragger::updatePanels ( )
protected
void visBase::RandomTrackDragger::updatePlaneDraggers ( )
protected
void visBase::RandomTrackDragger::updateZLimit ( const Interval< float > &  zborder)

Friends And Related Function Documentation

friend class PlaneDragCBHandler
friend

Member Data Documentation

const visBase::Transformation* visBase::RandomTrackDragger::displaytrans_
protected
ObjectSet<DragControl> visBase::RandomTrackDragger::dragcontrols_
protected
ObjectSet<MarkerSet> visBase::RandomTrackDragger::draggermarkers_
protected
ObjectSet<Dragger> visBase::RandomTrackDragger::draggers_
protected
Geom::Rectangle<double> visBase::RandomTrackDragger::horborder_
protected
StepInterval<float> visBase::RandomTrackDragger::limits_[3]
protected
CNotifier<RandomTrackDragger,int> visBase::RandomTrackDragger::motion

knotidx>=0, panelidx<0

Notifier<RandomTrackDragger> visBase::RandomTrackDragger::movefinished
osg::Switch* visBase::RandomTrackDragger::panels_
protected
int visBase::RandomTrackDragger::planedraggerminsizeinsteps_
protected
osg::Switch* visBase::RandomTrackDragger::planedraggers_
protected
ObjectSet<PlaneDragCBHandler> visBase::RandomTrackDragger::planedraghandlers_
protected
bool visBase::RandomTrackDragger::postponepanelupdate_
protected
const EventInfo* visBase::RandomTrackDragger::rightclickeventinfo_
protected
Notifier<RandomTrackDragger> visBase::RandomTrackDragger::rightclicknotifier_
protected
osg::Switch* visBase::RandomTrackDragger::rotationaxis_
protected
BoolTypeSet visBase::RandomTrackDragger::showadjacents_
protected
bool visBase::RandomTrackDragger::showallpanels_
protected
bool visBase::RandomTrackDragger::showplanedraggers_
protected
Interval<float> visBase::RandomTrackDragger::zborder_
protected
Interval<float> visBase::RandomTrackDragger::zrange_
protected

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