OpendTect-6_4
6.4
|
Annotation is a simple wireframe box with text on its axis. More...
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 FontData & | getFont () const |
void | setFont (const FontData &) |
void | setTrcKeyZSampling (const TrcKeyZSampling &) |
const TrcKeyZSampling & | getTrcKeyZSampling () const |
void | setScale (const TrcKeyZSampling &) |
const TrcKeyZSampling & | getScale () 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::Transformation * | getDisplayTransformation () const |
virtual void | setPixelDensity (float) |
const Text2 * | getAnnotTexts () 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 Material * | getMaterial () const |
Material * | getMaterial () |
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 |
NotifierAccess * | selection () |
NotifierAccess * | deSelection () |
virtual NotifierAccess * | rightClicked () |
const EventInfo * | rightClickedEventInfo () 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) |
NodeState * | removeNodeState (NodeState *) |
NodeState * | getNodeState (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 Annotation * | create () |
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 | |
Annotation & | operator= (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::DataObject * | createInternal () |
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< Text2 > | axisnames_ |
RefMan< Text2 > | axisannot_ |
visBase::Scene * | scene_ |
const visBase::Transformation * | displaytrans_ |
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 | |
Material * | material_ |
bool | righthandsystem_ |
Protected Attributes inherited from visBase::DataObject | |
DataObjectGroup * | parent_ |
Annotation is a simple wireframe box with text on its axis.
|
private |
visBase::Annotation::Annotation | ( | ) |
|
private |
|
inline |
bool visBase::Annotation::canShowGridLines | ( | ) | const |
|
staticprivate |
|
inlinestatic |
|
inlinestaticprivate |
|
virtual |
Reimplemented from visBase::VisualObjectImpl.
|
private |
|
inline |
|
private |
|
virtual |
Reimplemented from visBase::DataObject.
|
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 TrcKeyZSampling& visBase::Annotation::getTrcKeyZSampling | ( | ) | const |
|
static |
|
private |
bool visBase::Annotation::isGridLinesShown | ( | ) | const |
bool visBase::Annotation::isScaleShown | ( | ) | const |
bool visBase::Annotation::isTextShown | ( | ) | const |
|
private |
|
private |
|
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 |
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 |
void visBase::Annotation::showGridLines | ( | bool | yn | ) |
void visBase::Annotation::showScale | ( | bool | yn | ) |
|
staticprivate |
void visBase::Annotation::showText | ( | bool | yn | ) |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
virtual |
Reimplemented from visBase::VisualObjectImpl.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019