OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
osgViewer::View Class Reference

#include <View.h>

Inheritance diagram for osgViewer::View:
Inheritance graph
[legend]
Collaboration diagram for osgViewer::View:
Collaboration graph
[legend]

Classes

struct  StereoSlaveCallback
 

Public Types

typedef std::list
< osg::ref_ptr
< osgGA::EventHandler > > 
EventHandlers
 
- Public Types inherited from osg::View
enum  LightingMode { NO_LIGHT, HEADLIGHT, SKY_LIGHT }
 
- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 

Public Member Functions

 View ()
 
 View (const osgViewer::View &view, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
 META_Object (osgViewer, View)
 
virtual osg::ViewasView ()
 
ViewerBasegetViewerBase ()
 
virtual void take (osg::View &rhs)
 
virtual void setStartTick (osg::Timer_t tick)
 
osg::Timer_t getStartTick () const
 
ScenegetScene ()
 
const ScenegetScene () const
 
virtual void setSceneData (osg::Node *node)
 
osg::NodegetSceneData ()
 
const osg::NodegetSceneData () const
 
void setDatabasePager (osgDB::DatabasePager *dp)
 
osgDB::DatabasePagergetDatabasePager ()
 
const osgDB::DatabasePagergetDatabasePager () const
 
void setImagePager (osgDB::ImagePager *ip)
 
osgDB::ImagePagergetImagePager ()
 
const osgDB::ImagePagergetImagePager () const
 
void addDevice (osgGA::Device *eventSource)
 
void setEventQueue (osgGA::EventQueue *eventQueue)
 
osgGA::EventQueuegetEventQueue ()
 
const osgGA::EventQueuegetEventQueue () const
 
void setCameraManipulator (osgGA::CameraManipulator *manipulator, bool resetPosition=true)
 
osgGA::CameraManipulatorgetCameraManipulator ()
 
const osgGA::CameraManipulatorgetCameraManipulator () const
 
void home ()
 
void addEventHandler (osgGA::EventHandler *eventHandler)
 
void removeEventHandler (osgGA::EventHandler *eventHandler)
 
EventHandlersgetEventHandlers ()
 
const EventHandlersgetEventHandlers () const
 
void setCoordinateSystemNodePath (const osg::NodePath &nodePath)
 
osg::NodePath getCoordinateSystemNodePath () const
 
void computeActiveCoordinateSystemNodePath ()
 
void setDisplaySettings (osg::DisplaySettings *ds)
 
osg::DisplaySettingsgetDisplaySettings ()
 
const osg::DisplaySettingsgetDisplaySettings () const
 
void setFusionDistance (osgUtil::SceneView::FusionDistanceMode mode, float value=1.0f)
 
osgUtil::SceneView::FusionDistanceMode getFusionDistanceMode () const
 
float getFusionDistanceValue () const
 
void apply (ViewConfig *config)
 
ViewConfiggetLastAppliedViewConfig ()
 
const ViewConfiggetLastAppliedViewConfig () const
 
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
 
const osg::CameragetCameraContainingPosition (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)
 
osg::TexturecreateDistortionTexture (int width, int height)
 
osg::CameraassignRenderToTextureCamera (osg::GraphicsContext *gc, int width, int height, osg::Texture *texture)
 
osg::CameraassignKeystoneDistortionCamera (osg::DisplaySettings *ds, osg::GraphicsContext *gc, int x, int y, int width, int height, GLenum buffer, osg::Texture *texture, Keystone *keystone)
 
osg::CameraassignStereoCamera (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)
 
void assignSceneDataToCameras ()
 
void init ()
 
- Public Member Functions inherited from osg::View
 View ()
 
 View (const osg::View &view, const osg::CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
 META_Object (osg, View)
 
void setStats (osg::Stats *stats)
 
osg::StatsgetStats ()
 
const osg::StatsgetStats () const
 
void setLightingMode (LightingMode lightingMode)
 
LightingMode getLightingMode () const
 
void setLight (osg::Light *light)
 
osg::LightgetLight ()
 
const osg::LightgetLight () const
 
void setCamera (osg::Camera *camera)
 
osg::CameragetCamera ()
 
const osg::CameragetCamera () const
 
void setFrameStamp (osg::FrameStamp *fs)
 
osg::FrameStampgetFrameStamp ()
 
const osg::FrameStampgetFrameStamp () const
 
bool addSlave (osg::Camera *camera, bool useMastersSceneData=true)
 
bool addSlave (osg::Camera *camera, const osg::Matrix &projectionOffset, const osg::Matrix &viewOffset, bool useMastersSceneData=true)
 
bool removeSlave (unsigned int pos)
 
unsigned int getNumSlaves () const
 
SlavegetSlave (unsigned int pos)
 
const SlavegetSlave (unsigned int pos) const
 
unsigned int findSlaveIndexForCamera (osg::Camera *camera) const
 
SlavefindSlaveForCamera (osg::Camera *camera)
 
void updateSlaves ()
 
- Public Member Functions inherited from osg::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual ObjectcloneType () const =0
 
virtual Objectclone (const CopyOp &) const =0
 
virtual bool isSameKindAs (const Object *) const
 
virtual const char * libraryName () const =0
 
virtual const char * className () const =0
 
std::string getCompoundClassName () const
 
virtual NodeasNode ()
 
virtual const NodeasNode () const
 
virtual NodeVisitorasNodeVisitor ()
 
virtual const NodeVisitorasNodeVisitor () const
 
virtual StateAttributeasStateAttribute ()
 
virtual const StateAttributeasStateAttribute () const
 
virtual UniformasUniform ()
 
virtual const UniformasUniform () const
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
virtual void setName (const std::string &name)
 
void setName (const char *name)
 
const std::string & getName () const
 
void setDataVariance (DataVariance dv)
 
DataVariance getDataVariance () const
 
virtual void computeDataVariance ()
 
void setUserDataContainer (osg::UserDataContainer *udc)
 
osg::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () const
 
template<typename T >
bool getUserValue (const std::string &name, T &value) const
 
template<typename T >
void setUserValue (const std::string &name, const T &value)
 
virtual void resizeGLObjectBuffers (unsigned int)
 
virtual void releaseGLObjects (osg::State *=0) const
 
template<typename T >
BoolValueObject
UCharValueObject
UShortValueObject
UIntValueObject
DoubleValueObject
Vec3fValueObject
Vec2dValueObject
Vec4dValueObject
PlaneValueObject
MatrixdValueObject
BoundingBoxdValueObject
BoundingSpheredValueObject
bool 
getUserValue (const std::string &name, T &value) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 
- Public Member Functions inherited from osgGA::GUIActionAdapter
virtual ~GUIActionAdapter ()
 

Protected Member Functions

virtual ~View ()
 
virtual osg::GraphicsOperationcreateRenderer (osg::Camera *camera)
 
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

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
 
- Protected Attributes inherited from osg::View
osg::ref_ptr< osg::Stats_stats
 
LightingMode _lightingMode
 
osg::ref_ptr< osg::Light_light
 
osg::ref_ptr< osg::Camera_camera
 
Slaves _slaves
 
osg::ref_ptr< osg::FrameStamp_frameStamp
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer_userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Friends

class CompositeViewer
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 
- Protected Types inherited from osg::View
typedef std::vector< SlaveSlaves
 

Detailed Description

View holds a single view on a scene, this view may be composed of one or more slave cameras.

Definition at line 75 of file View.h.

Member Typedef Documentation

Definition at line 170 of file View.h.

Constructor & Destructor Documentation

osgViewer::View::View ( )
osgViewer::View::View ( const osgViewer::View view,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)
virtual osgViewer::View::~View ( )
protectedvirtual

Reimplemented from osg::View.

Member Function Documentation

void osgViewer::View::addDevice ( osgGA::Device eventSource)

Add a Device. The Device is polled on each new frame via it's Device::checkEvents() method and any events generated then collected via Device::getEventQueue()

void osgViewer::View::addEventHandler ( osgGA::EventHandler eventHandler)

Add an EventHandler that adds handling of events to the View.

void osgViewer::View::apply ( ViewConfig config)

Apply a viewer configuration to set up Cameras and Windowing.

osg::Camera* osgViewer::View::assignKeystoneDistortionCamera ( osg::DisplaySettings ds,
osg::GraphicsContext gc,
int  x,
int  y,
int  width,
int  height,
GLenum  buffer,
osg::Texture texture,
Keystone keystone 
)
osg::Camera* osgViewer::View::assignRenderToTextureCamera ( osg::GraphicsContext gc,
int  width,
int  height,
osg::Texture texture 
)
void osgViewer::View::assignSceneDataToCameras ( )
osg::Camera* osgViewer::View::assignStereoCamera ( osg::DisplaySettings ds,
osg::GraphicsContext gc,
int  x,
int  y,
int  width,
int  height,
GLenum  buffer,
double  eyeScale 
)
void osgViewer::View::assignStereoOrKeystoneToCamera ( osg::Camera camera,
osg::DisplaySettings ds 
)
virtual osg::View* osgViewer::View::asView ( )
inlinevirtual

Provide a mechanism for getting the osg::View associated from the GUIActionAdapter. One would use this to case view to osgViewer::View(er) if supported by the subclass.

Reimplemented from osgGA::GUIActionAdapter.

Definition at line 87 of file View.h.

void osgViewer::View::computeActiveCoordinateSystemNodePath ( )

Compute the NodePath to any active CoordinateSystemNode present in the Scene.

bool osgViewer::View::computeIntersections ( float  x,
float  y,
osgUtil::LineSegmentIntersector::Intersections intersections,
osg::Node::NodeMask  traversalMask = 0xffffffff 
)

deprecated.

bool osgViewer::View::computeIntersections ( float  x,
float  y,
const osg::NodePath nodePath,
osgUtil::LineSegmentIntersector::Intersections intersections,
osg::Node::NodeMask  traversalMask = 0xffffffff 
)

deprecated.

bool osgViewer::View::computeIntersections ( const osgGA::GUIEventAdapter ea,
osgUtil::LineSegmentIntersector::Intersections intersections,
osg::Node::NodeMask  traversalMask = 0xffffffff 
)
virtual

Compute intersections of a ray, starting the current mouse position, through the specified camera.

Reimplemented from osgGA::GUIActionAdapter.

bool osgViewer::View::computeIntersections ( const osgGA::GUIEventAdapter ea,
const osg::NodePath nodePath,
osgUtil::LineSegmentIntersector::Intersections intersections,
osg::Node::NodeMask  traversalMask = 0xffffffff 
)
virtual

Compute intersections of a ray, starting the current mouse position, through the specified master camera's window/eye coordinates and a specified nodePath's subgraph.

Reimplemented from osgGA::GUIActionAdapter.

bool osgViewer::View::computeIntersections ( const osg::Camera camera,
osgUtil::Intersector::CoordinateFrame  cf,
float  x,
float  y,
osgUtil::LineSegmentIntersector::Intersections intersections,
osg::Node::NodeMask  traversalMask = 0xffffffff 
)

Compute intersections of a ray through the specified camera.

bool osgViewer::View::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 
)

Compute intersections of a ray through the specified camera and a specified nodePath's subgraph.

bool osgViewer::View::containsCamera ( const osg::Camera camera) const

Return true if this view contains a specified camera.

osg::Texture* osgViewer::View::createDistortionTexture ( int  width,
int  height 
)
virtual osg::GraphicsOperation* osgViewer::View::createRenderer ( osg::Camera camera)
protectedvirtual

Reimplemented from osg::View.

const osg::Camera* osgViewer::View::getCameraContainingPosition ( float  x,
float  y,
float &  local_x,
float &  local_y 
) const

deprecated.

osgGA::CameraManipulator* osgViewer::View::getCameraManipulator ( )
inline

Get the View's CameraManipulator.

Definition at line 160 of file View.h.

const osgGA::CameraManipulator* osgViewer::View::getCameraManipulator ( ) const
inline

Get the const View's CameraManipulator.

Definition at line 163 of file View.h.

osg::NodePath osgViewer::View::getCoordinateSystemNodePath ( ) const

Get the NodePath to any active CoordinateSystemNode present in the Scene.

osgDB::DatabasePager* osgViewer::View::getDatabasePager ( )

Get the View's database pager.

const osgDB::DatabasePager* osgViewer::View::getDatabasePager ( ) const

Get the const View's database pager.

osg::DisplaySettings* osgViewer::View::getDisplaySettings ( )
inline

Set the DisplaySettings object associated with this view.

Definition at line 201 of file View.h.

const osg::DisplaySettings* osgViewer::View::getDisplaySettings ( ) const
inline

Set the DisplaySettings object associated with this view.

Definition at line 204 of file View.h.

EventHandlers& osgViewer::View::getEventHandlers ( )
inline

Get the View's list of EventHandlers.

Definition at line 179 of file View.h.

const EventHandlers& osgViewer::View::getEventHandlers ( ) const
inline

Get the const View's list of EventHandlers.

Definition at line 182 of file View.h.

osgGA::EventQueue* osgViewer::View::getEventQueue ( )
inline

Definition at line 150 of file View.h.

const osgGA::EventQueue* osgViewer::View::getEventQueue ( ) const
inline

Definition at line 153 of file View.h.

osgUtil::SceneView::FusionDistanceMode osgViewer::View::getFusionDistanceMode ( ) const
inline

Get the FusionDistanceMode.

Definition at line 214 of file View.h.

float osgViewer::View::getFusionDistanceValue ( ) const
inline

Get the FusionDistanceValue. Note, only used for USE_FUSION_DISTANCE_VALUE & PROPORTIONAL_TO_SCREEN_DISTANCE modes.

Definition at line 217 of file View.h.

osgDB::ImagePager* osgViewer::View::getImagePager ( )

Get the View's image pager.

const osgDB::ImagePager* osgViewer::View::getImagePager ( ) const

Get the const View's image pager.

ViewConfig* osgViewer::View::getLastAppliedViewConfig ( )
inline

Definition at line 223 of file View.h.

const ViewConfig* osgViewer::View::getLastAppliedViewConfig ( ) const
inline

Definition at line 224 of file View.h.

Scene* osgViewer::View::getScene ( )
inline

Definition at line 100 of file View.h.

const Scene* osgViewer::View::getScene ( ) const
inline

Definition at line 101 of file View.h.

osg::Node* osgViewer::View::getSceneData ( )
inline

Get the View's scene graph.

Definition at line 107 of file View.h.

const osg::Node* osgViewer::View::getSceneData ( ) const
inline

Get the const View's scene graph.

Definition at line 110 of file View.h.

osg::Timer_t osgViewer::View::getStartTick ( ) const
inline

Definition at line 98 of file View.h.

ViewerBase* osgViewer::View::getViewerBase ( )
inline

Provide a mechanism for getting the viewer object from this osgViewer::View. In the case of a osgViewer::Viewer the ViewerBase will effectively point to this object as Viewer subclasses from View. In the case of a osgViewer::CompsoiteViewer the ViewerBase will point to the CompositeViewer that owns this View.

Definition at line 92 of file View.h.

void osgViewer::View::home ( )

Set the view to the CameraManipulator's home position, if none is attached home() it does nothing. Note, to set the home position use getCamaraManipulator()->setHomePosition(...).

void osgViewer::View::init ( )
osgViewer::View::META_Object ( osgViewer  ,
View   
)
void osgViewer::View::removeEventHandler ( osgGA::EventHandler eventHandler)

Remove an EventHandler from View.

virtual void osgViewer::View::requestContinuousUpdate ( bool  needed = true)
virtual

requestContinuousUpdate(bool) is for en/disabling a throw or idle callback to be requested by a GUIEventHandler (typically a CameraManipulator, though other GUIEventHandler's may also provide functionality). GUI toolkits can respond to this immediately by registering an idle/timed callback, or can delay setting the callback and update at their own leisure.

Implements osgGA::GUIActionAdapter.

virtual void osgViewer::View::requestRedraw ( )
virtual

requestRedraw() requests a single redraw.

Implements osgGA::GUIActionAdapter.

virtual void osgViewer::View::requestWarpPointer ( float  x,
float  y 
)
virtual

requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,y location on the window. This is used by some camera manipulators to initialise the mouse pointer when mouse position relative to a controls neutral mouse position is required, i.e when mimicking an aircraft joystick.

Implements osgGA::GUIActionAdapter.

void osgViewer::View::setCameraManipulator ( osgGA::CameraManipulator manipulator,
bool  resetPosition = true 
)

Set the CameraManipulator that moves the View's master Camera position in response to events. The parameter resetPosition determines whether manipulator is set to its home position.

void osgViewer::View::setCoordinateSystemNodePath ( const osg::NodePath nodePath)

Set the NodePath to any active CoordinateSystemNode present in the Scene. The CoordinateSystemNode path is used to help applications and CamaraManipulators handle geocentric coordinates systems, so that the local up direction is known at any position on the whole earth.

void osgViewer::View::setDatabasePager ( osgDB::DatabasePager dp)

Set the View's database pager.

void osgViewer::View::setDisplaySettings ( osg::DisplaySettings ds)
inline

Set the DisplaySettings object associated with this view.

Definition at line 198 of file View.h.

void osgViewer::View::setEventQueue ( osgGA::EventQueue eventQueue)
inline

Remove a Device. /*/ void removeDevice(osgGA::Device* eventSource);

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.

Definition at line 147 of file View.h.

void osgViewer::View::setFusionDistance ( osgUtil::SceneView::FusionDistanceMode  mode,
float  value = 1.0f 
)
inline

Set the FusionDistanceMode and Value. Note, only used when working in stereo.

Definition at line 207 of file View.h.

void osgViewer::View::setImagePager ( osgDB::ImagePager ip)

Set the View's image pager.

virtual void osgViewer::View::setSceneData ( osg::Node node)
virtual

Set the scene graph that the View will use.

Reimplemented in osgViewer::Viewer.

virtual void osgViewer::View::setStartTick ( osg::Timer_t  tick)
virtual

Reimplemented in osgViewer::Viewer.

bool osgViewer::View::setUpDepthPartition ( DepthPartitionSettings dsp = 0)

Convenience method for setting up multiple slave cameras with depth partitioning on each of the view's active cameras.

bool osgViewer::View::setUpDepthPartitionForCamera ( osg::Camera cameraToPartition,
DepthPartitionSettings dps = 0 
)

Convenience method for setting up depth partitioning on the specified camera.

void osgViewer::View::setUpViewAcrossAllScreens ( )

deprecated, use view.apply(new osgViewer::AcrossAllWindows()).

void osgViewer::View::setUpViewFor3DSphericalDisplay ( double  radius = 1.0,
double  collar = 0.45,
unsigned int  screenNum = 0,
osg::Image intensityMap = 0,
const osg::Matrixd projectorMatrix = osg::Matrixd() 
)

deprecated, use view.apply(new osgViewer::SphericalDisplay(radius, collar, screenNum, intensityMap, projectorMatrix)).

void osgViewer::View::setUpViewForPanoramicSphericalDisplay ( double  radius = 1.0,
double  collar = 0.45,
unsigned int  screenNum = 0,
osg::Image intensityMap = 0,
const osg::Matrixd projectorMatrix = osg::Matrixd() 
)

deprecated, use view.apply(new osgViewer::PanoramicSphericalDisplay(radius, collar, screenNum, intensityMap, projectorMatrix)).

void osgViewer::View::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 
)

deprecated. use view.apply(new osgViewer::WoWVxDisplay(type (20 to 42), screenNum).

void osgViewer::View::setUpViewInWindow ( int  x,
int  y,
int  width,
int  height,
unsigned int  screenNum = 0 
)

deprecated, use view.apply(new osgViewer::SingleWindow(x,y,width,screenNum)).

void osgViewer::View::setUpViewOnSingleScreen ( unsigned int  screenNum = 0)

deprecated, use view.apply(new osgViewer::SingleScreen(screenNum)).

virtual void osgViewer::View::take ( osg::View rhs)
virtual

Take all the settings, Camera and Slaves from the passed in view, leaving it empty.

Reimplemented from osg::View.

Reimplemented in osgViewer::Viewer.

Friends And Related Function Documentation

friend class CompositeViewer
friend

Definition at line 312 of file View.h.

Member Data Documentation

osg::ref_ptr<osgGA::CameraManipulator> osgViewer::View::_cameraManipulator
protected

Definition at line 327 of file View.h.

osg::ObserverNodePath osgViewer::View::_coordinateSystemNodePath
protected

Definition at line 330 of file View.h.

osg::ref_ptr<osg::DisplaySettings> osgViewer::View::_displaySettings
protected

Definition at line 332 of file View.h.

EventHandlers osgViewer::View::_eventHandlers
protected

Definition at line 328 of file View.h.

osg::ref_ptr<osgGA::EventQueue> osgViewer::View::_eventQueue
protected

Definition at line 326 of file View.h.

Devices osgViewer::View::_eventSources
protected

Definition at line 323 of file View.h.

osgUtil::SceneView::FusionDistanceMode osgViewer::View::_fusionDistanceMode
protected

Definition at line 333 of file View.h.

float osgViewer::View::_fusionDistanceValue
protected

Definition at line 334 of file View.h.

osg::ref_ptr<ViewConfig> osgViewer::View::_lastAppliedViewConfig
protected

Definition at line 336 of file View.h.

osg::ref_ptr<osgViewer::Scene> osgViewer::View::_scene
protected

Definition at line 325 of file View.h.

osg::Timer_t osgViewer::View::_startTick
protected

Definition at line 321 of file View.h.

osg::observer_ptr<ViewerBase> osgViewer::View::_viewerBase
protected

Definition at line 318 of file View.h.


The documentation for this class was generated from the following file: