OpendTect
7.0
|
DataObject is the base class off all objects that are used in Visualization and ought to be shared in visBase::DataManager. The DataManager owns all the objects and is thus the only one that is allowed to delete it. The destructors on the inherited classes should thus be protected. More...
Public Member Functions | |
template<class T > | |
T * | addNodeState (T *ns) |
void | deSelect () const |
virtual NotifierAccess * | deSelection () |
void | enableTraversal (unsigned int mask, bool yn=true) |
virtual const char * | errMsg () const |
virtual const char * | getClassName () const |
virtual const visBase::Transformation * | getDisplayTransformation () const |
SoNode * | getInventorNode () |
const SoNode * | getInventorNode () const |
BufferString | getName () const override |
NodeState * | getNodeState (int idx) |
virtual float | getPixelDensity () const |
VisID | id () const |
virtual bool | isOK () const |
virtual bool | isOn () const |
bool | isPickable (bool actively=true) const |
virtual bool | isRightHandSystem () const |
virtual bool | isSelected () const |
bool | isTraversalEnabled (unsigned int mask) const |
const OD::String & | name () const override |
osg::Node * | osgNode (bool skipswitch=false) |
const osg::Node * | osgNode (bool skipswitch=false) const |
NodeState * | removeNodeState (NodeState *) |
virtual bool | rightClickable () const |
virtual NotifierAccess * | rightClicked () |
virtual const TypeSet< VisID > * | rightClickedPath () const |
void | select () const |
virtual bool | selectable () const |
virtual NotifierAccess * | selection () |
bool | serialize (const char *filename, bool binary=false) |
virtual void | setDisplayTransformation (const visBase::Transformation *) |
void | setID (VisID newid) |
void | setName (const char *) override |
void | setName (const uiString &uistr) |
void | setParent (DataObjectGroup *g) |
void | setPickable (bool actively, bool passively=true) |
virtual void | setPixelDensity (float dpi) |
virtual void | setRightHandSystem (bool yn) |
void | setUiName (const uiString &) |
virtual bool | turnOn (bool yn) |
uiString | uiName () const |
void | updateSel () const |
Public Member Functions inherited from SharedObject | |
SharedObject (const char *nm=nullptr) | |
SharedObject (const SharedObject &) | |
Public Member Functions inherited from NamedCallBacker | |
NamedCallBacker (const char *nm=0) | |
NamedCallBacker (const NamedCallBacker &) | |
virtual Notifier< NamedCallBacker > & | objectToBeDeleted () const |
bool | operator== (const NamedCallBacker &oth) const |
bool | operator== (const NamedObject &oth) const |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
void | detachAllNotifiers () const |
Call from the destructor of your inherited object. More... | |
void | detachCB (const NotifierAccess &, const CallBack &) const |
void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
virtual bool | isCapsule () const |
bool | isNotifierAttached (const NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
void | stopReceivingNotifications () const |
virtual CallBacker * | trueCaller () |
Public Member Functions inherited from NamedObject | |
NamedObject (const char *nm=nullptr) | |
NamedObject (const NamedObject &oth) | |
virtual | ~NamedObject () |
bool | getNameFromPar (const IOPar &) |
NamedObject & | operator= (const NamedObject &) |
bool | operator== (const NamedObject &oth) const |
Public Member Functions inherited from ObjectWithName | |
virtual | ~ObjectWithName () |
bool | hasName (const char *nm) const |
bool | hasName (const name_type &nm) const |
void | putNameInPar (IOPar &) const |
Public Member Functions inherited from RefCount::Referenced | |
void | addObserver (WeakPtrBase *obs) |
Not for normal use. May become private. More... | |
int | nrRefs () const |
Only for expert use. More... | |
void | ref () const |
bool | refIfReffed () const |
Don't use in production, for debugging. More... | |
void | removeObserver (WeakPtrBase *obs) |
Not for normal use. May become private. More... | |
bool | tryRef () const |
Not for normal use. May become private. More... | |
void | unRef () const |
void | unRefNoDelete () const |
Static Public Member Functions | |
static osgViewer::CompositeViewer * | getCommonViewer () |
static float | getDefaultPixelDensity () |
static VisID | getID (const osg::Node *) |
static bool | isVisualizationThread () |
static void | requestSingleRedraw () |
static void | setCommonViewer (osgViewer::CompositeViewer *) |
static void | setDefaultPixelDensity (float) |
static void | setVisualizationThread (const void *) |
Call only once from initialization. More... | |
Static Public Member Functions inherited from SharedObject | |
static Notifier< SharedObject > & | instanceCreated () |
Static Public Member Functions inherited from CallBacker | |
static void | createReceiverForCurrentThread () |
static void | removeReceiverForCurrentThread () |
Static Public Member Functions inherited from RefCount::Referenced | |
static bool | isSane (const Referenced *) |
Protected Member Functions | |
DataObject () | |
virtual | ~DataObject () |
void | doAddNodeState (NodeState *ns) |
virtual osg::StateSet * | getStateSet () |
template<class T > | |
T * | setOsgNode (T *t) |
Must be called during construction. More... | |
virtual void | triggerDeSel () |
virtual void | triggerRightClick (const EventInfo *=nullptr) |
virtual void | triggerSel () |
void | updateNodemask () |
Protected Member Functions inherited from SharedObject | |
virtual | ~SharedObject () |
Protected Member Functions inherited from NamedCallBacker | |
void | sendDelNotif () const |
Protected Member Functions inherited from RefCount::Referenced | |
Referenced () | |
Referenced (const Referenced &) | |
virtual | ~Referenced () |
Referenced & | operator= (const Referenced &) |
Protected Attributes | |
DataObjectGroup * | parent_ |
Protected Attributes inherited from NamedCallBacker | |
Threads::Atomic< bool > | delalreadytriggered_ |
Notifier< NamedCallBacker > | delnotif_ |
Protected Attributes inherited from NamedObject | |
BufferString | name_ |
Private Member Functions | |
void | setOsgNodeInternal (osg::Node *) |
void | updateOsgNodeData () |
Private Attributes | |
unsigned int | enabledmask_ |
VisID | id_ |
bool | ison_ |
ObjectSet< NodeState > | nodestates_ |
osg::Node * | osgnode_ |
osg::Switch * | osgoffswitch_ |
uiString | uiname_ |
Static Private Attributes | |
static osgViewer::CompositeViewer * | commonviewer_ |
static const void * | visualizationthread_ |
Friends | |
class | Scene |
class | SelectionManager |
Additional Inherited Members | |
Public Types inherited from ObjectWithName | |
typedef OD::String | name_type |
DataObject is the base class off all objects that are used in Visualization and ought to be shared in visBase::DataManager. The DataManager owns all the objects and is thus the only one that is allowed to delete it. The destructors on the inherited classes should thus be protected.
<>
|
protectedvirtual |
|
protected |
|
inline |
void visBase::DataObject::deSelect | ( | ) | const |
|
inlinevirtual |
Reimplemented in visBase::VisualObject.
|
protected |
void visBase::DataObject::enableTraversal | ( | unsigned int | mask, |
bool | yn = true |
||
) |
|
inlinevirtual |
Reimplemented in visSurvey::WellDisplay, visSurvey::VolumeDisplay, visSurvey::RandomTrackDisplay, visSurvey::RandomPosBodyDisplay, visSurvey::PolyLineDisplay, visSurvey::PolygonBodyDisplay, visSurvey::PointSetDisplay, visSurvey::MultiTextureSurveyObject, visSurvey::MPEDisplay, visSurvey::MarchingCubesDisplay, visSurvey::LocationDisplay, visSurvey::FaultStickSetDisplay, and visSurvey::EMObjectDisplay.
|
inlinevirtual |
Reimplemented in visBase::Well, visBase::VolumeRenderScalarField, visBase::OrthogonalSlice, visBase::TriangleStripSet, visBase::Transformation, visBase::TopBotImage, visBase::ThumbWheel, visBase::TextureRectangle, visBase::TexturePanelStrip, visBase::TextureCoords, visBase::TextureChannels, visBase::TextureChannel2VolData, visBase::ColTabTextureChannel2RGBA, visBase::Text2, visBase::VertexShape, visBase::SceneColTab, visBase::Scene, visBase::ScaleBar, visBase::RGBATextureChannel2RGBA, visBase::RandomTrackDragger, visBase::RandomPos2Body, visBase::PolyLine3D, visBase::PolyLine, visBase::PolygonSelection, visBase::PointSet, visBase::Normals, visBase::MarkerSet, visBase::MarchingCubesSurface, visBase::Lines, visBase::ImageRect, visBase::Image, visBase::HorizonSection, visBase::GridLines, visBase::GeomIndexedShape, visBase::FlatViewer, visBase::EventCatcher, visBase::Dragger, visBase::DepthTabPlaneDragger, visBase::DataObjectGroup, visBase::Coordinates, visBase::Camera, visBase::BoxDragger, visBase::Axes, and visBase::Annotation.
|
static |
|
static |
|
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 in visSurvey::WellDisplay, visSurvey::Seis2DDisplay, visSurvey::ScaleBarDisplay, visSurvey::RandomTrackDisplay, visSurvey::RandomPosBodyDisplay, visSurvey::PSEventDisplay, visSurvey::PreStackDisplay, visSurvey::PolyLineDisplay, visSurvey::PolygonBodyDisplay, visSurvey::PointSetDisplay, visSurvey::PlaneDataDisplay, visSurvey::PickSetDisplay, visSurvey::MPEClickCatcher, visSurvey::MPEEditor, visSurvey::MarchingCubesDisplay, visSurvey::LocationDisplay, visSurvey::ImageDisplay, visSurvey::FaultStickSetDisplay, visSurvey::FaultSetDisplay, visSurvey::FaultDisplay, visSurvey::EMObjectDisplay, visSurvey::ArrowDisplay, visBase::Well, visBase::OrthogonalSlice, visBase::TopBotImage, visBase::TextureRectangle, visBase::TexturePanelStrip, visBase::VertexShape, visBase::RandomTrackDragger, visBase::RandomPos2Body, visBase::Normals, visBase::MarkerSet, visBase::MarchingCubesSurface, visBase::HorizonSection, visBase::GeomIndexedShape, visBase::DraggerBase, visBase::DepthTabPlaneDragger, visBase::DataObjectGroup, visBase::Coordinates, visBase::BoxDragger, and visBase::Annotation.
|
static |
|
inline |
|
inline |
|
overridevirtual |
Reimplemented from NamedObject.
NodeState* visBase::DataObject::getNodeState | ( | int | idx | ) |
|
virtual |
|
protectedvirtual |
|
inline |
|
inlinevirtual |
|
virtual |
bool visBase::DataObject::isPickable | ( | bool | actively = true | ) | const |
|
inlinevirtual |
Reimplemented in visSurvey::Scene, visBase::VolumeRenderScalarField, visBase::VisualObjectImpl, and visBase::DataObjectGroup.
|
virtual |
Reimplemented in visSurvey::VolumeDisplay, and visSurvey::MPEDisplay.
bool visBase::DataObject::isTraversalEnabled | ( | unsigned int | mask | ) | const |
|
static |
|
overridevirtual |
Reimplemented from NamedObject.
osg::Node* visBase::DataObject::osgNode | ( | bool | skipswitch = false | ) |
const osg::Node* visBase::DataObject::osgNode | ( | bool | skipswitch = false | ) | const |
|
static |
|
inlinevirtual |
Reimplemented in visSurvey::VolumeDisplay, and visSurvey::MPEDisplay.
|
inlinevirtual |
Reimplemented in visBase::RandomTrackDragger, visBase::VisualObject, and visBase::Dragger.
Reimplemented in visBase::RandomTrackDragger, visBase::VisualObject, and visBase::Dragger.
void visBase::DataObject::select | ( | ) | const |
|
inlinevirtual |
Reimplemented in visSurvey::VolumeDisplay, visSurvey::PointSetDisplay, visSurvey::MPEDisplay, visBase::VisualObject, visBase::Dragger, and visBase::BoxDragger.
|
inlinevirtual |
Reimplemented in visBase::VisualObject.
bool visBase::DataObject::serialize | ( | const char * | filename, |
bool | binary = false |
||
) |
|
static |
|
static |
|
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 in visSurvey::PreStackDisplay, visBase::Well, visBase::OrthogonalSlice, visBase::TopBotImage, visBase::TextureRectangle, visBase::TexturePanelStrip, visBase::Text2, visBase::VertexShape, visBase::ScaleBar, visBase::RandomTrackDragger, visBase::RandomPos2Body, visBase::PolyLine3D, visBase::PolyLine, visBase::PointSet, visBase::Normals, visBase::MarkerSet, visBase::MarchingCubesSurface, visBase::ImageRect, visBase::HorizonSection, visBase::GridLines, visBase::GeomIndexedShape, visBase::FlatViewer, visBase::Dragger, visBase::DraggerBase, visBase::DepthTabPlaneDragger, visBase::DataObjectGroup, visBase::Coordinates, visBase::BoxDragger, and visBase::Annotation.
void visBase::DataObject::setID | ( | VisID | newid | ) |
|
overridevirtual |
Reimplemented from NamedObject.
Reimplemented in visBase::Scene.
|
inline |
|
inlineprotected |
Must be called during construction.
|
private |
|
inline |
void visBase::DataObject::setPickable | ( | bool | actively, |
bool | passively = true |
||
) |
actively: mouse click/drag, key press, etc. passively: hovering (e.g. status info)
|
virtual |
Reimplemented in visSurvey::WellDisplay, visSurvey::Seis2DDisplay, visSurvey::RandomTrackDisplay, visSurvey::PSEventDisplay, visSurvey::PolyLineDisplay, visSurvey::PolygonBodyDisplay, visSurvey::PointSetDisplay, visSurvey::PickSetDisplay, visSurvey::HorizonDisplay, visSurvey::Horizon2DDisplay, visBase::Well, visBase::Text2, visBase::PolyLine3D, visBase::MarkerSet, visBase::GridLines, visBase::GeomIndexedShape, visBase::FlatViewer, visBase::Annotation, visSurvey::FaultStickSetDisplay, visSurvey::FaultSetDisplay, visSurvey::FaultDisplay, visSurvey::EMObjectDisplay, visBase::SceneColTab, visBase::DataObjectGroup, and visBase::Axes.
|
inlinevirtual |
Sets whether the coordinate system is right or left handed.
Reimplemented in visBase::VolumeRenderScalarField, visBase::MarchingCubesSurface, visBase::DataObjectGroup, visSurvey::VolumeDisplay, visSurvey::MPEDisplay, visSurvey::LocationDisplay, and visBase::VisualObjectImpl.
void visBase::DataObject::setUiName | ( | const uiString & | ) |
|
static |
Call only once from initialization.
|
inlineprotectedvirtual |
Is called everytime object is deselected.
Reimplemented in visSurvey::MPEDisplay, visSurvey::LocationDisplay, and visBase::VisualObject.
|
inlineprotectedvirtual |
Reimplemented in visBase::RandomTrackDragger, visBase::Dragger, and visBase::VisualObject.
|
inlineprotectedvirtual |
Is called everytime object is selected.
Reimplemented in visSurvey::MPEDisplay, and visBase::VisualObject.
|
virtual |
uiString visBase::DataObject::uiName | ( | ) | const |
|
protected |
|
private |
void visBase::DataObject::updateSel | ( | ) | const |
|
friend |
|
friend |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
staticprivate |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024