openscenegraph
|
Classes | |
struct | Slave |
Public Types | |
enum | LightingMode { NO_LIGHT, HEADLIGHT, SKY_LIGHT } |
![]() | |
enum | DataVariance { DYNAMIC, STATIC, UNSPECIFIED } |
Public Member Functions | |
View () | |
View (const osg::View &view, const osg::CopyOp ©op=CopyOp::SHALLOW_COPY) | |
META_Object (osg, View) | |
virtual void | take (View &rhs) |
void | setStats (osg::Stats *stats) |
osg::Stats * | getStats () |
const osg::Stats * | getStats () const |
void | setLightingMode (LightingMode lightingMode) |
LightingMode | getLightingMode () const |
void | setLight (osg::Light *light) |
osg::Light * | getLight () |
const osg::Light * | getLight () const |
void | setCamera (osg::Camera *camera) |
osg::Camera * | getCamera () |
const osg::Camera * | getCamera () const |
void | setFrameStamp (osg::FrameStamp *fs) |
osg::FrameStamp * | getFrameStamp () |
const osg::FrameStamp * | getFrameStamp () 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 |
Slave & | getSlave (unsigned int pos) |
const Slave & | getSlave (unsigned int pos) const |
unsigned int | findSlaveIndexForCamera (osg::Camera *camera) const |
Slave * | findSlaveForCamera (osg::Camera *camera) |
void | updateSlaves () |
![]() | |
Object () | |
Object (bool threadSafeRefUnref) | |
Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
virtual Object * | cloneType () const =0 |
virtual Object * | clone (const CopyOp &) const =0 |
virtual bool | isSameKindAs (const Object *) const |
virtual const char * | libraryName () const =0 |
virtual const char * | className () const =0 |
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::UserDataContainer * | getUserDataContainer () |
const osg::UserDataContainer * | getUserDataContainer () const |
osg::UserDataContainer * | getOrCreateUserDataContainer () |
virtual void | setUserData (Referenced *obj) |
virtual Referenced * | getUserData () |
virtual const Referenced * | getUserData () 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 |
![]() | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
bool | getThreadSafeRefUnref () const |
OpenThreads::Mutex * | getRefMutex () const |
int | ref () const |
int | unref () const |
int | unref_nodelete () const |
int | referenceCount () const |
ObserverSet * | getObserverSet () const |
ObserverSet * | getOrCreateObserverSet () const |
void | addObserver (Observer *observer) const |
void | removeObserver (Observer *observer) const |
Protected Types | |
typedef std::vector< Slave > | Slaves |
Protected Member Functions | |
virtual | ~View () |
virtual osg::GraphicsOperation * | createRenderer (osg::Camera *) |
![]() | |
virtual | ~Object () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Protected Attributes | |
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 |
![]() | |
std::string | _name |
DataVariance | _dataVariance |
osg::UserDataContainer * | _userDataContainer |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
static bool | getThreadSafeReferenceCounting () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
View - maintains a master camera view and a list of slave cameras that are relative to this master camera. Note, if no slave cameras are attached to the view then the master camera does both the control and implementation of the rendering of the scene, but if slave cameras are present then the master controls the view onto the scene, while the slaves implement the rendering of the scene.
|
protected |
osg::View::View | ( | ) |
Reimplemented in osgViewer::View.
osg::View::View | ( | const osg::View & | view, |
const osg::CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) |
|
protectedvirtual |
Reimplemented in osgViewer::View.
|
inline |
References addSlave(), and osg::Matrixd::identity().
Referenced by addSlave().
bool osg::View::addSlave | ( | osg::Camera * | camera, |
const osg::Matrix & | projectionOffset, | ||
const osg::Matrix & | viewOffset, | ||
bool | useMastersSceneData = true |
||
) |
|
inlineprotectedvirtual |
Reimplemented in osgViewer::View.
Slave* osg::View::findSlaveForCamera | ( | osg::Camera * | camera | ) |
unsigned int osg::View::findSlaveIndexForCamera | ( | osg::Camera * | camera | ) | const |
|
inline |
Get the master camera of the view.
|
inline |
Get the const master camera of the view.
|
inline |
Get the frame stamp of the view.
|
inline |
Get the frame stamp of the view.
|
inline |
Get the global lighting if assigned.
|
inline |
Get the const global lighting if assigned.
|
inline |
Get the global lighting used for this view.
|
inline |
|
inline |
|
inline |
|
inline |
Get the Viewers Stats object.
|
inline |
Get the Viewers Stats object.
osg::View::META_Object | ( | osg | , |
View | |||
) |
bool osg::View::removeSlave | ( | unsigned int | pos | ) |
void osg::View::setCamera | ( | osg::Camera * | camera | ) |
Set the master camera of the view.
|
inline |
Set the frame stamp of the view.
|
inline |
Get the global light.
void osg::View::setLightingMode | ( | LightingMode | lightingMode | ) |
Set the global lighting to use for this view. Defaults to headlight.
|
inline |
Set the Stats object used for collect various frame related timing and scene graph stats.
Take all the settings, Camera and Slaves from the passed in view, leaving it empty.
Reimplemented in osgViewer::View, and osgViewer::Viewer.
void osg::View::updateSlaves | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |