OpendTect
7.0
|
Database for 3D objects. More...
Public Member Functions | |
void | addInlCrlZObject (visBase::DataObject *) |
void | addObject (visBase::DataObject *) override |
void | addUTMObject (visBase::VisualObject *) |
void | createTopBotImage (bool istop) |
void | fillPar (IOPar &) const |
void | getAllowedZDomains (BufferString &) const |
const OD::Color | getAnnotColor () const |
const FontData & | getAnnotFont () const |
const TrcKeyZSampling & | getAnnotScale () const |
float | getApparentVelocity (float zstretch) const |
int | getFirstIdx (const DataObject *) const override |
int | getFirstIdx (VisID did) const override |
float | getFixedZStretch () const |
const mVisTrans * | getInlCrl2DisplayTransform () const |
const KeyboardEvent & | getKeyboardEvent () const |
const OD::Color & | getMarkerColor () const |
float | getMarkerSize () const |
bool | getMoreObjectsToDoHint () const |
const MouseCursor * | getMouseCursor () const |
const MouseEvent & | getMouseEvent () const |
TrcKeyValue | getMousePos () const |
Coord3 | getMousePos (bool displayspace) const |
BufferString | getMousePosString () const |
BufferString | getMousePosValue () const |
const visBase::DataObject * | getObject (int) const |
visBase::DataObject * | getObject (int) override |
visBase::PolygonSelection * | getPolySelection () |
visBase::SceneColTab * | getSceneColTab () |
const Selector< Coord3 > * | getSelector () const |
float | getTempZStretch () const |
const mVisTrans * | getTempZStretchTransform () const |
visBase::TopBotImage * | getTopBotImage (bool istop) |
Coord3 | getTopBottomIntersection (const visBase::EventInfo &, bool outerface, bool ignoreocclusion) const |
Coord3 | getTopBottomSurveyPos (const visBase::EventInfo &, bool outerface, bool ignoreocclusion, bool inlcrlspace=true) const |
const TrcKeyZSampling & | getTrcKeyZSampling () const |
const mVisTrans * | getUTM2DisplayTransform () const |
ZAxisTransform * | getZAxisTransform () |
const ZAxisTransform * | getZAxisTransform () const |
float | getZScale () const |
bool | isAnnotGridShown () const |
bool | isAnnotScaleShown () const |
bool | isAnnotShown () const |
bool | isAnnotTextShown () const |
bool | isRightHandSystem () const override |
void | objectMoved (CallBacker *) |
void | passMouseCursor (const MouseCursor &) |
void | removeAll () override |
void | removeObject (int idx) override |
void | savePropertySettings () |
void | selectPosModeManipObj (VisID selid) |
void | setAnnotColor (const OD::Color &) |
void | setAnnotFont (const FontData &) |
void | setAnnotScale (const TrcKeyZSampling &) |
void | setAnnotText (int dim, const uiString &) |
void | setEventHandled () |
void | setFixedZStretch (float) |
void | setMarkerColor (const OD::Color &) |
void | setMarkerPos (const TrcKeyValue &, SceneID sceneid) |
void | setMarkerSize (float) |
void | setMoreObjectsToDoHint (bool yn) |
void | setPolygonSelector (visBase::PolygonSelection *) |
void | setSceneColTab (visBase::SceneColTab *) |
void | setTempZStretch (float) |
void | setTrcKeyZSampling (const TrcKeyZSampling &) |
void | setZAxisTransform (ZAxisTransform *, TaskRunner *) |
void | setZDomainInfo (const ZDomain::Info &) |
void | setZScale (float) |
void | showAnnot (bool) |
void | showAnnotGrid (bool) |
void | showAnnotScale (bool) |
void | showAnnotText (bool) |
int | size () const override |
virtual bool | usePar (const IOPar &) |
const MultiID | zDomainID () const |
const ZDomain::Info & | zDomainInfo () const |
const char * | zDomainKey () const |
const char * | zDomainUnitStr (bool withparens=false) const |
int | zDomainUserFactor () const |
uiString | zDomainUserName () const |
Public Member Functions inherited from visBase::Scene | |
Scene () | |
bool | blockMouseSelection (bool yn) |
EventCatcher & | eventCatcher () |
int | fixedIdx () const |
OD::Color | getBackgroundColor () const |
Camera * | getCamera () |
const Camera * | getCamera () const |
float | getCameraAmbientLight () const |
float | getCameraLightIntensity () const |
virtual const char * | getClassName () const override |
Light * | getDirectionalLight () const |
PolygonOffset * | getPolygonOffset () |
float | getPolygonOffsetFactor () const |
float | getPolygonOffsetUnits () const |
int | getUpdateQueueID () const |
bool | saveCurrentOffsetAsDefault () const |
void | setBackgroundColor (const OD::Color &) |
virtual void | setCamera (Camera *) |
void | setCameraAmbientLight (float) |
void | setCameraLightIntensity (float) |
void | setName (const char *) override |
Public Member Functions inherited from visBase::DataObjectGroup | |
DataObjectGroup () | |
void | addObject (VisID) |
const visBase::Transformation * | getDisplayTransformation () const override |
virtual int | getFirstIdx (const DataObject *) const |
const DataObject * | getObject (int idx) const |
float | getPixelDensity () const override |
virtual void | insertObject (int idx, DataObject *) |
void | setDisplayTransformation (const visBase::Transformation *) override |
void | setPixelDensity (float dpi) override |
void | setRightHandSystem (bool) override |
void | setSeparate (bool yn=true) |
Public Member Functions inherited from visBase::DataObject | |
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 |
SoNode * | getInventorNode () |
const SoNode * | getInventorNode () const |
BufferString | getName () const override |
NodeState * | getNodeState (int idx) |
VisID | id () const |
virtual bool | isOK () const |
virtual bool | isOn () const |
bool | isPickable (bool actively=true) 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) |
void | setID (VisID newid) |
void | setName (const uiString &uistr) |
void | setParent (DataObjectGroup *g) |
void | setPickable (bool actively, bool passively=true) |
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 Scene * | create () mCreateDataObj(Scene) |
static const char * | sKeyZStretch () |
Static Public Member Functions inherited from visBase::Scene | |
static Scene * | create () |
static const char * | getStaticClassName () |
static void | initClass () |
static const char * | sFactoryKeyword () |
static const char * | sKeyFactor () |
static const char * | sKeyLight () |
static const char * | sKeyOffset () |
static const char * | sKeyUnits () |
Static Public Member Functions inherited from visBase::DataObjectGroup | |
static DataObjectGroup * | create () |
static const char * | getStaticClassName () |
static void | initClass () |
static const char * | sFactoryKeyword () |
Static Public Member Functions inherited from visBase::DataObject | |
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 *) |
Public Attributes | |
Notifier< Scene > | keypressed |
Notifier< Scene > | mouseclicked |
Notifier< Scene > | mousecursorchange |
Notifier< Scene > | mouseposchange |
Notifier< Scene > | sceneboundingboxupdated |
Public Attributes inherited from visBase::Scene | |
Notifier< Scene > | contextIsUp |
Notifier< Scene > | nameChanged |
Public Attributes inherited from visBase::DataObjectGroup | |
Notifier< DataObjectGroup > | change |
Protected Member Functions | |
~Scene () | |
visBase::MarkerSet * | createMarkerSet () const |
int | getImageFromPar (const IOPar &, const char *, visBase::TopBotImage *&) |
void | keyPressCB (CallBacker *) |
void | mouseCB (CallBacker *) |
void | mouseCursorCB (CallBacker *) |
void | selChangeCB (CallBacker *) |
void | setup () |
void | togglePosModeManipObjSel () |
void | updateAnnotationText () |
void | updateTransforms (const TrcKeyZSampling &) |
Protected Member Functions inherited from visBase::Scene | |
void | fillOffsetPar (IOPar &) const |
virtual void | runUpdateQueueCB (CallBacker *) |
Protected Member Functions inherited from visBase::DataObjectGroup | |
virtual | ~DataObjectGroup () |
Protected Member Functions inherited from visBase::DataObject | |
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 &) |
Static Protected Member Functions | |
static const OD::Color & | cDefaultMarkerColor () |
static const char * | sKeyAnnotColor () |
static const char * | sKeyAnnotFont () |
static const char * | sKeyAppAllowShading () |
static const char * | sKeyBotImageID () |
static const char * | sKeyMarkerColor () |
static const char * | sKeyShowAnnot () |
static const char * | sKeyShowCube () |
static const char * | sKeyShowGrid () |
static const char * | sKeyShowScale () |
static const char * | sKeyTopImageID () |
static const char * | sKeyZAxisTransform () |
Additional Inherited Members | |
Public Types inherited from ObjectWithName | |
typedef OD::String | name_type |
Database for 3D objects.
VisSurvey::Scene
is the database for all 'xxxxDisplay' objects. Use addObject(visBase::SceneObject*)
to add an object to the Scene.
It also manages the size of the survey cube. The ranges in each direction are obtained from SurveyInfo
class.
The display coordinate system is given in [m/m/ms] if the survey's depth is given in time. If the survey's depth is given in meters, the display coordinate system is given as [m/m/m]. The display coordinate system is righthand oriented!
OpenInventor(OI) has difficulties handling real-world coordinates (like xy UTM). Therefore the coordinates given to OI must be transformed from the UTM system to the display coordinate system. This is done by the display transform, which is given to all objects in the UTM system. These object are responsible to transform their coords themselves before giving them to OI.
The visSurvey::Scene has two domains:
1) the UTM coordinate system. It is advised that most objects are here. The objects added to this domain will have their transforms set to the displaytransform which transforms their coords from UTM lefthand (x, y, time[s] or depth[m] ) to display coords (righthand).
2) the InlCrl domain. Here, OI takes care of the transformation between inl/crl/t to display coords, so the objects does not need any own transform.
<>
|
protectedvirtual |
Reimplemented from visBase::Scene.
void visSurvey::Scene::addInlCrlZObject | ( | visBase::DataObject * | ) |
|
overridevirtual |
If the object is a visSurvey::SurveyObject it will ask if it's an inlcrl-object or not. If it's not an visSurvey::SurveyObject, it will be put in displaydomain
Reimplemented from visBase::Scene.
void visSurvey::Scene::addUTMObject | ( | visBase::VisualObject * | ) |
|
staticprotected |
|
static |
|
protected |
void visSurvey::Scene::createTopBotImage | ( | bool | istop | ) |
void visSurvey::Scene::fillPar | ( | IOPar & | ) | const |
void visSurvey::Scene::getAllowedZDomains | ( | BufferString & | ) | const |
const OD::Color visSurvey::Scene::getAnnotColor | ( | ) | const |
const FontData& visSurvey::Scene::getAnnotFont | ( | ) | const |
const TrcKeyZSampling& visSurvey::Scene::getAnnotScale | ( | ) | const |
float visSurvey::Scene::getApparentVelocity | ( | float | zstretch | ) | const |
|
override |
|
inlineoverridevirtual |
Reimplemented from visBase::DataObjectGroup.
float visSurvey::Scene::getFixedZStretch | ( | ) | const |
|
protected |
const mVisTrans* visSurvey::Scene::getInlCrl2DisplayTransform | ( | ) | const |
|
inline |
const OD::Color& visSurvey::Scene::getMarkerColor | ( | ) | const |
float visSurvey::Scene::getMarkerSize | ( | ) | const |
bool visSurvey::Scene::getMoreObjectsToDoHint | ( | ) | const |
const MouseCursor* visSurvey::Scene::getMouseCursor | ( | ) | const |
|
inline |
TrcKeyValue visSurvey::Scene::getMousePos | ( | ) | const |
Coord3 visSurvey::Scene::getMousePos | ( | bool | displayspace | ) | const |
BufferString visSurvey::Scene::getMousePosString | ( | ) | const |
BufferString visSurvey::Scene::getMousePosValue | ( | ) | const |
const visBase::DataObject* visSurvey::Scene::getObject | ( | int | ) | const |
|
overridevirtual |
Reimplemented from visBase::DataObjectGroup.
|
inline |
|
inline |
May be NULL
float visSurvey::Scene::getTempZStretch | ( | ) | const |
const mVisTrans* visSurvey::Scene::getTempZStretchTransform | ( | ) | const |
visBase::TopBotImage* visSurvey::Scene::getTopBotImage | ( | bool | istop | ) |
Coord3 visSurvey::Scene::getTopBottomIntersection | ( | const visBase::EventInfo & | , |
bool | outerface, | ||
bool | ignoreocclusion | ||
) | const |
Coord3 visSurvey::Scene::getTopBottomSurveyPos | ( | const visBase::EventInfo & | , |
bool | outerface, | ||
bool | ignoreocclusion, | ||
bool | inlcrlspace = true |
||
) | const |
|
inline |
const mVisTrans* visSurvey::Scene::getUTM2DisplayTransform | ( | ) | const |
ZAxisTransform* visSurvey::Scene::getZAxisTransform | ( | ) |
const ZAxisTransform* visSurvey::Scene::getZAxisTransform | ( | ) | const |
float visSurvey::Scene::getZScale | ( | ) | const |
Returns an anproximate figure how to scale Z relates to XY coordinates in this scene.
bool visSurvey::Scene::isAnnotGridShown | ( | ) | const |
bool visSurvey::Scene::isAnnotScaleShown | ( | ) | const |
bool visSurvey::Scene::isAnnotShown | ( | ) | const |
bool visSurvey::Scene::isAnnotTextShown | ( | ) | const |
|
overridevirtual |
Reimplemented from visBase::DataObjectGroup.
|
protected |
|
protected |
|
protected |
void visSurvey::Scene::objectMoved | ( | CallBacker * | ) |
void visSurvey::Scene::passMouseCursor | ( | const MouseCursor & | ) |
|
overridevirtual |
Reimplemented from visBase::DataObjectGroup.
|
overridevirtual |
Reimplemented from visBase::DataObjectGroup.
void visSurvey::Scene::savePropertySettings | ( | ) |
|
protected |
void visSurvey::Scene::selectPosModeManipObj | ( | VisID | selid | ) |
void visSurvey::Scene::setAnnotColor | ( | const OD::Color & | ) |
void visSurvey::Scene::setAnnotFont | ( | const FontData & | ) |
void visSurvey::Scene::setAnnotScale | ( | const TrcKeyZSampling & | ) |
void visSurvey::Scene::setAnnotText | ( | int | dim, |
const uiString & | |||
) |
void visSurvey::Scene::setEventHandled | ( | ) |
void visSurvey::Scene::setFixedZStretch | ( | float | ) |
Used to set the z-strecthing according to the user's preference. Is unitless - all entities (i.e. distance vs time) should be handled by zscale.
void visSurvey::Scene::setMarkerColor | ( | const OD::Color & | ) |
void visSurvey::Scene::setMarkerPos | ( | const TrcKeyValue & | , |
SceneID | sceneid | ||
) |
void visSurvey::Scene::setMarkerSize | ( | float | ) |
void visSurvey::Scene::setMoreObjectsToDoHint | ( | bool | yn | ) |
void visSurvey::Scene::setPolygonSelector | ( | visBase::PolygonSelection * | ) |
void visSurvey::Scene::setSceneColTab | ( | visBase::SceneColTab * | ) |
void visSurvey::Scene::setTempZStretch | ( | float | ) |
void visSurvey::Scene::setTrcKeyZSampling | ( | const TrcKeyZSampling & | ) |
|
protected |
void visSurvey::Scene::setZAxisTransform | ( | ZAxisTransform * | , |
TaskRunner * | |||
) |
void visSurvey::Scene::setZDomainInfo | ( | const ZDomain::Info & | ) |
void visSurvey::Scene::setZScale | ( | float | ) |
The zscale should compensate for different entities in xy and z respectively and remain constant through the life of the scene.
void visSurvey::Scene::showAnnot | ( | bool | ) |
void visSurvey::Scene::showAnnotGrid | ( | bool | ) |
void visSurvey::Scene::showAnnotScale | ( | bool | ) |
void visSurvey::Scene::showAnnotText | ( | bool | ) |
|
overridevirtual |
Set directly after creation, othersize it won't have effect
Reimplemented from visBase::DataObjectGroup.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |
|
protected |
|
protected |
|
protected |
|
virtual |
const MultiID visSurvey::Scene::zDomainID | ( | ) | const |
const ZDomain::Info& visSurvey::Scene::zDomainInfo | ( | ) | const |
const char* visSurvey::Scene::zDomainKey | ( | ) | const |
const char* visSurvey::Scene::zDomainUnitStr | ( | bool | withparens = false | ) | const |
int visSurvey::Scene::zDomainUserFactor | ( | ) | const |
uiString visSurvey::Scene::zDomainUserName | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024