21#include <OpenThreads/Mutex>
99 Slave(
bool useMastersSceneData=
true):
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Matrixd Matrix
Definition Matrix:27
Camera - is a subclass of Transform which represents encapsulates the settings of a Camera.
Definition Camera:45
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Class which encapsulates the frame number, reference time and calendar time of specific frame,...
Definition FrameStamp:35
Definition GraphicsThread:36
Light state class which encapsulates OpenGL glLight() functionality.
Definition Light:40
static Matrixd identity(void)
Definition Matrixd:444
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,...
Definition State:80
View - maintains a master camera view and a list of slave cameras that are relative to this master ca...
Definition View:30
unsigned int getNumSlaves() const
Definition View:153
const osg::Camera * getCamera() const
Get the const master camera of the view.
Definition View:84
unsigned int findSlaveIndexForCamera(osg::Camera *camera) const
const osg::Stats * getStats() const
Get the Viewers Stats object.
Definition View:50
Slave & getSlave(unsigned int pos)
Definition View:155
virtual osg::GraphicsOperation * createRenderer(osg::Camera *)
Definition View:171
virtual void take(View &rhs)
Take all the settings, Camera and Slaves from the passed in view, leaving it empty.
LightingMode getLightingMode() const
Get the global lighting used for this view.
Definition View:66
void setFrameStamp(osg::FrameStamp *fs)
Set the frame stamp of the view.
Definition View:87
osg::Stats * getStats()
Get the Viewers Stats object.
Definition View:47
LightingMode
Options for controlling the global lighting used for the view.
Definition View:55
@ HEADLIGHT
Definition View:57
@ SKY_LIGHT
Definition View:58
@ NO_LIGHT
Definition View:56
LightingMode _lightingMode
Definition View:175
bool addSlave(osg::Camera *camera, const osg::Matrix &projectionOffset, const osg::Matrix &viewOffset, bool useMastersSceneData=true)
osg::Light * getLight()
Get the global lighting if assigned.
Definition View:72
osg::ref_ptr< osg::Stats > _stats
Definition View:173
const osg::FrameStamp * getFrameStamp() const
Get the frame stamp of the view.
Definition View:93
virtual void releaseGLObjects(osg::State *=0) const
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics...
const osg::Light * getLight() const
Get the const global lighting if assigned.
Definition View:75
bool addSlave(osg::Camera *camera, bool useMastersSceneData=true)
Definition View:147
View(const osg::View &view, const osg::CopyOp ©op=CopyOp::SHALLOW_COPY)
bool removeSlave(unsigned int pos)
Slave * findSlaveForCamera(osg::Camera *camera)
void setStats(osg::Stats *stats)
Set the Stats object used to collect various frame related timing and scene graph stats.
Definition View:44
const Slave & getSlave(unsigned int pos) const
Definition View:156
void setCamera(osg::Camera *camera)
Set the master camera of the view.
Slaves _slaves
Definition View:181
osg::ref_ptr< osg::FrameStamp > _frameStamp
Definition View:183
osg::Camera * getCamera()
Get the master camera of the view.
Definition View:81
void setLightingMode(LightingMode lightingMode)
Set the global lighting to use for this view.
osg::ref_ptr< osg::Camera > _camera
Definition View:178
virtual void resizeGLObjectBuffers(unsigned int maxSize)
Resize any per context GLObject buffers to specified size.
void setLight(osg::Light *light)
Get the global light.
Definition View:69
osg::ref_ptr< osg::Light > _light
Definition View:176
std::vector< Slave > Slaves
Definition View:180
osg::FrameStamp * getFrameStamp()
Get the frame stamp of the view.
Definition View:90
Slave allows one to up a camera that follows the master with a local offset to the project and view m...
Definition View:98
bool _useMastersSceneData
Definition View:143
osg::Matrixd _projectionOffset
Definition View:141
osg::ref_ptr< osg::Camera > _camera
Definition View:140
void updateSlave(View &view)
Definition View:132
Slave(bool useMastersSceneData=true)
Definition View:99
osg::Matrixd _viewOffset
Definition View:142
Slave(osg::Camera *camera, const osg::Matrixd &projectionOffset, const osg::Matrixd &viewOffset, bool useMastersSceneData=true)
Definition View:102
osg::ref_ptr< UpdateSlaveCallback > _updateSlaveCallback
Definition View:144
Slave(const Slave &rhs)
Definition View:108
virtual ~Slave()
Definition View:115
virtual void updateSlaveImplementation(View &view)
virtual void updateSlave(osg::View &view, osg::View::Slave &slave)=0
#define OSG_EXPORT
Definition Export:39