class OSGPRODUCER_EXPORT osgProducer::Viewer


Inheritance:


Public Methods

[more] Viewer()
[more] Viewer(Producer::CameraConfig* cfg)
[more] Viewer(const std::string& configFile)
[more] Viewer(osg::ArgumentParser& arguments)
[more]virtual ~Viewer()
[more]void setUpViewer(unsigned int options=STANDARD_SETTINGS)
[more]virtual bool done() const
return true if the application is done and should exit
[more]virtual void setViewByMatrix( const Producer::Matrix & pm)
Override the Producer::CameraGroup::setViewByMatrix to catch all changes to view
[more]virtual bool realize(ThreadingModel thread_model)
Set the threading model and then call realize()
[more]virtual bool realize()
[more]virtual void update()
[more]virtual void frame()
Dispatch the cull and draw for each of the Camera's for this frame
[more]virtual void requestRedraw()
[more]virtual void requestContinuousUpdate(bool)
[more]virtual void requestWarpPointer(float x, float y)
[more]bool computePixelCoords(float x, float y, unsigned int cameraNum, float& pixel_x, float& pixel_y)
compute, from normalized mouse coords, for sepecified Camera, the pixel coords relative to that Camera's RenderSurface
[more]bool computeNearFarPoints(float x, float y, unsigned int cameraNum, osg::Vec3& near, osg::Vec3& far)
compute, from normalized mouse coords, for sepecified Camera, the near and far points in worlds coords
[more]bool computeIntersections(float x, float y, unsigned int cameraNum, osgUtil::IntersectVisitor::HitList& hits)
compute, from normalized mouse coords, for sepecified Camera, intersections with the scene
[more]bool computeIntersections(float x, float y, osgUtil::IntersectVisitor::HitList& hits)
compute, from normalized mouse coords, for all Cameras, intersections with the scene
[more]Producer::KeyboardMouse* getKeyboardMouse()
[more]const Producer::KeyboardMouse* getKeyboardMouse() const
[more]KeyboardMouseCallback* getKeyboardMouseCallback()
[more]const KeyboardMouseCallback* getKeyboardMouseCallback() const
[more]EventHandlerList& getEventHandlerList()
[more]const EventHandlerList& getEventHandlerList() const
[more]osgGA::KeySwitchCameraManipulator* getKeySwitchCameraManipulator()
[more]const osgGA::KeySwitchCameraManipulator* getKeySwitchCameraManipulator() const
[more]unsigned int addCameraManipulator(osgGA::CameraManipulator* cm)
[more]void selectCameraManipulator(unsigned int no)
[more]void setRecordingAnimationPath(bool on)
[more]bool getRecordingAnimationPath() const
[more]void setAnimationPath(osg::AnimationPath* path)
[more]osg::AnimationPath* getAnimationPath()
[more]const osg::AnimationPath* getAnimationPath() const
[more]virtual void getUsage(osg::ApplicationUsage& usage) const
Get the keyboard and mouse usage of this viewer

Public Members

[more]enum ViewerOptions
[more]typedef std::list< osg::ref_ptr<osgGA::GUIEventHandler> > EventHandlerList

Protected Fields

[more]bool _done
[more]osgProducer::KeyboardMouseCallback* _kbmcb
[more]EventHandlerList _eventHandlerList
[more]osg::ref_ptr<osgGA::KeySwitchCameraManipulator> _keyswitchManipulator
[more]osg::ref_ptr<osg::Camera> _old_style_osg_camera
[more]osg::ref_ptr<osg::NodeVisitor> _updateVisitor
[more]bool _recordingAnimationPath
[more]osg::ref_ptr<osg::AnimationPath> _animationPath


Inherited from OsgCameraGroup:

Public Methods

ovoid setApplicationUsage(osg::ApplicationUsage* au)
oosg::ApplicationUsage* getApplicationUsage()
oconst osg::ApplicationUsage* getApplicationUsage() const
oSceneHandlerList& getSceneHandlerList()
oconst SceneHandlerList& getSceneHandlerList() const
ovoid setSceneData( osg::Node* scene )
oosg::Node* getSceneData()
oconst osg::Node* getSceneData() const
ovoid setSceneDecorator( osg::Group* decorator)
oosg::Group* getSceneDecorator()
oconst osg::Group* getSceneDecorator() const
oosg::Node* getTopMostSceneData()
oconst osg::Node* getTopMostSceneData() const
ovoid setDisplaySettings( osg::DisplaySettings* ds )
oosg::DisplaySettings* getDisplaySettings()
oconst osg::DisplaySettings* getDisplaySettings() const
ovoid setFrameStamp( osg::FrameStamp* fs )
oosg::FrameStamp* getFrameStamp()
oconst osg::FrameStamp* getFrameStamp() const
ovoid setGlobalStateSet( osg::StateSet* sset )
oosg::StateSet* getGlobalStateSet()
oconst osg::StateSet* getGlobalStateSet() const
ovoid setBackgroundColor( const osg::Vec4& backgroundColor )
oosg::Vec4& getBackgroundColor()
oconst osg::Vec4& getBackgroundColor() const
ovoid setLODScale( float scale )
ovoid setFusionDistance( osgUtil::SceneView::FusionDistanceMode mode, float value=1.0f)
ovoid setRealizeCallback( RealizeCallback* cb)
oRealizeCallback* getRealizeCallback()
oconst RealizeCallback* getRealizeCallback() const
ovoid advance()
ovirtual void setView(const osg::Matrix& matrix)
oconst osg::Matrix getViewMatrix() const
ovirtual void sync()

Public Members

otypedef std::vector< osg::ref_ptr<osgProducer::OsgSceneHandler> > SceneHandlerList
class OSGPRODUCER_EXPORT RealizeCallback: public osg::Referenced
RealizeCallback class one should override to provide an the implemention of realize callbacks.

Protected Fields

oosg::ApplicationUsage* _applicationUsage
oosg::ref_ptr<osg::Node> _scene_data
oosg::ref_ptr<osg::Group> _scene_decorator
oosg::ref_ptr<osg::StateSet> _global_stateset
oosg::Vec4 _background_color
ofloat _LODScale
oosgUtil::SceneView::FusionDistanceMode _fusionDistanceMode
ofloat _fusionDistanceValue
oSceneHandlerList _shvec
oosg::ref_ptr<RealizeCallback> _realizeCallback
oosg::ref_ptr<osg::DisplaySettings> _ds
obool _initialized
ounsigned int _frameNumber
oosg::Timer _timer
oosg::Timer_t _start_tick
oosg::ref_ptr<osg::FrameStamp> _frameStamp

Protected Methods

ovoid setUpSceneViewsWithData()
ovoid _init()


Documentation

o Viewer()

o Viewer(Producer::CameraConfig* cfg)

o Viewer(const std::string& configFile)

o Viewer(osg::ArgumentParser& arguments)

ovirtual ~Viewer()

oenum ViewerOptions

o NO_EVENT_HANDLERS

o TRACKBALL_MANIPULATOR

o DRIVE_MANIPULATOR

o FLIGHT_MANIPULATOR

o STATE_MANIPULATOR

o HEAD_LIGHT_SOURCE

o SKY_LIGHT_SOURCE

o STATS_MANIPULATOR

o VIEWER_MANIPULATOR

o ESCAPE_SETS_DONE

o STANDARD_SETTINGS

ovoid setUpViewer(unsigned int options=STANDARD_SETTINGS)

ovirtual bool done() const
return true if the application is done and should exit

ovirtual void setViewByMatrix( const Producer::Matrix & pm)
Override the Producer::CameraGroup::setViewByMatrix to catch all changes to view

ovirtual bool realize(ThreadingModel thread_model)
Set the threading model and then call realize()

ovirtual bool realize()

ovirtual void update()

ovirtual void frame()
Dispatch the cull and draw for each of the Camera's for this frame

ovirtual void requestRedraw()

ovirtual void requestContinuousUpdate(bool)

ovirtual void requestWarpPointer(float x, float y)

obool computePixelCoords(float x, float y, unsigned int cameraNum, float& pixel_x, float& pixel_y)
compute, from normalized mouse coords, for sepecified Camera, the pixel coords relative to that Camera's RenderSurface

obool computeNearFarPoints(float x, float y, unsigned int cameraNum, osg::Vec3& near, osg::Vec3& far)
compute, from normalized mouse coords, for sepecified Camera, the near and far points in worlds coords

obool computeIntersections(float x, float y, unsigned int cameraNum, osgUtil::IntersectVisitor::HitList& hits)
compute, from normalized mouse coords, for sepecified Camera, intersections with the scene

obool computeIntersections(float x, float y, osgUtil::IntersectVisitor::HitList& hits)
compute, from normalized mouse coords, for all Cameras, intersections with the scene

oProducer::KeyboardMouse* getKeyboardMouse()

oconst Producer::KeyboardMouse* getKeyboardMouse() const

oKeyboardMouseCallback* getKeyboardMouseCallback()

oconst KeyboardMouseCallback* getKeyboardMouseCallback() const

otypedef std::list< osg::ref_ptr<osgGA::GUIEventHandler> > EventHandlerList

oEventHandlerList& getEventHandlerList()

oconst EventHandlerList& getEventHandlerList() const

oosgGA::KeySwitchCameraManipulator* getKeySwitchCameraManipulator()

oconst osgGA::KeySwitchCameraManipulator* getKeySwitchCameraManipulator() const

ounsigned int addCameraManipulator(osgGA::CameraManipulator* cm)

ovoid selectCameraManipulator(unsigned int no)

ovoid setRecordingAnimationPath(bool on)

obool getRecordingAnimationPath() const

ovoid setAnimationPath(osg::AnimationPath* path)

oosg::AnimationPath* getAnimationPath()

oconst osg::AnimationPath* getAnimationPath() const

ovirtual void getUsage(osg::ApplicationUsage& usage) const
Get the keyboard and mouse usage of this viewer

obool _done

oosgProducer::KeyboardMouseCallback* _kbmcb

oEventHandlerList _eventHandlerList

oosg::ref_ptr<osgGA::KeySwitchCameraManipulator> _keyswitchManipulator

oosg::ref_ptr<osg::Camera> _old_style_osg_camera

oosg::ref_ptr<osg::NodeVisitor> _updateVisitor

obool _recordingAnimationPath

oosg::ref_ptr<osg::AnimationPath> _animationPath


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.