OpendTect  7.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ui3DIndirectViewBody Class Reference

Class used by ui3DViewer to render things indirectly. More...

Inheritance diagram for ui3DIndirectViewBody:
[legend]

Public Member Functions

 ui3DIndirectViewBody (ui3DViewer &, uiParent *)
 
 ~ui3DIndirectViewBody ()
 
const QWidget * qwidget_ () const override
 
- Public Member Functions inherited from ui3DViewerBody
virtual ~ui3DViewerBody ()
 
void align ()
 
void fillCameraPos (IOPar &) const
 
OD::Color getBackgroundColor () const
 
Coord3 getCameraPosition () const
 
float getCameraZoom () const
 
float getMouseWheelZoomFactor () const
 
const osgViewer::View * getOsgViewerHudView () const
 
const osgViewer::View * getOsgViewerMainView () const
 
visBase::PolygonSelectiongetPolygonSelector ()
 
bool getReversedMouseWheelDirection () const
 
visBase::ScenegetScene ()
 
const visBase::ScenegetScene () const
 
visBase::SceneColTabgetSceneColTab ()
 
float getStereoOffset () const
 
StereoType getStereoType () const
 
Geom::Size2D< int > getViewportSizePixels () const
 
visBase::CameragetVisCamera ()
 
WheelMode getWheelDisplayMode () const
 
bool isAnimationEnabled () const
 
bool isAxisShown () const
 
bool isCameraOrthographic () const
 
bool isCameraPerspective () const
 
bool isHomePosEmpty ()
 
bool isMapView () const
 
bool isViewMode () const
 
KeyBindMankeyBindMan ()
 
void removeSwapCallback (CallBacker *)
 
void resetHomePos ()
 
void resetToHomePosition ()
 
virtual void reSizeEvent (CallBacker *)
 
void saveHomePos ()
 
bool serializeScene (const char *) const
 
void setAnimationEnabled (bool)
 
void setAnnotationFont (const FontData &)
 
void setAnnotColor (const OD::Color &)
 
void setBackgroundColor (const OD::Color &)
 
void setCameraPerspective (bool yn)
 
void setCameraZoom (float val)
 
void setHomePos (const IOPar &)
 
void setMapView (bool yn)
 
void setMouseWheelZoomFactor (float)
 
void setReversedMouseWheelDirection (bool)
 
void setSceneID (SceneID)
 
void setScenesPixelDensity (float dpi)
 
void setStartupView ()
 
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, uiObject *other=nullptr, int margin=-1, bool reciprocal=true)
 
void attach (constraintType, uiParent *other=nullptr, int margin=-1, bool reciprocal=true)
 
void display (bool yn, bool shrink=false, bool maximized=false)
 
void finalize () override
 
bool finalized () const override
 
void fontchanged () override
 
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_LayoutItemlayoutItem () const
 
virtual uiSize minimumSize () const
 
i_LayoutItemmkLayoutItem (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 setCaption (const uiString &)
 
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
 
OD::Color uibackgroundColor () const
 
bool uiCloseOK ()
 
const uiFontuifont () const
 
bool uihasFocus () const
 
bool uisensitive () const
 
void uisetBackgroundColor (const OD::Color &)
 
void uisetBackgroundPixmap (const uiPixmap &)
 
void uisetCaption (const uiString &capt)
 
void uisetFocus ()
 
void uisetFont (const uiFont &)
 
void uisetSensitive (bool yn=true)
 
void uisetTextColor (const OD::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
 
virtual CallBackertrueCaller ()
 
- 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 &)
 
const name_typename () const override
 
NamedObjectoperator= (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 Member Functions

osg::GraphicsContext * getGraphicsContext () override
 
osgViewer::GraphicsWindow & getGraphicsWindow () override
 
- Protected Member Functions inherited from ui3DViewerBody
 ui3DViewerBody (ui3DViewer &, uiParent *)
 
void enableDragging (bool yn)
 
void enableThumbWheelHandling (bool yn, const visBase::ThumbWheel *tw=0)
 
osgGeo::TrackballManipulator * getCameraManipulator () const
 
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 *)
 
uiObjectuiObjHandle () override
 
virtual void updateActModeCursor ()
 
void viewAllCB (CallBacker *)
 
- Protected Member Functions inherited from uiObjectBody
 uiObjectBody (uiParent *, const char *nm)
 
void doDisplay (CallBacker *)
 
virtual void finalize_ ()
 
void loitemDeleted ()
 
virtual const QWidget * managewidg_ () const
 
virtual i_LayoutItemmkLayoutItem_ (i_LayoutMngr &mngr)
 
- Protected Member Functions inherited from uiBody
 uiBody ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 

Protected Attributes

GraphicsWindowIndirect * graphicswin_
 
- Protected Attributes inherited from ui3DViewerBody
MouseCursor actmodecursor_
 
RefMan< visBase::Axesaxes_
 
RefMan< visBase::Cameracamera_
 
osgViewer::CompositeViewer * compositeviewer_
 
RefMan< visBase::ThumbWheeldistancethumbwheel_
 
uiEventFilter eventfilter_
 
ui3DViewerhandle_
 
IOPar homepos_
 
RefMan< visBase::ThumbWheelhorthumbwheel_
 
RefMan< visBase::DataObjectGrouphudscene_
 
osgViewer::View * hudview_
 
KeyBindMankeybindman_
 
TrackBallManipulatorMessengermanipmessenger_
 
bool mapview_
 
uiMouseEventBlockerByGesturesmouseeventblocker_
 
osg::Switch * offscreenrenderhudswitch_
 
osg::Switch * offscreenrenderswitch_
 
RefMan< visBase::PolygonSelectionpolygonselection_
 
IOParprintpar_
 
RefMan< visBase::Scenescene_
 
float stereooffset_
 
StereoType stereotype_
 
SwapCallbackswapcallback_
 
RefMan< visBase::ThumbWheelverthumbwheel_
 
osgViewer::View * view_
 
osg::Viewport * viewport_
 
RefMan< visBase::SceneColTabvisscenecoltab_
 
int wheeldisplaymode_
 
- Protected Attributes inherited from uiObjectBody
int hstretch_ = mUdf(int)
 
int vstretch_ = mUdf(int)
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Additional Inherited Members

- Public Types inherited from ui3DViewerBody
enum  StereoType { None , RedCyan , QuadBuffer }
 
enum  WheelMode { Never , Always , OnHover }
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Protected Types inherited from ui3DViewerBody
enum  ViewModeCursor { RotateCursor , PanCursor , ZoomCursor , HoverCursor }
 
- Static Protected Member Functions inherited from ui3DViewerBody
static osgViewer::CompositeViewer * getCompositeViewer ()
 

Detailed Description

Class used by ui3DViewer to render things indirectly.

<>

Constructor & Destructor Documentation

◆ ui3DIndirectViewBody()

ui3DIndirectViewBody::ui3DIndirectViewBody ( ui3DViewer ,
uiParent  
)

◆ ~ui3DIndirectViewBody()

ui3DIndirectViewBody::~ui3DIndirectViewBody ( )

Member Function Documentation

◆ getGraphicsContext()

osg::GraphicsContext* ui3DIndirectViewBody::getGraphicsContext ( )
overrideprotectedvirtual

Implements ui3DViewerBody.

◆ getGraphicsWindow()

osgViewer::GraphicsWindow& ui3DIndirectViewBody::getGraphicsWindow ( )
overrideprotectedvirtual

Implements ui3DViewerBody.

◆ qwidget_()

const QWidget* ui3DIndirectViewBody::qwidget_ ( ) const
overridevirtual

Implements uiBody.

Member Data Documentation

◆ graphicswin_

GraphicsWindowIndirect* ui3DIndirectViewBody::graphicswin_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024