osgViewer/View
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGVIEWER_VIEW
#define OSGVIEWER_VIEW 1
#include <osg/View>
#include <osgUtil/PolytopeIntersector>
#include <osgUtil/LineSegmentIntersector>
#include <osgUtil/UpdateVisitor>
#include <osgUtil/SceneView>
#include <osgGA/CameraManipulator>
#include <osgGA/EventVisitor>
#include <osgGA/EventQueue>
#include <osgGA/Device>
#include <osgViewer/Scene>
#include <osgViewer/ViewerBase>
#include <osgViewer/Keystone>
namespace osgViewer {
class OSGVIEWER_EXPORT ViewConfig : public osg::Object
{
public:
ViewConfig() {}
ViewConfig(const ViewConfig& rhs, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY) : osg::Object(rhs,copyop) {}
META_Object(osgViewer,ViewConfig);
virtual void configure(osgViewer::View& /*view*/) const {}
virtual osg::DisplaySettings* getActiveDisplaySetting(osgViewer::View& view) const;
};
struct OSGVIEWER_EXPORT DepthPartitionSettings : public osg::Referenced
{
enum DepthMode
{
FIXED_RANGE,
BOUNDING_VOLUME
};
DepthPartitionSettings(DepthMode mode=BOUNDING_VOLUME);
virtual bool getDepthRange(osg::View& view, unsigned int partition, double& zNear, double& zFar);
DepthMode _mode;
double _zNear;
double _zMid;
double _zFar;
};
class OSGVIEWER_EXPORT View : public osg::View, public osgGA::GUIActionAdapter
{
public:
View();
View(const osgViewer::View& view, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
META_Object(osgViewer,View);
virtual osg::View* asView() { return this; }
ViewerBase* getViewerBase() { return _viewerBase.get(); }
virtual void take(osg::View& rhs);
virtual void setStartTick(osg::Timer_t tick);
osg::Timer_t getStartTick() const { return _startTick; }
Scene* getScene() { return _scene.get(); }
const Scene* getScene() const { return _scene.get(); }
virtual void setSceneData(osg::Node* node);
template<class T> void setSceneData(const osg::ref_ptr<T>& node) { setSceneData(node.get()); }
osg::Node* getSceneData() { return _scene.valid() ? _scene->getSceneData() : 0; }
const osg::Node* getSceneData() const { return _scene.valid() ? _scene->getSceneData() : 0; }
void setDatabasePager(osgDB::DatabasePager* dp);
template<class T> void setDatabasePager(const osg::ref_ptr<T>& dp) { setDatabasePager(dp.get()); }
osgDB::DatabasePager* getDatabasePager();
const osgDB::DatabasePager* getDatabasePager() const;
void setImagePager(osgDB::ImagePager* ip);
template<class T> void setImagePager(const osg::ref_ptr<T>& ip) { setImagePager(ip.get()); }
osgDB::ImagePager* getImagePager();
const osgDB::ImagePager* getImagePager() const;
void addDevice(osgGA::Device* eventSource);
template<class T> void addDevice(const osg::ref_ptr<T>& eventSource) { addDevice(eventSource.get()); }
void removeDevice(osgGA::Device* eventSource);
template<class T> void removeDevice(const osg::ref_ptr<T>& eventSource) { removeDevice(eventSource.get()); }
typedef std::vector< osg::ref_ptr<osgGA::Device> > Devices;
Devices& getDevices() { return _eventSources; }
const Devices& getDevices() const { return _eventSources; }
/* Set the EventQueue that the View uses to integrate external non window related events.*/
void setEventQueue(osgGA::EventQueue* eventQueue) { _eventQueue = eventQueue; }
template<class T> void setEventQueue(const osg::ref_ptr<T>& eventQueue) { setEventQueue(eventQueue.get()); }
/* Get the View's EventQueue.*/
osgGA::EventQueue* getEventQueue() { return _eventQueue.get(); }
/* Get the const View's EventQueue.*/
const osgGA::EventQueue* getEventQueue() const { return _eventQueue.get(); }
void setCameraManipulator(osgGA::CameraManipulator* manipulator, bool resetPosition = true);
template<class T> void setCameraManipulator(const osg::ref_ptr<T>& manipulator, bool resetPosition = true) { setCameraManipulator(manipulator.get(), resetPosition); }
osgGA::CameraManipulator* getCameraManipulator() { return _cameraManipulator.get(); }
const osgGA::CameraManipulator* getCameraManipulator() const { return _cameraManipulator.get(); }
void home();
typedef std::list< osg::ref_ptr<osgGA::EventHandler> > EventHandlers;
void addEventHandler(osgGA::EventHandler* eventHandler);
template<class T> void addEventHandler(const osg::ref_ptr<T>& eventHandler) { addEventHandler(eventHandler.get()); }
void removeEventHandler(osgGA::EventHandler* eventHandler);
template<class T> void removeEventHandler(const osg::ref_ptr<T>& eventHandler) { removeEventHandler(eventHandler.get()); }
EventHandlers& getEventHandlers() { return _eventHandlers; }
const EventHandlers& getEventHandlers() const { return _eventHandlers; }
void setCoordinateSystemNodePath(const osg::NodePath& nodePath);
osg::NodePath getCoordinateSystemNodePath() const;
void computeActiveCoordinateSystemNodePath();
void setDisplaySettings(osg::DisplaySettings* ds) { _displaySettings = ds; }
template<class T> void setDisplaySettings(const osg::ref_ptr<T>& ds) { setDisplaySettings(ds.get()); }
osg::DisplaySettings* getDisplaySettings() { return _displaySettings.get(); }
const osg::DisplaySettings* getDisplaySettings() const { return _displaySettings.get(); }
void setFusionDistance(osgUtil::SceneView::FusionDistanceMode mode,float value=1.0f)
{
_fusionDistanceMode = mode;
_fusionDistanceValue = value;
}
osgUtil::SceneView::FusionDistanceMode getFusionDistanceMode() const { return _fusionDistanceMode; }
float getFusionDistanceValue() const { return _fusionDistanceValue; }
void apply(ViewConfig* config);
template<class T> void apply(const osg::ref_ptr<T>& config) { apply(config.get()); }
ViewConfig* getLastAppliedViewConfig() { return _lastAppliedViewConfig.get(); }
const ViewConfig* getLastAppliedViewConfig() const { return _lastAppliedViewConfig.get(); }
void setUpViewAcrossAllScreens();
void setUpViewInWindow(int x, int y, int width, int height, unsigned int screenNum=0);
void setUpViewOnSingleScreen(unsigned int screenNum=0);
void setUpViewFor3DSphericalDisplay(double radius=1.0, double collar=0.45, unsigned int screenNum=0, osg::Image* intensityMap=0, const osg::Matrixd& projectorMatrix = osg::Matrixd());
void setUpViewForPanoramicSphericalDisplay(double radius=1.0, double collar=0.45, unsigned int screenNum=0, osg::Image* intensityMap=0, const osg::Matrixd& projectorMatrix = osg::Matrixd());
void setUpViewForWoWVxDisplay(unsigned int screenNum, unsigned char wow_content, unsigned char wow_factor, unsigned char wow_offset, float wow_disparity_Zd, float wow_disparity_vz, float wow_disparity_M, float wow_disparity_C);
bool setUpDepthPartitionForCamera(osg::Camera* cameraToPartition, DepthPartitionSettings* dps=0);
bool setUpDepthPartition(DepthPartitionSettings* dsp=0);
bool containsCamera(const osg::Camera* camera) const;
template<class T> bool containsCamera(const osg::ref_ptr<T>& camera) const { return containsCamera(camera.get()); }
const osg::Camera* getCameraContainingPosition(float x, float y, float& local_x, float& local_y) const;
bool computeIntersections(float x,float y, osgUtil::LineSegmentIntersector::Intersections& intersections,osg::Node::NodeMask traversalMask = 0xffffffff);
bool computeIntersections(float x,float y, const osg::NodePath& nodePath, osgUtil::LineSegmentIntersector::Intersections& intersections,osg::Node::NodeMask traversalMask = 0xffffffff);
bool computeIntersections(const osgGA::GUIEventAdapter& ea, osgUtil::LineSegmentIntersector::Intersections& intersections,osg::Node::NodeMask traversalMask = 0xffffffff);
bool computeIntersections(const osgGA::GUIEventAdapter& ea, const osg::NodePath& nodePath, osgUtil::LineSegmentIntersector::Intersections& intersections,osg::Node::NodeMask traversalMask = 0xffffffff);
bool computeIntersections(const osg::Camera* camera, osgUtil::Intersector::CoordinateFrame cf, float x,float y, osgUtil::LineSegmentIntersector::Intersections& intersections,osg::Node::NodeMask traversalMask = 0xffffffff);
bool computeIntersections(const osg::Camera* camera, osgUtil::Intersector::CoordinateFrame cf, float x,float y, const osg::NodePath& nodePath, osgUtil::LineSegmentIntersector::Intersections& intersections,osg::Node::NodeMask traversalMask = 0xffffffff);
virtual void requestRedraw();
virtual void requestContinuousUpdate(bool needed=true);
virtual void requestWarpPointer(float x,float y);
virtual bool requiresUpdateSceneGraph() const;
virtual bool requiresRedraw() const;
public:
osg::Texture* createDistortionTexture(int width, int height);
osg::Camera* assignRenderToTextureCamera(osg::GraphicsContext* gc, int width, int height, osg::Texture* texture);
osg::Camera* assignKeystoneDistortionCamera(osg::DisplaySettings* ds, osg::GraphicsContext* gc, int x, int y, int width, int height, GLenum buffer, osg::Texture* texture, Keystone* keystone);
osg::Camera* assignStereoCamera(osg::DisplaySettings* ds, osg::GraphicsContext* gc, int x, int y, int width, int height, GLenum buffer, double eyeScale);
void assignStereoOrKeystoneToCamera(osg::Camera* camera, osg::DisplaySettings* ds);
struct StereoSlaveCallback : public osg::View::Slave::UpdateSlaveCallback
{
StereoSlaveCallback(osg::DisplaySettings* ds, double eyeScale):_ds(ds), _eyeScale(eyeScale) {}
virtual void updateSlave(osg::View& view, osg::View::Slave& slave);
osg::ref_ptr<osg::DisplaySettings> _ds;
double _eyeScale;
};
public:
void assignSceneDataToCameras();
void init();
protected:
friend class CompositeViewer;
virtual ~View();
virtual osg::GraphicsOperation* createRenderer(osg::Camera* camera);
osg::observer_ptr<ViewerBase> _viewerBase;
osg::Timer_t _startTick;
Devices _eventSources;
osg::ref_ptr<osgViewer::Scene> _scene;
osg::ref_ptr<osgGA::EventQueue> _eventQueue;
osg::ref_ptr<osgGA::CameraManipulator> _cameraManipulator;
EventHandlers _eventHandlers;
osg::ObserverNodePath _coordinateSystemNodePath;
osg::ref_ptr<osg::DisplaySettings> _displaySettings;
osgUtil::SceneView::FusionDistanceMode _fusionDistanceMode;
float _fusionDistanceValue;
osg::ref_ptr<ViewConfig> _lastAppliedViewConfig;
};
}
#endif
CameraManipulator
Device
EventQueue
EventVisitor
Keystone
LineSegmentIntersector
PolytopeIntersector
SceneView
Scene
UpdateVisitor
ViewerBase
osgDB::DatabasePager
Definition DatabasePager:50
osgDB::ImagePager
Definition ImagePager:33
osgGA::CameraManipulator
Definition CameraManipulator:40
osgGA::Device
Definition Device:25
osgGA::EventHandler
Definition EventHandler:34
osgGA::EventQueue
Definition EventQueue:31
osgGA::GUIActionAdapter
Definition GUIActionAdapter:62
osgGA::GUIEventAdapter
Definition GUIEventAdapter:82
osgUtil::Intersector::CoordinateFrame
CoordinateFrame
Definition IntersectionVisitor:38
osgUtil::LineSegmentIntersector::Intersections
std::multiset< Intersection > Intersections
Definition LineSegmentIntersector:74
osgUtil::SceneView::FusionDistanceMode
FusionDistanceMode
Definition SceneView:339
osgViewer::Keystone
Definition Keystone:29
osgViewer::Scene
Definition Scene:30
osgViewer::ViewConfig
Definition osgViewer/View:38
osgViewer::ViewConfig::META_Object
META_Object(osgViewer, ViewConfig)
osgViewer::ViewConfig::getActiveDisplaySetting
virtual osg::DisplaySettings * getActiveDisplaySetting(osgViewer::View &view) const
osgViewer::ViewConfig::ViewConfig
ViewConfig(const ViewConfig &rhs, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
Definition osgViewer/View:43
osgViewer::ViewConfig::ViewConfig
ViewConfig()
Definition osgViewer/View:41
osgViewer::ViewConfig::configure
virtual void configure(osgViewer::View &) const
Definition osgViewer/View:48
osgViewer::View
Definition osgViewer/View:76
osgViewer::View::addEventHandler
void addEventHandler(const osg::ref_ptr< T > &eventHandler)
Definition osgViewer/View:189
osgViewer::View::removeEventHandler
void removeEventHandler(const osg::ref_ptr< T > &eventHandler)
Definition osgViewer/View:194
osgViewer::View::getImagePager
const osgDB::ImagePager * getImagePager() const
osgViewer::View::getFusionDistanceValue
float getFusionDistanceValue() const
Definition osgViewer/View:237
osgViewer::View::_eventHandlers
EventHandlers _eventHandlers
Definition osgViewer/View:356
osgViewer::View::getCameraContainingPosition
const osg::Camera * getCameraContainingPosition(float x, float y, float &local_x, float &local_y) const
osgViewer::View::computeIntersections
bool computeIntersections(float x, float y, osgUtil::LineSegmentIntersector::Intersections &intersections, osg::Node::NodeMask traversalMask=0xffffffff)
osgViewer::View::computeIntersections
bool computeIntersections(const osgGA::GUIEventAdapter &ea, const osg::NodePath &nodePath, osgUtil::LineSegmentIntersector::Intersections &intersections, osg::Node::NodeMask traversalMask=0xffffffff)
osgViewer::View::getFusionDistanceMode
osgUtil::SceneView::FusionDistanceMode getFusionDistanceMode() const
Definition osgViewer/View:234
osgViewer::View::createDistortionTexture
osg::Texture * createDistortionTexture(int width, int height)
osgViewer::View::setCoordinateSystemNodePath
void setCoordinateSystemNodePath(const osg::NodePath &nodePath)
osgViewer::View::addEventHandler
void addEventHandler(osgGA::EventHandler *eventHandler)
osgViewer::View::getCameraManipulator
osgGA::CameraManipulator * getCameraManipulator()
Definition osgViewer/View:174
osgViewer::View::removeDevice
void removeDevice(const osg::ref_ptr< T > &eventSource)
Definition osgViewer/View:148
osgViewer::View::setEventQueue
void setEventQueue(const osg::ref_ptr< T > &eventQueue)
Definition osgViewer/View:159
osgViewer::View::_eventQueue
osg::ref_ptr< osgGA::EventQueue > _eventQueue
Definition osgViewer/View:354
osgViewer::View::asView
virtual osg::View * asView()
Definition osgViewer/View:87
osgViewer::View::apply
void apply(ViewConfig *config)
osgViewer::View::computeIntersections
bool computeIntersections(const osg::Camera *camera, osgUtil::Intersector::CoordinateFrame cf, float x, float y, osgUtil::LineSegmentIntersector::Intersections &intersections, osg::Node::NodeMask traversalMask=0xffffffff)
osgViewer::View::getEventQueue
const osgGA::EventQueue * getEventQueue() const
Definition osgViewer/View:165
osgViewer::View::_lastAppliedViewConfig
osg::ref_ptr< ViewConfig > _lastAppliedViewConfig
Definition osgViewer/View:364
osgViewer::View::setUpViewOnSingleScreen
void setUpViewOnSingleScreen(unsigned int screenNum=0)
osgViewer::View::addDevice
void addDevice(const osg::ref_ptr< T > &eventSource)
Definition osgViewer/View:143
osgViewer::View::setUpViewAcrossAllScreens
void setUpViewAcrossAllScreens()
osgViewer::View::setStartTick
virtual void setStartTick(osg::Timer_t tick)
osgViewer::View::requestRedraw
virtual void requestRedraw()
osgViewer::View::_cameraManipulator
osg::ref_ptr< osgGA::CameraManipulator > _cameraManipulator
Definition osgViewer/View:355
osgViewer::View::getCoordinateSystemNodePath
osg::NodePath getCoordinateSystemNodePath() const
osgViewer::View::getImagePager
osgDB::ImagePager * getImagePager()
osgViewer::View::_coordinateSystemNodePath
osg::ObserverNodePath _coordinateSystemNodePath
Definition osgViewer/View:358
osgViewer::View::setImagePager
void setImagePager(osgDB::ImagePager *ip)
osgViewer::View::_eventSources
Devices _eventSources
Definition osgViewer/View:351
osgViewer::View::computeIntersections
bool computeIntersections(float x, float y, const osg::NodePath &nodePath, osgUtil::LineSegmentIntersector::Intersections &intersections, osg::Node::NodeMask traversalMask=0xffffffff)
osgViewer::View::_viewerBase
osg::observer_ptr< ViewerBase > _viewerBase
Definition osgViewer/View:346
osgViewer::View::getDatabasePager
const osgDB::DatabasePager * getDatabasePager() const
osgViewer::View::getSceneData
osg::Node * getSceneData()
Definition osgViewer/View:109
osgViewer::View::setCameraManipulator
void setCameraManipulator(const osg::ref_ptr< T > &manipulator, bool resetPosition=true)
Definition osgViewer/View:171
osgViewer::View::addDevice
void addDevice(osgGA::Device *eventSource)
osgViewer::View::assignStereoCamera
osg::Camera * assignStereoCamera(osg::DisplaySettings *ds, osg::GraphicsContext *gc, int x, int y, int width, int height, GLenum buffer, double eyeScale)
osgViewer::View::_startTick
osg::Timer_t _startTick
Definition osgViewer/View:349
osgViewer::View::computeIntersections
bool computeIntersections(const osg::Camera *camera, osgUtil::Intersector::CoordinateFrame cf, float x, float y, const osg::NodePath &nodePath, osgUtil::LineSegmentIntersector::Intersections &intersections, osg::Node::NodeMask traversalMask=0xffffffff)
osgViewer::View::assignSceneDataToCameras
void assignSceneDataToCameras()
osgViewer::View::getLastAppliedViewConfig
const ViewConfig * getLastAppliedViewConfig() const
Definition osgViewer/View:246
osgViewer::View::_displaySettings
osg::ref_ptr< osg::DisplaySettings > _displaySettings
Definition osgViewer/View:360
osgViewer::View::getScene
const Scene * getScene() const
Definition osgViewer/View:101
osgViewer::View::assignRenderToTextureCamera
osg::Camera * assignRenderToTextureCamera(osg::GraphicsContext *gc, int width, int height, osg::Texture *texture)
osgViewer::View::setCameraManipulator
void setCameraManipulator(osgGA::CameraManipulator *manipulator, bool resetPosition=true)
osgViewer::View::assignStereoOrKeystoneToCamera
void assignStereoOrKeystoneToCamera(osg::Camera *camera, osg::DisplaySettings *ds)
osgViewer::View::computeIntersections
bool computeIntersections(const osgGA::GUIEventAdapter &ea, osgUtil::LineSegmentIntersector::Intersections &intersections, osg::Node::NodeMask traversalMask=0xffffffff)
osgViewer::View::assignKeystoneDistortionCamera
osg::Camera * assignKeystoneDistortionCamera(osg::DisplaySettings *ds, osg::GraphicsContext *gc, int x, int y, int width, int height, GLenum buffer, osg::Texture *texture, Keystone *keystone)
osgViewer::View::setDatabasePager
void setDatabasePager(osgDB::DatabasePager *dp)
osgViewer::View::setFusionDistance
void setFusionDistance(osgUtil::SceneView::FusionDistanceMode mode, float value=1.0f)
Definition osgViewer/View:227
osgViewer::View::requestContinuousUpdate
virtual void requestContinuousUpdate(bool needed=true)
osgViewer::View::setSceneData
virtual void setSceneData(osg::Node *node)
osgViewer::View::getScene
Scene * getScene()
Definition osgViewer/View:100
osgViewer::View::getEventHandlers
EventHandlers & getEventHandlers()
Definition osgViewer/View:197
osgViewer::View::setDisplaySettings
void setDisplaySettings(const osg::ref_ptr< T > &ds)
Definition osgViewer/View:218
osgViewer::View::CompositeViewer
friend class CompositeViewer
Definition osgViewer/View:340
osgViewer::View::apply
void apply(const osg::ref_ptr< T > &config)
Definition osgViewer/View:243
osgViewer::View::home
void home()
osgViewer::View::getEventQueue
osgGA::EventQueue * getEventQueue()
Definition osgViewer/View:162
osgViewer::View::getLastAppliedViewConfig
ViewConfig * getLastAppliedViewConfig()
Definition osgViewer/View:245
osgViewer::View::getEventHandlers
const EventHandlers & getEventHandlers() const
Definition osgViewer/View:200
osgViewer::View::getDisplaySettings
osg::DisplaySettings * getDisplaySettings()
Definition osgViewer/View:221
osgViewer::View::View
View()
osgViewer::View::getDatabasePager
osgDB::DatabasePager * getDatabasePager()
osgViewer::View::take
virtual void take(osg::View &rhs)
osgViewer::View::requiresUpdateSceneGraph
virtual bool requiresUpdateSceneGraph() const
osgViewer::View::removeDevice
void removeDevice(osgGA::Device *eventSource)
osgViewer::View::setUpDepthPartition
bool setUpDepthPartition(DepthPartitionSettings *dsp=0)
osgViewer::View::_scene
osg::ref_ptr< osgViewer::Scene > _scene
Definition osgViewer/View:353
osgViewer::View::init
void init()
osgViewer::View::requestWarpPointer
virtual void requestWarpPointer(float x, float y)
osgViewer::View::setUpDepthPartitionForCamera
bool setUpDepthPartitionForCamera(osg::Camera *cameraToPartition, DepthPartitionSettings *dps=0)
osgViewer::View::EventHandlers
std::list< osg::ref_ptr< osgGA::EventHandler > > EventHandlers
Definition osgViewer/View:184
osgViewer::View::setImagePager
void setImagePager(const osg::ref_ptr< T > &ip)
Definition osgViewer/View:130
osgViewer::View::requiresRedraw
virtual bool requiresRedraw() const
osgViewer::View::~View
virtual ~View()
osgViewer::View::setDatabasePager
void setDatabasePager(const osg::ref_ptr< T > &dp)
Definition osgViewer/View:118
osgViewer::View::View
View(const osgViewer::View &view, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
osgViewer::View::getCameraManipulator
const osgGA::CameraManipulator * getCameraManipulator() const
Definition osgViewer/View:177
osgViewer::View::setUpViewInWindow
void setUpViewInWindow(int x, int y, int width, int height, unsigned int screenNum=0)
osgViewer::View::containsCamera
bool containsCamera(const osg::ref_ptr< T > &camera) const
Definition osgViewer/View:279
osgViewer::View::setUpViewForWoWVxDisplay
void setUpViewForWoWVxDisplay(unsigned int screenNum, unsigned char wow_content, unsigned char wow_factor, unsigned char wow_offset, float wow_disparity_Zd, float wow_disparity_vz, float wow_disparity_M, float wow_disparity_C)
osgViewer::View::createRenderer
virtual osg::GraphicsOperation * createRenderer(osg::Camera *camera)
osgViewer::View::getSceneData
const osg::Node * getSceneData() const
Definition osgViewer/View:112
osgViewer::View::_fusionDistanceMode
osgUtil::SceneView::FusionDistanceMode _fusionDistanceMode
Definition osgViewer/View:361
osgViewer::View::removeEventHandler
void removeEventHandler(osgGA::EventHandler *eventHandler)
osgViewer::View::computeActiveCoordinateSystemNodePath
void computeActiveCoordinateSystemNodePath()
osgViewer::View::_fusionDistanceValue
float _fusionDistanceValue
Definition osgViewer/View:362
osgViewer::View::getDisplaySettings
const osg::DisplaySettings * getDisplaySettings() const
Definition osgViewer/View:224
osgViewer::View::containsCamera
bool containsCamera(const osg::Camera *camera) const
osgViewer::View::getViewerBase
ViewerBase * getViewerBase()
Definition osgViewer/View:92
osgViewer::View::META_Object
META_Object(osgViewer, View)
osgViewer::View::getDevices
Devices & getDevices()
Definition osgViewer/View:152
osgViewer::View::setUpViewFor3DSphericalDisplay
void setUpViewFor3DSphericalDisplay(double radius=1.0, double collar=0.45, unsigned int screenNum=0, osg::Image *intensityMap=0, const osg::Matrixd &projectorMatrix=osg::Matrixd())
osgViewer::View::getDevices
const Devices & getDevices() const
Definition osgViewer/View:153
osgViewer::View::getStartTick
osg::Timer_t getStartTick() const
Definition osgViewer/View:98
osgViewer::View::setEventQueue
void setEventQueue(osgGA::EventQueue *eventQueue)
Definition osgViewer/View:157
osgViewer::View::setUpViewForPanoramicSphericalDisplay
void setUpViewForPanoramicSphericalDisplay(double radius=1.0, double collar=0.45, unsigned int screenNum=0, osg::Image *intensityMap=0, const osg::Matrixd &projectorMatrix=osg::Matrixd())
osgViewer::View::Devices
std::vector< osg::ref_ptr< osgGA::Device > > Devices
Definition osgViewer/View:150
osgViewer::View::setDisplaySettings
void setDisplaySettings(osg::DisplaySettings *ds)
Definition osgViewer/View:216
osgViewer::View::setSceneData
void setSceneData(const osg::ref_ptr< T > &node)
Definition osgViewer/View:106
osgViewer::ViewerBase
Definition ViewerBase:36
osg::Camera
Definition Camera:45
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::DisplaySettings
Definition DisplaySettings:34
osg::GraphicsContext
Definition GraphicsContext:30
osg::Image
Definition Image:179
osg::Matrixd
Definition Matrixd:27
osg::Node
Definition Node:72
osg::Node::NodeMask
unsigned int NodeMask
Definition Node:363
osg::Object
Definition Object:61
osg::Object::Object
Object()
Definition Object:69
osg::ObserverNodePath
Definition ObserverNodePath:28
osg::Referenced
Definition Referenced:44
osg::Texture
Definition Texture:422
osg::View
Definition osg/View:30
osg::observer_ptr
Definition observer_ptr:39
osg::ref_ptr
Definition ref_ptr:32
osg::ref_ptr::get
T * get() const
Definition ref_ptr:117
osgViewer
osg
Definition AlphaFunc:19
osg::NodePath
std::vector< Node * > NodePath
Definition Node:47
osg::Timer_t
unsigned long long Timer_t
Definition Timer:24
OSGVIEWER_EXPORT
#define OSGVIEWER_EXPORT
Definition osgViewer/Export:40
View
osgViewer::DepthPartitionSettings
Definition osgViewer/View:56
osgViewer::DepthPartitionSettings::getDepthRange
virtual bool getDepthRange(osg::View &view, unsigned int partition, double &zNear, double &zFar)
osgViewer::DepthPartitionSettings::_zNear
double _zNear
Definition osgViewer/View:68
osgViewer::DepthPartitionSettings::_mode
DepthMode _mode
Definition osgViewer/View:67
osgViewer::DepthPartitionSettings::DepthPartitionSettings
DepthPartitionSettings(DepthMode mode=BOUNDING_VOLUME)
osgViewer::DepthPartitionSettings::_zMid
double _zMid
Definition osgViewer/View:69
osgViewer::DepthPartitionSettings::_zFar
double _zFar
Definition osgViewer/View:70
osgViewer::DepthPartitionSettings::DepthMode
DepthMode
Definition osgViewer/View:58
osgViewer::DepthPartitionSettings::FIXED_RANGE
@ FIXED_RANGE
Definition osgViewer/View:59
osgViewer::DepthPartitionSettings::BOUNDING_VOLUME
@ BOUNDING_VOLUME
Definition osgViewer/View:60
osgViewer::View::StereoSlaveCallback::StereoSlaveCallback
StereoSlaveCallback(osg::DisplaySettings *ds, double eyeScale)
Definition osgViewer/View:324
osgViewer::View::StereoSlaveCallback::_eyeScale
double _eyeScale
Definition osgViewer/View:329
osgViewer::View::StereoSlaveCallback::_ds
osg::ref_ptr< osg::DisplaySettings > _ds
Definition osgViewer/View:328
osgViewer::View::StereoSlaveCallback::updateSlave
virtual void updateSlave(osg::View &view, osg::View::Slave &slave)
osg::GraphicsOperation
Definition GraphicsThread:36
osg::View::Slave::UpdateSlaveCallback
Definition osg/View:128
osg::View::Slave
Definition osg/View:98