OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
visBase::Annotation Class Reference

Annotation is a simple wireframe box with text on its axis. More...

Inheritance diagram for visBase::Annotation:
[legend]

Public Member Functions

 Annotation ()
 
virtual const char * getClassName () const
 
void showText (bool yn)
 
bool isTextShown () const
 
void showScale (bool yn)
 
bool isScaleShown () const
 
bool canShowGridLines () const
 
void showGridLines (bool yn)
 
bool isGridLinesShown () const
 
const FontDatagetFont () const
 
void setFont (const FontData &)
 
void setTrcKeyZSampling (const TrcKeyZSampling &)
 
const TrcKeyZSamplinggetTrcKeyZSampling () const
 
void setScale (const TrcKeyZSampling &)
 
const TrcKeyZSamplinggetScale () const
 
void setScaleFactor (int dim, int scale)
 
void setText (int dim, const uiString &)
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
void setDisplayTransformation (const visBase::Transformation *)
 
const visBase::TransformationgetDisplayTransformation () const
 
virtual void setPixelDensity (float)
 
const Text2getAnnotTexts () const
 
void setScene (Scene *)
 
void allowShading (bool yn)
 
- 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 ()
 
- 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 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 Annotationcreate ()
 
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 ()
 

Private Member Functions

Annotationoperator= (const Annotation &)
 
 Annotation (const Annotation &)
 
 ~Annotation ()
 
void firstTraversal (CallBacker *)
 
void initGridLines ()
 
void updateGridLines ()
 
void updateTextPos ()
 
void updateTextColor (CallBacker *)
 
void getAxisCoords (int, osg::Vec3f &, osg::Vec3f &) const
 
void setCorner (int, float, float, float)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 
static const char * textprefixstr ()
 
static const char * cornerprefixstr ()
 
static const char * showtextstr ()
 
static const char * showscalestr ()
 

Private Attributes

int scalefactor_ [3]
 
TrcKeyZSampling tkzs_
 
TrcKeyZSampling tkzsdefaultscale_
 
TrcKeyZSampling scale_
 
osg::Geometry * box_
 
osg::Array * gridlinecoords_
 
osg::Geode * geode_
 
osgGeo::OneSideRender * gridlines_
 
RefMan< Text2axisnames_
 
RefMan< Text2axisannot_
 
visBase::Scenescene_
 
const visBase::Transformationdisplaytrans_
 
Color annotcolor_
 
bool allowshading_
 

Additional Inherited Members

- 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 inherited from visBase::VisualObjectImpl
Materialmaterial_
 
bool righthandsystem_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Detailed Description

Annotation is a simple wireframe box with text on its axis.

Constructor & Destructor Documentation

visBase::Annotation::Annotation ( const Annotation )
private
visBase::Annotation::Annotation ( )
visBase::Annotation::~Annotation ( )
private

Member Function Documentation

void visBase::Annotation::allowShading ( bool  yn)
inline
bool visBase::Annotation::canShowGridLines ( ) const
static const char* visBase::Annotation::cornerprefixstr ( )
staticprivate
static Annotation* visBase::Annotation::create ( )
inlinestatic
static visBase::DataObject* visBase::Annotation::createInternal ( )
inlinestaticprivate
void visBase::Annotation::fillPar ( IOPar ) const
virtual

Reimplemented from visBase::VisualObjectImpl.

void visBase::Annotation::firstTraversal ( CallBacker )
private
const Text2* visBase::Annotation::getAnnotTexts ( ) const
inline
void visBase::Annotation::getAxisCoords ( int  ,
osg::Vec3f &  ,
osg::Vec3f &   
) const
private
virtual const char* visBase::Annotation::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

const visBase::Transformation* visBase::Annotation::getDisplayTransformation ( ) const
inlinevirtual

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.

const FontData& visBase::Annotation::getFont ( ) const
const TrcKeyZSampling& visBase::Annotation::getScale ( ) const
static const char* visBase::Annotation::getStaticClassName ( )
static
const TrcKeyZSampling& visBase::Annotation::getTrcKeyZSampling ( ) const
static void visBase::Annotation::initClass ( )
static
void visBase::Annotation::initGridLines ( )
private
bool visBase::Annotation::isGridLinesShown ( ) const
bool visBase::Annotation::isScaleShown ( ) const
bool visBase::Annotation::isTextShown ( ) const
Annotation& visBase::Annotation::operator= ( const Annotation )
private
void visBase::Annotation::setCorner ( int  ,
float  ,
float  ,
float   
)
private
void visBase::Annotation::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::Annotation::setFont ( const FontData )
virtual void visBase::Annotation::setPixelDensity ( float  )
virtual

Reimplemented from visBase::DataObject.

void visBase::Annotation::setScale ( const TrcKeyZSampling )
void visBase::Annotation::setScaleFactor ( int  dim,
int  scale 
)
void visBase::Annotation::setScene ( Scene )
void visBase::Annotation::setText ( int  dim,
const uiString  
)
void visBase::Annotation::setTrcKeyZSampling ( const TrcKeyZSampling )
static const char* visBase::Annotation::sFactoryKeyword ( )
static
void visBase::Annotation::showGridLines ( bool  yn)
void visBase::Annotation::showScale ( bool  yn)
static const char* visBase::Annotation::showscalestr ( )
staticprivate
void visBase::Annotation::showText ( bool  yn)
static const char* visBase::Annotation::showtextstr ( )
staticprivate
static const char* visBase::Annotation::textprefixstr ( )
staticprivate
void visBase::Annotation::updateGridLines ( )
private
void visBase::Annotation::updateTextColor ( CallBacker )
private
void visBase::Annotation::updateTextPos ( )
private
bool visBase::Annotation::usePar ( const IOPar )
virtual

Reimplemented from visBase::VisualObjectImpl.

Member Data Documentation

bool visBase::Annotation::allowshading_
private
Color visBase::Annotation::annotcolor_
private
RefMan<Text2> visBase::Annotation::axisannot_
private
RefMan<Text2> visBase::Annotation::axisnames_
private
osg::Geometry* visBase::Annotation::box_
private
const visBase::Transformation* visBase::Annotation::displaytrans_
private
osg::Geode* visBase::Annotation::geode_
private
osg::Array* visBase::Annotation::gridlinecoords_
private
osgGeo::OneSideRender* visBase::Annotation::gridlines_
private
TrcKeyZSampling visBase::Annotation::scale_
private
int visBase::Annotation::scalefactor_[3]
private
visBase::Scene* visBase::Annotation::scene_
private
TrcKeyZSampling visBase::Annotation::tkzs_
private
TrcKeyZSampling visBase::Annotation::tkzsdefaultscale_
private

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