|
| SceneView (osg::DisplaySettings *ds=NULL) |
| Construct a default scene view. More...
|
|
| SceneView (const SceneView &sceneview, const osg::CopyOp ©op=osg::CopyOp()) |
|
| META_Object (osgUtil, SceneView) |
|
virtual void | setDefaults () |
|
virtual void | setDefaults (unsigned int options) |
| Set scene view to use default global state, light, camera and render visitor. More...
|
|
void | setCamera (osg::Camera *camera, bool assumeOwnershipOfCamera=true) |
| Set the camera used to represent the camera view of this SceneView. More...
|
|
osg::Camera * | getCamera () |
| Get the camera used to represent the camera view of this SceneView. More...
|
|
const osg::Camera * | getCamera () const |
| Get the const camera used to represent the camera view of this SceneView. More...
|
|
void | setSceneData (osg::Node *node) |
| Set the data to view. More...
|
|
osg::Node * | getSceneData (unsigned int childNo=0) |
| Get the scene data to view. More...
|
|
const osg::Node * | getSceneData (unsigned int childNo=0) const |
| Get the const scene data which to view. More...
|
|
unsigned int | getNumSceneData () const |
| Get the number of scene data subgraphs added to the SceneView's camera. More...
|
|
void | setViewport (osg::Viewport *viewport) |
| Set the viewport of the scene view to use specified osg::Viewport. More...
|
|
void | setViewport (int x, int y, int width, int height) |
| Set the viewport of the scene view to specified dimensions. More...
|
|
osg::Viewport * | getViewport () |
| Get the viewport. More...
|
|
const osg::Viewport * | getViewport () const |
| Get the const viewport. More...
|
|
void | setDisplaySettings (osg::DisplaySettings *vs) |
| Set the DisplaySettings. More...
|
|
const osg::DisplaySettings * | getDisplaySettings () const |
| Get the const DisplaySettings. More...
|
|
osg::DisplaySettings * | getDisplaySettings () |
| Get the DisplaySettings. More...
|
|
void | setClearColor (const osg::Vec4 &color) |
| Set the color used in glClearColor(). More...
|
|
const osg::Vec4 & | getClearColor () const |
| Get the color used in glClearColor. More...
|
|
void | setRedrawInterlacedStereoStencilMask (bool flag) |
| Manually set the redraw interlaced stereo stencil mask request flag to control whether to redraw the stencil buffer on the next frame. More...
|
|
bool | getRedrawInterlacedStereoStencilMask () const |
| Get the redraw interlaced stereo stencil mask request flag. More...
|
|
void | setGlobalStateSet (osg::StateSet *state) |
|
osg::StateSet * | getGlobalStateSet () |
|
const osg::StateSet * | getGlobalStateSet () const |
|
void | setSecondaryStateSet (osg::StateSet *state) |
|
osg::StateSet * | getSecondaryStateSet () |
|
const osg::StateSet * | getSecondaryStateSet () const |
|
void | setLocalStateSet (osg::StateSet *state) |
|
osg::StateSet * | getLocalStateSet () |
|
const osg::StateSet * | getLocalStateSet () const |
|
void | setActiveUniforms (int activeUniforms) |
| Set the uniforms that SceneView should set set up on each frame. More...
|
|
int | getActiveUniforms () const |
| Get the uniforms that SceneView should set set up on each frame. More...
|
|
void | updateUniforms () |
|
void | setLightingMode (LightingMode mode) |
|
LightingMode | getLightingMode () const |
|
void | setLight (osg::Light *light) |
|
osg::Light * | getLight () |
|
const osg::Light * | getLight () const |
|
void | setState (osg::State *state) |
|
osg::State * | getState () |
|
const osg::State * | getState () const |
|
void | setView (osg::View *view) |
|
osg::View * | getView () |
|
const osg::View * | getView () const |
|
void | setRenderInfo (osg::RenderInfo &renderInfo) |
|
osg::RenderInfo & | getRenderInfo () |
|
const osg::RenderInfo & | getRenderInfo () const |
|
void | setProjectionMatrix (const osg::Matrixf &matrix) |
| Set the projection matrix. More...
|
|
void | setProjectionMatrix (const osg::Matrixd &matrix) |
| Set the projection matrix. More...
|
|
void | setProjectionMatrixAsOrtho (double left, double right, double bottom, double top, double zNear, double zFar) |
| Set to an orthographic projection. More...
|
|
void | setProjectionMatrixAsOrtho2D (double left, double right, double bottom, double top) |
| Set to a 2D orthographic projection. More...
|
|
void | setProjectionMatrixAsFrustum (double left, double right, double bottom, double top, double zNear, double zFar) |
| Set to a perspective projection. More...
|
|
void | setProjectionMatrixAsPerspective (double fovy, double aspectRatio, double zNear, double zFar) |
| Create a symmetrical perspective projection, See OpenGL gluPerspective documentation for further details. More...
|
|
osg::Matrixd & | getProjectionMatrix () |
| Get the projection matrix. More...
|
|
const osg::Matrixd & | getProjectionMatrix () const |
| Get the const projection matrix. More...
|
|
bool | getProjectionMatrixAsOrtho (double &left, double &right, double &bottom, double &top, double &zNear, double &zFar) const |
| Get the orthographic settings of the orthographic projection matrix. More...
|
|
bool | getProjectionMatrixAsFrustum (double &left, double &right, double &bottom, double &top, double &zNear, double &zFar) const |
| Get the frustum setting of a perspective projection matrix. More...
|
|
bool | getProjectionMatrixAsPerspective (double &fovy, double &aspectRatio, double &zNear, double &zFar) const |
| Get the frustum setting of a symmetric perspective projection matrix. More...
|
|
void | setViewMatrix (const osg::Matrixf &matrix) |
| Set the view matrix. More...
|
|
void | setViewMatrix (const osg::Matrixd &matrix) |
| Set the view matrix. More...
|
|
void | setViewMatrixAsLookAt (const osg::Vec3 &eye, const osg::Vec3 ¢er, const osg::Vec3 &up) |
| Set the position and orientation components of the view matrix, using the same convention as gluLookAt. More...
|
|
osg::Matrixd & | getViewMatrix () |
| Get the view matrix. More...
|
|
const osg::Matrixd & | getViewMatrix () const |
| Get the const view matrix. More...
|
|
void | getViewMatrixAsLookAt (osg::Vec3 &eye, osg::Vec3 ¢er, osg::Vec3 &up, float lookDistance=1.0f) const |
| Get the position and orientation components of a modelview matrix, using the same convention as gluLookAt. More...
|
|
void | setInitVisitor (osg::NodeVisitor *av) |
|
osg::NodeVisitor * | getInitVisitor () |
|
const osg::NodeVisitor * | getInitVisitor () const |
|
void | setUpdateVisitor (osg::NodeVisitor *av) |
|
osg::NodeVisitor * | getUpdateVisitor () |
|
const osg::NodeVisitor * | getUpdateVisitor () const |
|
void | setCullVisitor (osgUtil::CullVisitor *cv) |
|
osgUtil::CullVisitor * | getCullVisitor () |
|
const osgUtil::CullVisitor * | getCullVisitor () const |
|
void | setCullVisitorLeft (osgUtil::CullVisitor *cv) |
|
osgUtil::CullVisitor * | getCullVisitorLeft () |
|
const osgUtil::CullVisitor * | getCullVisitorLeft () const |
|
void | setCullVisitorRight (osgUtil::CullVisitor *cv) |
|
osgUtil::CullVisitor * | getCullVisitorRight () |
|
const osgUtil::CullVisitor * | getCullVisitorRight () const |
|
void | setCollectOccludersVisitor (osg::CollectOccludersVisitor *cov) |
|
osg::CollectOccludersVisitor * | getCollectOccludersVisitor () |
|
const osg::CollectOccludersVisitor * | getCollectOccludersVisitor () const |
|
void | setStateGraph (osgUtil::StateGraph *rg) |
|
osgUtil::StateGraph * | getStateGraph () |
|
const osgUtil::StateGraph * | getStateGraph () const |
|
void | setStateGraphLeft (osgUtil::StateGraph *rg) |
|
osgUtil::StateGraph * | getStateGraphLeft () |
|
const osgUtil::StateGraph * | getStateGraphLeft () const |
|
void | setStateGraphRight (osgUtil::StateGraph *rg) |
|
osgUtil::StateGraph * | getStateGraphRight () |
|
const osgUtil::StateGraph * | getStateGraphRight () const |
|
void | setRenderStage (osgUtil::RenderStage *rs) |
|
osgUtil::RenderStage * | getRenderStage () |
|
const osgUtil::RenderStage * | getRenderStage () const |
|
void | setRenderStageLeft (osgUtil::RenderStage *rs) |
|
osgUtil::RenderStage * | getRenderStageLeft () |
|
const osgUtil::RenderStage * | getRenderStageLeft () const |
|
void | setRenderStageRight (osgUtil::RenderStage *rs) |
|
osgUtil::RenderStage * | getRenderStageRight () |
|
const osgUtil::RenderStage * | getRenderStageRight () const |
|
void | collateReferencesToDependentCameras () |
| search through any pre and post RenderStages that reference a Camera, and take a reference to each of these cameras to prevent them being deleted while they are still be used by the drawing thread. More...
|
|
void | clearReferencesToDependentCameras () |
| clear the refence to any any dependent cameras. More...
|
|
void | setDrawBufferValue (GLenum drawBufferValue) |
| Set the draw buffer value used at the start of each frame draw. More...
|
|
GLenum | getDrawBufferValue () const |
| Get the draw buffer value used at the start of each frame draw. More...
|
|
void | setFusionDistance (FusionDistanceMode mode, float value=1.0f) |
| Set the FusionDistanceMode and Value. More...
|
|
FusionDistanceMode | getFusionDistanceMode () const |
| Get the FusionDistanceMode. More...
|
|
float | getFusionDistanceValue () const |
| Get the FusionDistanceValue. More...
|
|
void | setPrioritizeTextures (bool pt) |
| Set whether the draw method should call renderer->prioritizeTexture. More...
|
|
bool | getPrioritizeTextures () const |
| Get whether the draw method should call renderer->prioritizeTexture. More...
|
|
void | setComputeStereoMatricesCallback (ComputeStereoMatricesCallback *callback) |
|
ComputeStereoMatricesCallback * | getComputeStereoMatricesCallback () |
|
const ComputeStereoMatricesCallback * | getComputeStereoMatricesCallback () const |
|
bool | projectWindowIntoObject (const osg::Vec3 &window, osg::Vec3 &object) const |
| Calculate the object coordinates of a point in window coordinates. More...
|
|
bool | projectWindowXYIntoObject (int x, int y, osg::Vec3 &near_point, osg::Vec3 &far_point) const |
| Calculate the object coordinates of a window x,y when projected onto the near and far planes. More...
|
|
bool | projectObjectIntoWindow (const osg::Vec3 &object, osg::Vec3 &window) const |
| Calculate the window coordinates of a point in object coordinates. More...
|
|
void | setFrameStamp (osg::FrameStamp *fs) |
| Set the frame stamp for the current frame. More...
|
|
osg::FrameStamp * | getFrameStamp () |
| Get the frame stamp for the current frame. More...
|
|
const osg::FrameStamp * | getFrameStamp () const |
| Get the const frame stamp for the current frame. More...
|
|
osg::Matrixd | computeLeftEyeProjection (const osg::Matrixd &projection) const |
|
osg::Matrixd | computeLeftEyeView (const osg::Matrixd &view) const |
|
osg::Matrixd | computeRightEyeProjection (const osg::Matrixd &projection) const |
|
osg::Matrixd | computeRightEyeView (const osg::Matrixd &view) const |
|
virtual osg::Matrixd | computeLeftEyeProjectionImplementation (const osg::Matrixd &projection) const |
| helper function for computing the left eye projection matrix. More...
|
|
virtual osg::Matrixd | computeLeftEyeViewImplementation (const osg::Matrixd &view) const |
| helper function for computing the left eye view matrix. More...
|
|
virtual osg::Matrixd | computeRightEyeProjectionImplementation (const osg::Matrixd &projection) const |
| helper function for computing the right eye view matrix. More...
|
|
virtual osg::Matrixd | computeRightEyeViewImplementation (const osg::Matrixd &view) const |
| helper function for computing the right eye view matrix. More...
|
|
virtual void | inheritCullSettings (const osg::CullSettings &settings) |
| Inherit the local cull settings variable from a specified CullSettings object, according to the inheritance mask. More...
|
|
virtual void | inheritCullSettings (const osg::CullSettings &settings, unsigned int inheritanceMask) |
| Inherit the local cull settings variable from a specified CullSettings object, according to the inheritance mask. More...
|
|
virtual void | init () |
| Do init traversal of the attached scene graph using Init NodeVisitor. More...
|
|
virtual void | update () |
| Do app traversal of the attached scene graph using App NodeVisitor. More...
|
|
virtual void | cull () |
| Do cull traversal of the attached scene graph using Cull NodeVisitor. More...
|
|
virtual void | draw () |
| Do draw traversal of draw bins generated by cull traversal. More...
|
|
unsigned int | getDynamicObjectCount () const |
| Compute the number of dynamic objects that will be held in the rendering backend. More...
|
|
virtual void | releaseAllGLObjects () |
| Release all OpenGL objects from the scene graph, such as texture objects, display lists, etc. More...
|
|
virtual void | flushAllDeletedGLObjects () |
| Flush all deleted OpenGL objects, such as texture objects, display lists, etc. More...
|
|
virtual void | flushDeletedGLObjects (double &availableTime) |
| Flush deleted OpenGL objects, such as texture objects, display lists, etc., within the specified available time. More...
|
|
bool | getStats (Statistics &primStats) |
| Extract stats for current draw list. More...
|
|
void | setAutomaticFlush (bool automaticFlush) |
| Set whether the SceneView should automatically call flushDeletedObjects() on each new frame. More...
|
|
bool | getAutomaticFlush () const |
|
void | setResetColorMaskToAllOn (bool enable) |
|
bool | getResetColorMaskToAllOn () const |
|
| Object () |
| Construct an object. More...
|
|
| Object (bool threadSafeRefUnref) |
|
| Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| Copy constructor, optional CopyOp object can be used to control shallow vs deep copying of dynamic data. More...
|
|
virtual Object * | cloneType () const =0 |
| Clone the type of an object, with Object* return type. More...
|
|
virtual Object * | clone (const CopyOp &) const =0 |
| Clone an object, with Object* return type. More...
|
|
virtual bool | isSameKindAs (const Object *) const |
|
virtual const char * | libraryName () const =0 |
| return the name of the object's library. More...
|
|
virtual const char * | className () const =0 |
| return the name of the object's class type. More...
|
|
std::string | getCompoundClassName () const |
| return the compound class name that combines the library name and class name. More...
|
|
virtual Node * | asNode () |
| Convert 'this' into a Node pointer if Object is a Node, otherwise return 0. More...
|
|
virtual const Node * | asNode () const |
| convert 'const this' into a const Node pointer if Object is a Node, otherwise return 0. More...
|
|
virtual NodeVisitor * | asNodeVisitor () |
| Convert 'this' into a NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0. More...
|
|
virtual const NodeVisitor * | asNodeVisitor () const |
| convert 'const this' into a const NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0. More...
|
|
virtual StateAttribute * | asStateAttribute () |
| Convert 'this' into a StateAttribute pointer if Object is a StateAttribute, otherwise return 0. More...
|
|
virtual const StateAttribute * | asStateAttribute () const |
| convert 'const this' into a const StateAttribute pointer if Object is a StateAttribute, otherwise return 0. More...
|
|
virtual Uniform * | asUniform () |
| Convert 'this' into a Uniform pointer if Object is a Uniform, otherwise return 0. More...
|
|
virtual const Uniform * | asUniform () const |
| convert 'const this' into a const Uniform pointer if Object is a Uniform, otherwise return 0. More...
|
|
virtual void | setThreadSafeRefUnref (bool threadSafe) |
| Set whether to use a mutex to ensure ref() and unref() are thread safe. More...
|
|
virtual void | setName (const std::string &name) |
| Set the name of object using C++ style string. More...
|
|
void | setName (const char *name) |
| Set the name of object using a C style string. More...
|
|
const std::string & | getName () const |
| Get the name of object. More...
|
|
void | setDataVariance (DataVariance dv) |
| Set the data variance of this object. More...
|
|
DataVariance | getDataVariance () const |
| Get the data variance of this object. More...
|
|
virtual void | computeDataVariance () |
| Compute the DataVariance based on an assessment of callback etc. More...
|
|
void | setUserDataContainer (osg::UserDataContainer *udc) |
| set the UserDataContainer object. More...
|
|
template<class T > |
void | setUserDataContainer (const ref_ptr< T > &udc) |
|
osg::UserDataContainer * | getUserDataContainer () |
| get the UserDataContainer attached to this object. More...
|
|
const osg::UserDataContainer * | getUserDataContainer () const |
| get the const UserDataContainer attached to this object. More...
|
|
osg::UserDataContainer * | getOrCreateUserDataContainer () |
| Convenience method that returns the UserDataContainer, and if one doesn't already exist creates and assigns a DefaultUserDataContainer to the Object and then return this new UserDataContainer. More...
|
|
virtual void | setUserData (Referenced *obj) |
| Set user data, data must be subclassed from Referenced to allow automatic memory handling. More...
|
|
template<class T > |
void | setUserData (const ref_ptr< T > &ud) |
|
virtual Referenced * | getUserData () |
| Get user data. More...
|
|
virtual const Referenced * | getUserData () const |
| Get const user data. More...
|
|
template<typename T > |
bool | getUserValue (const std::string &name, T &value) const |
| Convenience method that casts the named UserObject to osg::TemplateValueObject<T> and gets the value. More...
|
|
template<typename T > |
void | setUserValue (const std::string &name, const T &value) |
| Convenience method that creates the osg::TemplateValueObject<T> to store the specified value and adds it as a named UserObject. More...
|
|
virtual void | resizeGLObjectBuffers (unsigned int) |
| Resize any per context GLObject buffers to specified size. More...
|
|
virtual void | releaseGLObjects (osg::State *=0) const |
| If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. More...
|
|
template<typename T > |
BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool | getUserValue (const std::string &name, T &value) const |
| provide implementation of osg::Object::getUserValue(..) template More...
|
|
| Referenced () |
|
| Referenced (bool threadSafeRefUnref) |
|
| Referenced (const Referenced &) |
|
Referenced & | operator= (const Referenced &) |
|
bool | getThreadSafeRefUnref () const |
| Get whether a mutex is used to ensure ref() and unref() are thread safe. More...
|
|
OpenThreads::Mutex * | getRefMutex () const |
| Get the mutex used to ensure thread safety of ref()/unref(). More...
|
|
int | ref () const |
| Increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
|
|
int | unref () const |
| Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
|
|
int | unref_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
|
|
int | referenceCount () const |
| Return the number of pointers currently referencing this object. More...
|
|
ObserverSet * | getObserverSet () const |
| Get the ObserverSet if one is attached, otherwise return NULL. More...
|
|
ObserverSet * | getOrCreateObserverSet () const |
| Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet. More...
|
|
void | addObserver (Observer *observer) const |
| Add a Observer that is observing this object, notify the Observer when this object gets deleted. More...
|
|
void | removeObserver (Observer *observer) const |
| Remove Observer that is observing this object. More...
|
|
| CullSettings () |
|
| CullSettings (ArgumentParser &arguments) |
|
| CullSettings (const CullSettings &cs) |
|
virtual | ~CullSettings () |
|
CullSettings & | operator= (const CullSettings &settings) |
|
void | setInheritanceMask (InheritanceMask mask) |
| Set the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object. More...
|
|
InheritanceMask | getInheritanceMask () const |
| Get the inheritance mask used in inheritCullSettings to control which variables get overwritten by the passed in CullSettings object. More...
|
|
void | setCullSettings (const CullSettings &settings) |
| Set the local cull settings values from specified CullSettings object. More...
|
|
void | readEnvironmentalVariables () |
| read the environmental variables. More...
|
|
void | readCommandLine (ArgumentParser &arguments) |
| read the commandline arguments. More...
|
|
void | setInheritanceMaskActionOnAttributeSetting (InheritanceMaskActionOnAttributeSetting action) |
|
InheritanceMaskActionOnAttributeSetting | getInheritanceMaskActionOnAttributeSetting () const |
|
void | applyMaskAction (unsigned int maskBit) |
| Apply the action, specified by the InheritanceMaskActionOnAttributeSetting, to apply to the inheritance bit mask. More...
|
|
void | setImpostorsActive (bool active) |
| Switch the creation of Impostors on or off. More...
|
|
bool | getImpostorsActive () const |
| Get whether impostors are active or not. More...
|
|
void | setImpostorPixelErrorThreshold (float numPixels) |
| Set the impostor error threshold. More...
|
|
float | getImpostorPixelErrorThreshold () const |
| Get the impostor error threshold. More...
|
|
void | setDepthSortImpostorSprites (bool doDepthSort) |
| Set whether ImpostorSprite's should be placed in a depth sorted bin for rendering. More...
|
|
bool | getDepthSortImpostorSprites () const |
| Get whether ImpostorSprite's are depth sorted bin for rendering. More...
|
|
void | setNumberOfFrameToKeepImpostorSprites (int numFrames) |
| Set the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled. More...
|
|
int | getNumberOfFrameToKeepImpostorSprites () const |
| Get the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled. More...
|
|
void | setComputeNearFarMode (ComputeNearFarMode cnfm) |
|
ComputeNearFarMode | getComputeNearFarMode () const |
|
void | setNearFarRatio (double ratio) |
|
double | getNearFarRatio () const |
|
void | setCullingMode (CullingMode mode) |
| Set the culling mode for the CullVisitor to use. More...
|
|
CullingMode | getCullingMode () const |
| Returns the current CullingMode. More...
|
|
void | setCullMask (osg::Node::NodeMask nm) |
|
osg::Node::NodeMask | getCullMask () const |
|
void | setCullMaskLeft (osg::Node::NodeMask nm) |
|
osg::Node::NodeMask | getCullMaskLeft () const |
|
void | setCullMaskRight (osg::Node::NodeMask nm) |
|
osg::Node::NodeMask | getCullMaskRight () const |
|
void | setLODScale (float scale) |
| Set the LOD bias for the CullVisitor to use. More...
|
|
float | getLODScale () const |
| Get the LOD bias. More...
|
|
void | setSmallFeatureCullingPixelSize (float value) |
| Threshold at which small features are culled. More...
|
|
float | getSmallFeatureCullingPixelSize () const |
| Get the Small Feature Culling Pixel Size. More...
|
|
void | setClampProjectionMatrixCallback (ClampProjectionMatrixCallback *cpmc) |
| set the ClampProjectionMatrixCallback. More...
|
|
ClampProjectionMatrixCallback * | getClampProjectionMatrixCallback () |
| get the non const ClampProjectionMatrixCallback. More...
|
|
const ClampProjectionMatrixCallback * | getClampProjectionMatrixCallback () const |
| get the const ClampProjectionMatrixCallback. More...
|
|
void | write (std::ostream &out) |
| Write out internal settings of CullSettings. More...
|
|