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::Coordinates Class Reference

A set of coordinates. The coordinates will be transformed by the transformation before given to Coin, and transformed back when doing a getPos. More...

Inheritance diagram for visBase::Coordinates:
[legend]

Public Member Functions

 Coordinates ()
 
virtual const char * getClassName () const
 
void setDisplayTransformation (const visBase::Transformation *)
 
const visBase::TransformationgetDisplayTransformation () const
 
void copyFrom (const Coordinates &)
 
int nextID (int previd) const
 
int size (bool includedelete=false) const
 
int addPos (const Coord3 &)
 
Coord3 getPos (int, bool scenespace=false) const
 
bool isDefined (int) const
 
void setPos (int, const Coord3 &)
 
void setPositions (const Coord3 *, int sz, int start, bool scenespace=false)
 
void insertPos (int, const Coord3 &)
 
void removePos (int, bool keepidxafter=true)
 
void removeAfter (int)
 
void setAllPositions (const Coord3 &pos, int sz, int start)
 
void setAllZ (const float *, int sz, bool dotransf)
 
osg::Array * osgArray ()
 
const osg::Array * osgArray () const
 
void setEmpty ()
 
bool isEmpty () const
 
void dirty () 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
 
virtual bool selectable () const
 
void select () const
 
void deSelect () const
 
void updateSel () const
 
virtual bool isSelected () const
 
virtual NotifierAccessselection ()
 
virtual NotifierAccessdeSelection ()
 
virtual NotifierAccessrightClicked ()
 
virtual const TypeSet< int > * rightClickedPath () const
 
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 Coordinatescreate ()
 
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 ()
 

Public Attributes

Notifier< Coordinateschange
 

Protected Member Functions

void getPositions (TypeSet< Coord3 > &) const
 
void setPositions (const TypeSet< Coord3 > &)
 
void setPosWithoutLock (int, const Coord3 &, bool scenespace)
 
int getFreeIdx ()
 
 ~Coordinates ()
 
- Protected Member Functions inherited from visBase::DataObject
virtual osg::StateSet * getStateSet ()
 
void doAddNodeState (NodeState *ns)
 
virtual void triggerSel ()
 
virtual void triggerDeSel ()
 
virtual void triggerRightClick (const EventInfo *=0)
 
 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

TypeSet< int > unusedcoords_
 
Threads::Mutex mutex_
 
const visBase::Transformationtransformation_
 
osg::Array * osgcoords_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

Coordinatesoperator= (const Coordinates &)
 
 Coordinates (const Coordinates &)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Friends

class CoordinatesBuilder
 
class CoordListAdapter
 
class SetOrGetCoordinates
 

Detailed Description

A set of coordinates. The coordinates will be transformed by the transformation before given to Coin, and transformed back when doing a getPos.

Note
The object will not react to changes in the transformation when it is set

Constructor & Destructor Documentation

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

Member Function Documentation

int visBase::Coordinates::addPos ( const Coord3 )
void visBase::Coordinates::copyFrom ( const Coordinates )
static Coordinates* visBase::Coordinates::create ( )
inlinestatic
static visBase::DataObject* visBase::Coordinates::createInternal ( )
inlinestaticprivate
void visBase::Coordinates::dirty ( ) const
virtual const char* visBase::Coordinates::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

const visBase::Transformation* visBase::Coordinates::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::Coordinates::getFreeIdx ( )
protected

Object should be locked when calling

Coord3 visBase::Coordinates::getPos ( int  ,
bool  scenespace = false 
) const
void visBase::Coordinates::getPositions ( TypeSet< Coord3 > &  ) const
protected
static const char* visBase::Coordinates::getStaticClassName ( )
static
static void visBase::Coordinates::initClass ( )
static
void visBase::Coordinates::insertPos ( int  ,
const Coord3  
)
bool visBase::Coordinates::isDefined ( int  ) const
bool visBase::Coordinates::isEmpty ( ) const
inline
int visBase::Coordinates::nextID ( int  previd) const

If previd == -1, first id is returned. If -1 is returned, no more id's are available.

Coordinates& visBase::Coordinates::operator= ( const Coordinates )
private
osg::Array* visBase::Coordinates::osgArray ( )
inline
const osg::Array* visBase::Coordinates::osgArray ( ) const
inline
void visBase::Coordinates::removeAfter ( int  )
void visBase::Coordinates::removePos ( int  ,
bool  keepidxafter = true 
)
void visBase::Coordinates::setAllPositions ( const Coord3 pos,
int  sz,
int  start 
)
void visBase::Coordinates::setAllZ ( const float *  ,
int  sz,
bool  dotransf 
)
void visBase::Coordinates::setDisplayTransformation ( const visBase::Transformation )
virtual
Note
All existing coords will be recalculated back from the old transformation and transformed by the new one.

Reimplemented from visBase::DataObject.

void visBase::Coordinates::setEmpty ( )
void visBase::Coordinates::setPos ( int  ,
const Coord3  
)
void visBase::Coordinates::setPositions ( const Coord3 ,
int  sz,
int  start,
bool  scenespace = false 
)
void visBase::Coordinates::setPositions ( const TypeSet< Coord3 > &  )
protected
void visBase::Coordinates::setPosWithoutLock ( int  ,
const Coord3 ,
bool  scenespace 
)
protected

Object should be locked when calling

static const char* visBase::Coordinates::sFactoryKeyword ( )
static
int visBase::Coordinates::size ( bool  includedelete = false) const

Friends And Related Function Documentation

friend class CoordinatesBuilder
friend
friend class CoordListAdapter
friend
friend class SetOrGetCoordinates
friend

Member Data Documentation

Notifier<Coordinates> visBase::Coordinates::change
Threads::Mutex visBase::Coordinates::mutex_
mutableprotected
osg::Array* visBase::Coordinates::osgcoords_
protected
const visBase::Transformation* visBase::Coordinates::transformation_
protected
TypeSet<int> visBase::Coordinates::unusedcoords_
protected

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