OpendTect  7.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OD3DViewer Class Reference
Inheritance diagram for OD3DViewer:
[legend]

Public Member Functions

 OD3DViewer (ui3DViewer &, uiParent *)
 
 ~OD3DViewer ()
 
void align ()
 
osgGeo::TrackballManipulator * getCameraManipulator () const
 
visBase::ScenegetScene ()
 
const visBase::ScenegetScene () const
 
float getStereoOffset () const
 
ui3DViewer::StereoType getStereoType () const
 
bool isMapView () const
 
void setAnnotationColor (const OD::Color &)
 
void setBackgroundColor (const OD::Color &)
 
void setMapView (bool)
 
void setSceneID (VisID)
 
void setStereoOffset (float)
 
void setStereoType (ui3DViewer::StereoType)
 
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

const QWidget * qwidget_ () const override
 
void requestRedraw ()
 
uiObjectuiObjHandle () override
 
- 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

RefMan< visBase::Axesaxes_ = nullptr
 
RefMan< visBase::Cameracamera_ = nullptr
 
RefMan< visBase::ThumbWheelhorthumbwheel_ = nullptr
 
bool ismapview_ = false
 
osg::ref_ptr< osg::Switch > offscreenrenderhudswitch_
 
osg::ref_ptr< osg::Switch > offscreenrenderswitch_
 
RefMan< visBase::Scenescene_ = nullptr
 
float stereooffset_ = 100
 
ui3DViewer::StereoType stereotype_ = ui3DViewer::None
 
ui3DViewerui3dviewer_
 
RefMan< visBase::ThumbWheelverthumbwheel_ = nullptr
 
RefMan< visBase::ThumbWheelzoomthumbwheel_ = nullptr
 
- 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 ObjectWithName
typedef OD::String name_type
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ OD3DViewer()

OD3DViewer::OD3DViewer ( ui3DViewer ,
uiParent  
)

◆ ~OD3DViewer()

OD3DViewer::~OD3DViewer ( )

Member Function Documentation

◆ align()

void OD3DViewer::align ( )

◆ getCameraManipulator()

osgGeo::TrackballManipulator* OD3DViewer::getCameraManipulator ( ) const

◆ getScene() [1/2]

visBase::Scene* OD3DViewer::getScene ( )

◆ getScene() [2/2]

const visBase::Scene* OD3DViewer::getScene ( ) const

◆ getStereoOffset()

float OD3DViewer::getStereoOffset ( ) const

◆ getStereoType()

ui3DViewer::StereoType OD3DViewer::getStereoType ( ) const

◆ isMapView()

bool OD3DViewer::isMapView ( ) const
inline

◆ qwidget_()

const QWidget* OD3DViewer::qwidget_ ( ) const
overrideprotectedvirtual

Implements uiBody.

◆ requestRedraw()

void OD3DViewer::requestRedraw ( )
protected

◆ setAnnotationColor()

void OD3DViewer::setAnnotationColor ( const OD::Color )

◆ setBackgroundColor()

void OD3DViewer::setBackgroundColor ( const OD::Color )

◆ setMapView()

void OD3DViewer::setMapView ( bool  )

◆ setSceneID()

void OD3DViewer::setSceneID ( VisID  )

◆ setStereoOffset()

void OD3DViewer::setStereoOffset ( float  )

◆ setStereoType()

void OD3DViewer::setStereoType ( ui3DViewer::StereoType  )

◆ uiObjHandle()

uiObject& OD3DViewer::uiObjHandle ( )
overrideprotectedvirtual

Implements uiObjectBody.

◆ viewAll()

void OD3DViewer::viewAll ( bool  animate)

◆ viewPlaneCrl()

void OD3DViewer::viewPlaneCrl ( )

◆ viewPlaneInl()

void OD3DViewer::viewPlaneInl ( )

◆ viewPlaneN()

void OD3DViewer::viewPlaneN ( )

◆ viewPlaneX()

void OD3DViewer::viewPlaneX ( )

◆ viewPlaneY()

void OD3DViewer::viewPlaneY ( )

◆ viewPlaneYZ()

void OD3DViewer::viewPlaneYZ ( )

◆ viewPlaneZ()

void OD3DViewer::viewPlaneZ ( )

Member Data Documentation

◆ axes_

RefMan<visBase::Axes> OD3DViewer::axes_ = nullptr
protected

◆ camera_

RefMan<visBase::Camera> OD3DViewer::camera_ = nullptr
protected

◆ horthumbwheel_

RefMan<visBase::ThumbWheel> OD3DViewer::horthumbwheel_ = nullptr
protected

◆ ismapview_

bool OD3DViewer::ismapview_ = false
protected

◆ offscreenrenderhudswitch_

osg::ref_ptr<osg::Switch> OD3DViewer::offscreenrenderhudswitch_
protected

◆ offscreenrenderswitch_

osg::ref_ptr<osg::Switch> OD3DViewer::offscreenrenderswitch_
protected

◆ scene_

RefMan<visBase::Scene> OD3DViewer::scene_ = nullptr
protected

◆ stereooffset_

float OD3DViewer::stereooffset_ = 100
protected

◆ stereotype_

ui3DViewer::StereoType OD3DViewer::stereotype_ = ui3DViewer::None
protected

◆ ui3dviewer_

ui3DViewer& OD3DViewer::ui3dviewer_
protected

◆ verthumbwheel_

RefMan<visBase::ThumbWheel> OD3DViewer::verthumbwheel_ = nullptr
protected

◆ zoomthumbwheel_

RefMan<visBase::ThumbWheel> OD3DViewer::zoomthumbwheel_ = nullptr
protected

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