OpendTect-6_4
6.4
|
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 | |
virtual const char * | getClassName () const |
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 NotifierAccess * | selection () |
virtual NotifierAccess * | deSelection () |
virtual NotifierAccess * | rightClicked () |
virtual const TypeSet< int > * | rightClickedPath () const |
virtual void | setDisplayTransformation (const visBase::Transformation *) |
virtual const visBase::Transformation * | getDisplayTransformation () 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) |
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 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 () |
Protected Member Functions | |
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 | |
DataObjectGroup * | parent_ |
Private Member Functions | |
mRefCountImpl (DataObject) | |
void | setOsgNodeInternal (osg::Node *) |
void | updateOsgNodeData () |
Private Attributes | |
ObjectSet< NodeState > | nodestates_ |
osg::Node * | osgnode_ |
osg::Switch * | osgoffswitch_ |
int | id_ |
bool | ison_ |
uiString | name_ |
unsigned int | enabledmask_ |
Static Private Attributes | |
static const void * | visualizationthread_ |
static osgViewer::CompositeViewer * | commonviewer_ |
Friends | |
class | SelectionManager |
class | Scene |
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.
|
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::VolumeDisplay, visSurvey::MPEDisplay, visSurvey::RandomTrackDisplay, visSurvey::WellDisplay, visSurvey::MultiTextureSurveyObject, visSurvey::EMObjectDisplay, visSurvey::PolygonBodyDisplay, visSurvey::FaultStickSetDisplay, visSurvey::MarchingCubesDisplay, visSurvey::RandomPosBodyDisplay, visSurvey::PointSetDisplay, visSurvey::LocationDisplay, and visSurvey::PolyLineDisplay.
|
inlinevirtual |
Reimplemented in visBase::ColTabTextureChannel2RGBA, visBase::Text2, visBase::EventCatcher, visBase::VertexShape, visBase::Dragger, visBase::Transformation, visBase::PolyLine3D, visBase::Annotation, visBase::HorizonSection, visBase::TextureChannels, visBase::Coordinates, visBase::Well, visBase::MarkerSet, visBase::VolumeRenderScalarField, visBase::GeomIndexedShape, visBase::PolygonSelection, visBase::Scene, visBase::RandomTrackDragger, visBase::DepthTabPlaneDragger, visBase::PolyLine, visBase::RandomPos2Body, visBase::TextureRectangle, visBase::ScaleBar, visBase::TexturePanelStrip, visBase::BoxDragger, visBase::GridLines, visBase::MarchingCubesSurface, visBase::Normals, visBase::Camera, visBase::Image, visBase::ImageRect, visBase::SceneColTab, visBase::OrthogonalSlice, visBase::FlatViewer, visBase::RGBATextureChannel2RGBA, visBase::DataObjectGroup, visBase::TextureChannel2VolData, visBase::TextureCoords, visBase::ThumbWheel, visBase::TopBotImage, visBase::Axes, visBase::PointSet, visBase::Lines, and visBase::TriangleStripSet.
|
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 visBase::Well, visSurvey::RandomTrackDisplay, visSurvey::PlaneDataDisplay, visSurvey::MPEClickCatcher, visBase::VertexShape, visSurvey::WellDisplay, visBase::MarkerSet, visSurvey::FaultDisplay, visSurvey::Seis2DDisplay, visSurvey::PSEventDisplay, visBase::TexturePanelStrip, visBase::Annotation, visBase::DepthTabPlaneDragger, visBase::TextureRectangle, visSurvey::FaultStickSetDisplay, visSurvey::LocationDisplay, visSurvey::EMObjectDisplay, visSurvey::PolygonBodyDisplay, visBase::MarchingCubesSurface, visBase::DataObjectGroup, visBase::BoxDragger, visBase::Coordinates, visBase::OrthogonalSlice, visBase::HorizonSection, visBase::Normals, visBase::RandomTrackDragger, visSurvey::PickSetDisplay, visSurvey::MarchingCubesDisplay, visSurvey::MPEEditor, visSurvey::PointSetDisplay, visSurvey::RandomPosBodyDisplay, visBase::GeomIndexedShape, visSurvey::ScaleBarDisplay, visBase::DraggerBase, visBase::RandomPos2Body, visSurvey::ArrowDisplay, visSurvey::PolyLineDisplay, visSurvey::ImageDisplay, and visBase::TopBotImage.
|
static |
|
inline |
|
inline |
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 |
|
private |
uiString visBase::DataObject::name | ( | ) | const |
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::Dragger, visBase::RandomTrackDragger, and visBase::VisualObject.
|
inlinevirtual |
Reimplemented in visBase::Dragger, visBase::RandomTrackDragger, and visBase::VisualObject.
void visBase::DataObject::select | ( | ) | const |
|
inlinevirtual |
Reimplemented in visSurvey::VolumeDisplay, visSurvey::MPEDisplay, visBase::Dragger, visBase::BoxDragger, visSurvey::PointSetDisplay, and visBase::VisualObject.
|
inlinevirtual |
Reimplemented in visBase::VisualObject.
bool visBase::DataObject::serialize | ( | const char * | filename, |
bool | binary = false |
||
) |
|
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 visBase::Well, visBase::VertexShape, visBase::Dragger, visBase::Text2, visBase::MarkerSet, visBase::TexturePanelStrip, visBase::Annotation, visBase::DepthTabPlaneDragger, visBase::TextureRectangle, visBase::PolyLine3D, visBase::MarchingCubesSurface, visBase::DataObjectGroup, visBase::BoxDragger, visBase::FlatViewer, visBase::OrthogonalSlice, visBase::HorizonSection, visBase::Normals, visBase::RandomTrackDragger, visBase::Coordinates, visBase::PolyLine, visBase::ScaleBar, visBase::GeomIndexedShape, visBase::DraggerBase, visBase::RandomPos2Body, visBase::PointSet, visBase::ImageRect, visBase::GridLines, and visBase::TopBotImage.
void visBase::DataObject::setID | ( | int | nid | ) |
|
virtual |
Reimplemented in visBase::Scene.
|
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::HorizonDisplay, visSurvey::RandomTrackDisplay, visBase::Well, visSurvey::FaultDisplay, visSurvey::EMObjectDisplay, visSurvey::WellDisplay, visSurvey::FaultStickSetDisplay, visBase::Text2, visBase::MarkerSet, visSurvey::Seis2DDisplay, visBase::GeomIndexedShape, visSurvey::PolygonBodyDisplay, visBase::Annotation, visBase::PolyLine3D, visBase::DataObjectGroup, visSurvey::PSEventDisplay, visSurvey::Horizon2DDisplay, visBase::FlatViewer, visSurvey::PointSetDisplay, visSurvey::PickSetDisplay, visBase::GridLines, visBase::SceneColTab, visSurvey::PolyLineDisplay, and visBase::Axes.
|
inlinevirtual |
Sets whether the coordinate system is right or left handed.
Reimplemented in visSurvey::VolumeDisplay, visSurvey::MPEDisplay, visBase::VolumeRenderScalarField, visSurvey::LocationDisplay, visBase::VisualObjectImpl, visBase::DataObjectGroup, and visBase::MarchingCubesSurface.
|
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::Dragger, visBase::RandomTrackDragger, and visBase::VisualObject.
|
inlineprotectedvirtual |
Is called everytime object is selected.
Reimplemented in visSurvey::MPEDisplay, and visBase::VisualObject.
|
virtual |
|
protected |
|
private |
void visBase::DataObject::updateSel | ( | ) | const |
|
friend |
|
friend |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
staticprivate |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019