![]() |
OpendTect
6.6
|
Baseclass for different body implementation (direct & indirect) of OSG. More...
Public Types | |
| enum | StereoType { None , RedCyan , QuadBuffer } |
| enum | WheelMode { Never , Always , OnHover } |
Public Types inherited from ObjectWithName | |
| typedef OD::String | name_type |
Public Member Functions | |
| ui3DViewerBody (ui3DViewer &, uiParent *) | |
| virtual | ~ui3DViewerBody () |
| void | align () |
| void | fillCameraPos (IOPar &) const |
| Color | getBackgroundColor () const |
| Coord3 | getCameraPosition () const |
| float | getCameraZoom () const |
| float | getMouseWheelZoomFactor () const |
| const osgViewer::View * | getOsgViewerHudView () const |
| const osgViewer::View * | getOsgViewerMainView () const |
| visBase::PolygonSelection * | getPolygonSelector () |
| bool | getReversedMouseWheelDirection () const |
| visBase::Scene * | getScene () |
| const visBase::Scene * | getScene () const |
| visBase::SceneColTab * | getSceneColTab () |
| float | getStereoOffset () const |
| StereoType | getStereoType () const |
| Geom::Size2D< int > | getViewportSizePixels () const |
| visBase::Camera * | getVisCamera () |
| WheelMode | getWheelDisplayMode () const |
| bool | isAnimationEnabled () const |
| bool | isAxisShown () const |
| bool | isCameraOrthographic () const |
| bool | isCameraPerspective () const |
| bool | isHomePosEmpty () |
| bool | isMapView () const |
| bool | isViewMode () const |
| KeyBindMan & | keyBindMan () |
| void | removeSwapCallback (CallBacker *) |
| void | resetToHomePosition () |
| virtual void | reSizeEvent (CallBacker *) |
| void | saveHomePos () |
| bool | serializeScene (const char *) const |
| void | setAnimationEnabled (bool) |
| void | setAnnotationFont (const FontData &) |
| void | setAnnotColor (const Color &) |
| void | setBackgroundColor (const Color &) |
| void | setCameraZoom (float val) |
| void | setHomePos (const IOPar &) |
| void | setMapView (bool yn) |
| void | setMouseWheelZoomFactor (float) |
| void | setReversedMouseWheelDirection (bool) |
| void | setSceneID (int) |
| void | setScenesPixelDensity (float dpi) |
| void | setStereoOffset (float) |
| bool | setStereoType (StereoType) |
| virtual void | setViewMode (bool viewmode, bool trigger) |
| void | setWheelDisplayMode (WheelMode) |
| void | showRotAxis (bool) |
| void | toggleCameraType () |
| void | toggleViewMode (CallBacker *) |
| void | toHomePos () |
| void | uiRotate (float angle, bool horizontal) |
| void | uiZoom (float rel, const osg::Vec3f *dir=0) |
| bool | useCameraPos (const IOPar &) |
| void | viewAll (bool animate) |
| void | viewPlaneCrl () |
| void | viewPlaneInl () |
| void | viewPlaneN () |
| void | viewPlaneX () |
| void | viewPlaneY () |
| void | viewPlaneYZ () |
| void | viewPlaneZ () |
Public Member Functions inherited from uiObjectBody | |
| virtual | ~uiObjectBody () |
| virtual uiSize | actualSize (bool include_border=true) const |
| void | attach (constraintType t, uiParent *other=0, int m=-1, bool r=true) |
| void | attach (constraintType, uiObject *other=0, int margin=-1, bool reciprocal=true) |
| void | display (bool yn, bool shrink=false, bool maximized=false) |
| virtual void | finalise () |
| virtual bool | finalised () const |
| virtual void | fontchanged () |
| int | fontHeight () const |
| int | fontWidth (bool max=false) const |
| int | fontWidthFor (const char *) const |
| int | fontWidthFor (const uiString &) const |
| bool | isDisplayed () const |
| bool | isHidden () |
| bool | itemInited () const |
| const i_LayoutItem * | layoutItem () |
| virtual uiSize | minimumSize () const |
| i_LayoutItem * | mkLayoutItem (i_LayoutMngr &) |
| virtual int | nrTxtLines () const |
| float | prefHeightInCharSet () const |
| int | prefHNrPics () const |
| int | prefVNrPics () const |
| float | prefWidthInCharSet () const |
| virtual void | reDraw (bool) |
| void | reParent (uiParentBody *pb) |
| void | setHSzPol (uiObject::SzPolicy) |
| void | setMaximumHeight (int) |
| void | setMaximumWidth (int) |
| void | setMinimumHeight (int) |
| void | setMinimumWidth (int) |
| void | setPrefHeight (int) |
| void | setPrefHeightInChar (float) |
| void | setPrefWidth (int) |
| void | setPrefWidthInChar (float) |
| void | setShrinkAllowed (bool yn) |
| void | setStretch (int, int) |
| void | setToolTip (const uiString &) |
| void | setVSzPol (uiObject::SzPolicy) |
| bool | shrinkAllowed () |
| virtual int | stretch (bool, bool retUndef=false) const |
| uiObject::SzPolicy | szPol (bool hor=true) const |
| Color | uibackgroundColor () const |
| bool | uiCloseOK () |
| const uiFont * | uifont () const |
| bool | uihasFocus () const |
| bool | uisensitive () const |
| void | uisetBackgroundColor (const Color &) |
| void | uisetBackgroundPixmap (const uiPixmap &) |
| void | uisetCaption (const uiString &) |
| void | uisetFocus () |
| void | uisetFont (const uiFont &) |
| void | uisetSensitive (bool yn=true) |
| void | uisetTextColor (const Color &) |
| bool | uivisible () const |
Public Member Functions inherited from uiBody | |
| virtual | ~uiBody () |
| virtual void | clear () |
| QWidget * | qwidget () |
| can return 0 More... | |
| const QWidget * | qwidget () const |
| can return 0 More... | |
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 |
Public Member Functions inherited from NamedObject | |
| NamedObject (const char *nm=nullptr) | |
| NamedObject (const NamedObject &oth) | |
| virtual | ~NamedObject () |
| virtual BufferString | getName () const |
| bool | getNameFromPar (const IOPar &) |
| virtual const name_type & | name () const |
| NamedObject & | operator= (const NamedObject &) |
| bool | operator== (const NamedObject &oth) const |
| virtual void | setName (const char *nm) |
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 |
Protected Types | |
| enum | ViewModeCursor { RotateCursor , PanCursor , ZoomCursor , HoverCursor } |
Protected Member Functions | |
| void | enableDragging (bool yn) |
| void | enableThumbWheelHandling (bool yn, const visBase::ThumbWheel *tw=0) |
| osgGeo::TrackballManipulator * | getCameraManipulator () const |
| virtual osg::GraphicsContext * | getGraphicsContext ()=0 |
| virtual osgViewer::GraphicsWindow & | getGraphicsWindow ()=0 |
| osg::Camera * | getOsgCamera () |
| const osg::Camera * | getOsgCamera () const |
| void | handleGestureEvent (QGestureEvent *) |
| void | mouseCursorChg (CallBacker *) |
| void | notifyManipulatorMovement (float dh, float dv, float df) |
| void | qtEventCB (CallBacker *) |
| void | requestRedraw () |
| void | setCameraPos (const osg::Vec3f &, const osg::Vec3f &, bool) |
| void | setFocusCB (CallBacker *) |
| void | setupHUD () |
| void | setupTouch () |
| void | setupView () |
| virtual void | setViewModeCursor (ViewModeCursor) |
| void | thumbWheelRotationCB (CallBacker *) |
| uiObject & | uiObjHandle () |
| virtual void | updateActModeCursor () |
Protected Member Functions inherited from uiObjectBody | |
| uiObjectBody (uiParent *, const char *nm) | |
| void | doDisplay (CallBacker *) |
| virtual void | finalise_ () |
| void | loitemDeleted () |
| virtual const QWidget * | managewidg_ () const |
| virtual i_LayoutItem * | mkLayoutItem_ (i_LayoutMngr &mngr) |
Protected Member Functions inherited from uiBody | |
| uiBody () | |
| virtual const QWidget * | qwidget_ () const =0 |
Protected Member Functions inherited from NamedCallBacker | |
| void | sendDelNotif () const |
Static Protected Member Functions | |
| static osgViewer::CompositeViewer * | getCompositeViewer () |
Friends | |
| class | TrackBallManipulatorMessenger |
Additional Inherited Members | |
Static Public Member Functions inherited from CallBacker | |
| static void | createReceiverForCurrentThread () |
| static void | removeReceiverForCurrentThread () |
Baseclass for different body implementation (direct & indirect) of OSG.
<>
|
protected |
| ui3DViewerBody::ui3DViewerBody | ( | ui3DViewer & | , |
| uiParent * | |||
| ) |
|
virtual |
| void ui3DViewerBody::align | ( | ) |
|
protected |
|
protected |
| void ui3DViewerBody::fillCameraPos | ( | IOPar & | ) | const |
| Color ui3DViewerBody::getBackgroundColor | ( | ) | const |
|
protected |
| Coord3 ui3DViewerBody::getCameraPosition | ( | ) | const |
| float ui3DViewerBody::getCameraZoom | ( | ) | const |
|
staticprotected |
|
protectedpure virtual |
Implemented in ui3DIndirectViewBody.
|
protectedpure virtual |
Implemented in ui3DIndirectViewBody.
| float ui3DViewerBody::getMouseWheelZoomFactor | ( | ) | const |
Always positive. Direction is set by setReversedMouseWheelDirection()
|
protected |
|
protected |
|
inline |
|
inline |
| visBase::PolygonSelection* ui3DViewerBody::getPolygonSelector | ( | ) |
| bool ui3DViewerBody::getReversedMouseWheelDirection | ( | ) | const |
|
inline |
|
inline |
| visBase::SceneColTab* ui3DViewerBody::getSceneColTab | ( | ) |
| float ui3DViewerBody::getStereoOffset | ( | ) | const |
| StereoType ui3DViewerBody::getStereoType | ( | ) | const |
| Geom::Size2D<int> ui3DViewerBody::getViewportSizePixels | ( | ) | const |
|
inline |
| WheelMode ui3DViewerBody::getWheelDisplayMode | ( | ) | const |
|
protected |
| bool ui3DViewerBody::isAnimationEnabled | ( | ) | const |
| bool ui3DViewerBody::isAxisShown | ( | ) | const |
| bool ui3DViewerBody::isCameraOrthographic | ( | ) | const |
| bool ui3DViewerBody::isCameraPerspective | ( | ) | const |
|
inline |
|
inline |
| bool ui3DViewerBody::isViewMode | ( | ) | const |
|
inline |
|
protected |
|
protected |
|
protected |
| void ui3DViewerBody::removeSwapCallback | ( | CallBacker * | ) |
|
protected |
| void ui3DViewerBody::resetToHomePosition | ( | ) |
|
virtual |
| void ui3DViewerBody::saveHomePos | ( | ) |
| bool ui3DViewerBody::serializeScene | ( | const char * | ) | const |
| void ui3DViewerBody::setAnimationEnabled | ( | bool | ) |
| void ui3DViewerBody::setAnnotationFont | ( | const FontData & | ) |
| void ui3DViewerBody::setAnnotColor | ( | const Color & | ) |
| void ui3DViewerBody::setBackgroundColor | ( | const Color & | ) |
|
protected |
| void ui3DViewerBody::setCameraZoom | ( | float | val | ) |
|
protected |
| void ui3DViewerBody::setHomePos | ( | const IOPar & | ) |
| void ui3DViewerBody::setMapView | ( | bool | yn | ) |
| void ui3DViewerBody::setMouseWheelZoomFactor | ( | float | ) |
| void ui3DViewerBody::setReversedMouseWheelDirection | ( | bool | ) |
| void ui3DViewerBody::setSceneID | ( | int | ) |
| void ui3DViewerBody::setScenesPixelDensity | ( | float | dpi | ) |
| void ui3DViewerBody::setStereoOffset | ( | float | ) |
| bool ui3DViewerBody::setStereoType | ( | StereoType | ) |
|
protected |
|
protected |
|
protected |
|
virtual |
|
protectedvirtual |
| void ui3DViewerBody::setWheelDisplayMode | ( | WheelMode | ) |
| void ui3DViewerBody::showRotAxis | ( | bool | ) |
|
protected |
| void ui3DViewerBody::toggleCameraType | ( | ) |
| void ui3DViewerBody::toggleViewMode | ( | CallBacker * | ) |
| void ui3DViewerBody::toHomePos | ( | ) |
|
protectedvirtual |
Implements uiObjectBody.
| void ui3DViewerBody::uiRotate | ( | float | angle, |
| bool | horizontal | ||
| ) |
| void ui3DViewerBody::uiZoom | ( | float | rel, |
| const osg::Vec3f * | dir = 0 |
||
| ) |
|
protectedvirtual |
| bool ui3DViewerBody::useCameraPos | ( | const IOPar & | ) |
| void ui3DViewerBody::viewAll | ( | bool | animate | ) |
| void ui3DViewerBody::viewPlaneCrl | ( | ) |
| void ui3DViewerBody::viewPlaneInl | ( | ) |
| void ui3DViewerBody::viewPlaneN | ( | ) |
| void ui3DViewerBody::viewPlaneX | ( | ) |
| void ui3DViewerBody::viewPlaneY | ( | ) |
| void ui3DViewerBody::viewPlaneYZ | ( | ) |
| void ui3DViewerBody::viewPlaneZ | ( | ) |
|
friend |
|
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-2022