OpendTect-6_4  6.4
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
ui3DViewerBody Class Referenceabstract

Baseclass for different body implementation (direct & indirect) of OSG. More...

Inheritance diagram for ui3DViewerBody:
[legend]

Public Types

enum  WheelMode { Never, Always, OnHover }
 
enum  StereoType { None, RedCyan, QuadBuffer }
 

Public Member Functions

 ui3DViewerBody (ui3DViewer &, uiParent *)
 
virtual ~ui3DViewerBody ()
 
void viewAll (bool animate)
 
void setSceneID (int)
 
visBase::ScenegetScene ()
 
const visBase::ScenegetScene () const
 
bool serializeScene (const char *) const
 
void setBackgroundColor (const Color &)
 
Color getBackgroundColor () const
 
Geom::Size2D< int > getViewportSizePixels () const
 
float getMouseWheelZoomFactor () const
 
void setMouseWheelZoomFactor (float)
 
void setReversedMouseWheelDirection (bool)
 
bool getReversedMouseWheelDirection () const
 
void setHomePos (const IOPar &)
 
void resetToHomePosition ()
 
void toggleCameraType ()
 
bool isCameraPerspective () const
 
bool isCameraOrthographic () const
 
void align ()
 
void viewPlaneX ()
 
void viewPlaneY ()
 
void viewPlaneZ ()
 
void viewPlaneInl ()
 
void viewPlaneCrl ()
 
void viewPlaneN ()
 
void viewPlaneYZ ()
 
void uiRotate (float angle, bool horizontal)
 
void uiZoom (float rel, const osg::Vec3f *dir=0)
 
void setCameraZoom (float val)
 
float getCameraZoom () const
 
bool isViewMode () const
 
virtual void setViewMode (bool viewmode, bool trigger)
 
Coord3 getCameraPosition () const
 
visBase::CameragetVisCamera ()
 
virtual void reSizeEvent (CallBacker *)
 
void toggleViewMode (CallBacker *)
 
void setWheelDisplayMode (WheelMode)
 
WheelMode getWheelDisplayMode () const
 
void setAnimationEnabled (bool)
 
bool isAnimationEnabled () const
 
void showRotAxis (bool)
 
bool isAxisShown () const
 
void setAnnotColor (const Color &)
 
void setAnnotationFont (const FontData &)
 
visBase::PolygonSelectiongetPolygonSelector ()
 
visBase::SceneColTabgetSceneColTab ()
 
void toHomePos ()
 
void saveHomePos ()
 
bool isHomePosEmpty ()
 
void fillCameraPos (IOPar &) const
 
bool useCameraPos (const IOPar &)
 
const osgViewer::View * getOsgViewerMainView () const
 
const osgViewer::View * getOsgViewerHudView () const
 
void setScenesPixelDensity (float dpi)
 
bool setStereoType (StereoType)
 
StereoType getStereoType () const
 
void setStereoOffset (float)
 
float getStereoOffset () const
 
void setMapView (bool yn)
 
bool isMapView () const
 
KeyBindMankeyBindMan ()
 
void removeSwapCallback (CallBacker *)
 

Protected Types

enum  ViewModeCursor { RotateCursor, PanCursor, ZoomCursor, HoverCursor }
 

Protected Member Functions

void enableDragging (bool yn)
 
virtual void setViewModeCursor (ViewModeCursor)
 
virtual void updateActModeCursor ()
 
void mouseCursorChg (CallBacker *)
 
void notifyManipulatorMovement (float dh, float dv, float df)
 
void setupTouch ()
 
void setupHUD ()
 
void setupView ()
 
void qtEventCB (CallBacker *)
 
void setFocusCB (CallBacker *)
 
void handleGestureEvent (QGestureEvent *)
 
virtual osgViewer::GraphicsWindow & getGraphicsWindow ()=0
 
virtual osg::GraphicsContext * getGraphicsContext ()=0
 
uiObjectuiObjHandle ()
 
void requestRedraw ()
 
osg::Camera * getOsgCamera ()
 
const osg::Camera * getOsgCamera () const
 
void setCameraPos (const osg::Vec3f &, const osg::Vec3f &, bool)
 
void thumbWheelRotationCB (CallBacker *)
 
void enableThumbWheelHandling (bool yn, const visBase::ThumbWheel *tw=0)
 

Static Protected Member Functions

static osgViewer::CompositeViewer * getCompositeViewer ()
 

Protected Attributes

MouseCursor actmodecursor_
 
ui3DViewerhandle_
 
IOParprintpar_
 
RefMan< visBase::Cameracamera_
 
RefMan< visBase::Scenescene_
 
RefMan< visBase::ThumbWheelhorthumbwheel_
 
RefMan< visBase::ThumbWheelverthumbwheel_
 
RefMan< visBase::ThumbWheeldistancethumbwheel_
 
int wheeldisplaymode_
 
osg::Switch * offscreenrenderswitch_
 
osgViewer::CompositeViewer * compositeviewer_
 
osgViewer::View * view_
 
osg::Viewport * viewport_
 
StereoType stereotype_
 
float stereooffset_
 
osgViewer::View * hudview_
 
osg::Switch * offscreenrenderhudswitch_
 
RefMan< visBase::DataObjectGrouphudscene_
 
uiEventFilter eventfilter_
 
uiMouseEventBlockerByGesturesmouseeventblocker_
 
RefMan< visBase::Axesaxes_
 
RefMan< visBase::PolygonSelectionpolygonselection_
 
TrackBallManipulatorMessengermanipmessenger_
 
SwapCallbackswapcallback_
 
IOPar homepos_
 
RefMan< visBase::SceneColTabvisscenecoltab_
 
KeyBindMankeybindman_
 
bool mapview_
 

Friends

class TrackBallManipulatorMessenger
 

Detailed Description

Baseclass for different body implementation (direct & indirect) of OSG.

Member Enumeration Documentation

Enumerator
None 
RedCyan 
QuadBuffer 
Enumerator
RotateCursor 
PanCursor 
ZoomCursor 
HoverCursor 
Enumerator
Never 
Always 
OnHover 

Constructor & Destructor Documentation

ui3DViewerBody::ui3DViewerBody ( ui3DViewer ,
uiParent  
)
virtual ui3DViewerBody::~ui3DViewerBody ( )
virtual

Member Function Documentation

void ui3DViewerBody::align ( )
void ui3DViewerBody::enableDragging ( bool  yn)
protected
void ui3DViewerBody::enableThumbWheelHandling ( bool  yn,
const visBase::ThumbWheel tw = 0 
)
protected
void ui3DViewerBody::fillCameraPos ( IOPar ) const
Color ui3DViewerBody::getBackgroundColor ( ) const
Coord3 ui3DViewerBody::getCameraPosition ( ) const
float ui3DViewerBody::getCameraZoom ( ) const
static osgViewer::CompositeViewer* ui3DViewerBody::getCompositeViewer ( )
staticprotected
virtual osg::GraphicsContext* ui3DViewerBody::getGraphicsContext ( )
protectedpure virtual

Implemented in ui3DIndirectViewBody.

virtual osgViewer::GraphicsWindow& ui3DViewerBody::getGraphicsWindow ( )
protectedpure virtual

Implemented in ui3DIndirectViewBody.

float ui3DViewerBody::getMouseWheelZoomFactor ( ) const

Always positive. Direction is set by setReversedMouseWheelDirection()

osg::Camera* ui3DViewerBody::getOsgCamera ( )
protected
const osg::Camera* ui3DViewerBody::getOsgCamera ( ) const
protected
const osgViewer::View* ui3DViewerBody::getOsgViewerHudView ( ) const
inline
const osgViewer::View* ui3DViewerBody::getOsgViewerMainView ( ) const
inline
visBase::PolygonSelection* ui3DViewerBody::getPolygonSelector ( )
bool ui3DViewerBody::getReversedMouseWheelDirection ( ) const
visBase::Scene* ui3DViewerBody::getScene ( )
inline
const visBase::Scene* ui3DViewerBody::getScene ( ) const
inline
visBase::SceneColTab* ui3DViewerBody::getSceneColTab ( )
float ui3DViewerBody::getStereoOffset ( ) const
StereoType ui3DViewerBody::getStereoType ( ) const
Geom::Size2D<int> ui3DViewerBody::getViewportSizePixels ( ) const
visBase::Camera* ui3DViewerBody::getVisCamera ( )
inline
WheelMode ui3DViewerBody::getWheelDisplayMode ( ) const
void ui3DViewerBody::handleGestureEvent ( QGestureEvent *  )
protected
bool ui3DViewerBody::isAnimationEnabled ( ) const
bool ui3DViewerBody::isAxisShown ( ) const
bool ui3DViewerBody::isCameraOrthographic ( ) const
bool ui3DViewerBody::isCameraPerspective ( ) const
bool ui3DViewerBody::isHomePosEmpty ( )
inline
bool ui3DViewerBody::isMapView ( ) const
inline
bool ui3DViewerBody::isViewMode ( ) const
KeyBindMan& ui3DViewerBody::keyBindMan ( )
inline
void ui3DViewerBody::mouseCursorChg ( CallBacker )
protected
void ui3DViewerBody::notifyManipulatorMovement ( float  dh,
float  dv,
float  df 
)
protected
void ui3DViewerBody::qtEventCB ( CallBacker )
protected
void ui3DViewerBody::removeSwapCallback ( CallBacker )
void ui3DViewerBody::requestRedraw ( )
protected
void ui3DViewerBody::resetToHomePosition ( )
virtual void ui3DViewerBody::reSizeEvent ( CallBacker )
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 )
void ui3DViewerBody::setCameraPos ( const osg::Vec3f &  ,
const osg::Vec3f &  ,
bool   
)
protected
void ui3DViewerBody::setCameraZoom ( float  val)
void ui3DViewerBody::setFocusCB ( CallBacker )
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  )
void ui3DViewerBody::setupHUD ( )
protected
void ui3DViewerBody::setupTouch ( )
protected
void ui3DViewerBody::setupView ( )
protected
virtual void ui3DViewerBody::setViewMode ( bool  viewmode,
bool  trigger 
)
virtual
virtual void ui3DViewerBody::setViewModeCursor ( ViewModeCursor  )
protectedvirtual
void ui3DViewerBody::setWheelDisplayMode ( WheelMode  )
void ui3DViewerBody::showRotAxis ( bool  )
void ui3DViewerBody::thumbWheelRotationCB ( CallBacker )
protected
void ui3DViewerBody::toggleCameraType ( )
void ui3DViewerBody::toggleViewMode ( CallBacker )
void ui3DViewerBody::toHomePos ( )
uiObject& ui3DViewerBody::uiObjHandle ( )
protected
void ui3DViewerBody::uiRotate ( float  angle,
bool  horizontal 
)
void ui3DViewerBody::uiZoom ( float  rel,
const osg::Vec3f *  dir = 0 
)
virtual void ui3DViewerBody::updateActModeCursor ( )
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 ( )

Friends And Related Function Documentation

friend class TrackBallManipulatorMessenger
friend

Member Data Documentation

MouseCursor ui3DViewerBody::actmodecursor_
protected
RefMan<visBase::Axes> ui3DViewerBody::axes_
protected
RefMan<visBase::Camera> ui3DViewerBody::camera_
protected
osgViewer::CompositeViewer* ui3DViewerBody::compositeviewer_
protected
RefMan<visBase::ThumbWheel> ui3DViewerBody::distancethumbwheel_
protected
uiEventFilter ui3DViewerBody::eventfilter_
protected
ui3DViewer& ui3DViewerBody::handle_
protected
IOPar ui3DViewerBody::homepos_
protected
RefMan<visBase::ThumbWheel> ui3DViewerBody::horthumbwheel_
protected
RefMan<visBase::DataObjectGroup> ui3DViewerBody::hudscene_
protected
osgViewer::View* ui3DViewerBody::hudview_
protected
KeyBindMan& ui3DViewerBody::keybindman_
protected
TrackBallManipulatorMessenger* ui3DViewerBody::manipmessenger_
protected
bool ui3DViewerBody::mapview_
protected
uiMouseEventBlockerByGestures& ui3DViewerBody::mouseeventblocker_
protected
osg::Switch* ui3DViewerBody::offscreenrenderhudswitch_
protected
osg::Switch* ui3DViewerBody::offscreenrenderswitch_
protected
RefMan<visBase::PolygonSelection> ui3DViewerBody::polygonselection_
protected
IOPar& ui3DViewerBody::printpar_
protected
RefMan<visBase::Scene> ui3DViewerBody::scene_
protected
float ui3DViewerBody::stereooffset_
protected
StereoType ui3DViewerBody::stereotype_
protected
SwapCallback* ui3DViewerBody::swapcallback_
protected
RefMan<visBase::ThumbWheel> ui3DViewerBody::verthumbwheel_
protected
osgViewer::View* ui3DViewerBody::view_
protected
osg::Viewport* ui3DViewerBody::viewport_
protected
RefMan<visBase::SceneColTab> ui3DViewerBody::visscenecoltab_
protected
int ui3DViewerBody::wheeldisplaymode_
protected

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