OpenSceneGraph  3.5.1
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgUtil::SceneView Class Reference

SceneView is deprecated, and is now just kept for backwards compatibility. More...

Inheritance diagram for osgUtil::SceneView:
Inheritance graph
[legend]

Classes

struct  ComputeStereoMatricesCallback
 Callback for overidding the default method for compute the offset projection and view matrices. More...
 

Public Types

enum  Options {
  NO_SCENEVIEW_LIGHT = 0x0, HEADLIGHT = 0x1, SKY_LIGHT = 0x2, COMPILE_GLOBJECTS_AT_INIT = 0x4,
  APPLY_GLOBAL_DEFAULTS = 0x8, CLEAR_GLOBAL_STATESET = 0x10, STANDARD_SETTINGS
}
 
enum  ActiveUniforms {
  FRAME_NUMBER_UNIFORM = 1, FRAME_TIME_UNIFORM = 2, DELTA_FRAME_TIME_UNIFORM = 4, SIMULATION_TIME_UNIFORM = 8,
  DELTA_SIMULATION_TIME_UNIFORM = 16, VIEW_MATRIX_UNIFORM = 32, VIEW_MATRIX_INVERSE_UNIFORM = 64, DEFAULT_UNIFORMS,
  ALL_UNIFORMS = 0x7FFFFFFF
}
 
enum  FusionDistanceMode { USE_FUSION_DISTANCE_VALUE, PROPORTIONAL_TO_SCREEN_DISTANCE }
 FusionDistanceMode is used only when working in stereo. More...
 
typedef Options LightingMode
 
- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 
- Public Types inherited from osg::CullSettings
enum  VariablesMask {
  COMPUTE_NEAR_FAR_MODE = (0x1 << 0), CULLING_MODE = (0x1 << 1), LOD_SCALE = (0x1 << 2), SMALL_FEATURE_CULLING_PIXEL_SIZE = (0x1 << 3),
  CLAMP_PROJECTION_MATRIX_CALLBACK = (0x1 << 4), NEAR_FAR_RATIO = (0x1 << 5), IMPOSTOR_ACTIVE = (0x1 << 6), DEPTH_SORT_IMPOSTOR_SPRITES = (0x1 << 7),
  IMPOSTOR_PIXEL_ERROR_THRESHOLD = (0x1 << 8), NUM_FRAMES_TO_KEEP_IMPOSTORS_SPRITES = (0x1 << 9), CULL_MASK = (0x1 << 10), CULL_MASK_LEFT = (0x1 << 11),
  CULL_MASK_RIGHT = (0x1 << 12), CLEAR_COLOR = (0x1 << 13), CLEAR_MASK = (0x1 << 14), LIGHTING_MODE = (0x1 << 15),
  LIGHT = (0x1 << 16), DRAW_BUFFER = (0x1 << 17), READ_BUFFER = (0x1 << 18), NO_VARIABLES = 0x00000000,
  ALL_VARIABLES = 0x7FFFFFFF
}
 
enum  InheritanceMaskActionOnAttributeSetting { DISABLE_ASSOCIATED_INHERITANCE_MASK_BIT, DO_NOT_MODIFY_INHERITANCE_MASK }
 
enum  ComputeNearFarMode { DO_NOT_COMPUTE_NEAR_FAR = 0, COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES, COMPUTE_NEAR_FAR_USING_PRIMITIVES, COMPUTE_NEAR_USING_PRIMITIVES }
 
enum  CullingModeValues {
  NO_CULLING = 0x0, VIEW_FRUSTUM_SIDES_CULLING = 0x1, NEAR_PLANE_CULLING = 0x2, FAR_PLANE_CULLING = 0x4,
  VIEW_FRUSTUM_CULLING, SMALL_FEATURE_CULLING = 0x8, SHADOW_OCCLUSION_CULLING = 0x10, CLUSTER_CULLING = 0x20,
  DEFAULT_CULLING, ENABLE_ALL_CULLING
}
 
typedef int InheritanceMask
 
typedef int CullingMode
 

Public Member Functions

 SceneView (osg::DisplaySettings *ds=NULL)
 Construct a default scene view. More...
 
 SceneView (const SceneView &sceneview, const osg::CopyOp &copyop=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::CameragetCamera ()
 Get the camera used to represent the camera view of this SceneView. More...
 
const osg::CameragetCamera () 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::NodegetSceneData (unsigned int childNo=0)
 Get the scene data to view. More...
 
const osg::NodegetSceneData (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::ViewportgetViewport ()
 Get the viewport. More...
 
const osg::ViewportgetViewport () const
 Get the const viewport. More...
 
void setDisplaySettings (osg::DisplaySettings *vs)
 Set the DisplaySettings. More...
 
const osg::DisplaySettingsgetDisplaySettings () const
 Get the const DisplaySettings. More...
 
osg::DisplaySettingsgetDisplaySettings ()
 Get the DisplaySettings. More...
 
void setClearColor (const osg::Vec4 &color)
 Set the color used in glClearColor(). More...
 
const osg::Vec4getClearColor () 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::StateSetgetGlobalStateSet ()
 
const osg::StateSetgetGlobalStateSet () const
 
void setSecondaryStateSet (osg::StateSet *state)
 
osg::StateSetgetSecondaryStateSet ()
 
const osg::StateSetgetSecondaryStateSet () const
 
void setLocalStateSet (osg::StateSet *state)
 
osg::StateSetgetLocalStateSet ()
 
const osg::StateSetgetLocalStateSet () 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::LightgetLight ()
 
const osg::LightgetLight () const
 
void setState (osg::State *state)
 
osg::StategetState ()
 
const osg::StategetState () const
 
void setView (osg::View *view)
 
osg::ViewgetView ()
 
const osg::ViewgetView () const
 
void setRenderInfo (osg::RenderInfo &renderInfo)
 
osg::RenderInfogetRenderInfo ()
 
const osg::RenderInfogetRenderInfo () 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::MatrixdgetProjectionMatrix ()
 Get the projection matrix. More...
 
const osg::MatrixdgetProjectionMatrix () 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 &center, const osg::Vec3 &up)
 Set the position and orientation components of the view matrix, using the same convention as gluLookAt. More...
 
osg::MatrixdgetViewMatrix ()
 Get the view matrix. More...
 
const osg::MatrixdgetViewMatrix () const
 Get the const view matrix. More...
 
void getViewMatrixAsLookAt (osg::Vec3 &eye, osg::Vec3 &center, 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::NodeVisitorgetInitVisitor ()
 
const osg::NodeVisitorgetInitVisitor () const
 
void setUpdateVisitor (osg::NodeVisitor *av)
 
osg::NodeVisitorgetUpdateVisitor ()
 
const osg::NodeVisitorgetUpdateVisitor () const
 
void setCullVisitor (osgUtil::CullVisitor *cv)
 
osgUtil::CullVisitorgetCullVisitor ()
 
const osgUtil::CullVisitorgetCullVisitor () const
 
void setCullVisitorLeft (osgUtil::CullVisitor *cv)
 
osgUtil::CullVisitorgetCullVisitorLeft ()
 
const osgUtil::CullVisitorgetCullVisitorLeft () const
 
void setCullVisitorRight (osgUtil::CullVisitor *cv)
 
osgUtil::CullVisitorgetCullVisitorRight ()
 
const osgUtil::CullVisitorgetCullVisitorRight () const
 
void setCollectOccludersVisitor (osg::CollectOccludersVisitor *cov)
 
osg::CollectOccludersVisitorgetCollectOccludersVisitor ()
 
const osg::CollectOccludersVisitorgetCollectOccludersVisitor () const
 
void setStateGraph (osgUtil::StateGraph *rg)
 
osgUtil::StateGraphgetStateGraph ()
 
const osgUtil::StateGraphgetStateGraph () const
 
void setStateGraphLeft (osgUtil::StateGraph *rg)
 
osgUtil::StateGraphgetStateGraphLeft ()
 
const osgUtil::StateGraphgetStateGraphLeft () const
 
void setStateGraphRight (osgUtil::StateGraph *rg)
 
osgUtil::StateGraphgetStateGraphRight ()
 
const osgUtil::StateGraphgetStateGraphRight () const
 
void setRenderStage (osgUtil::RenderStage *rs)
 
osgUtil::RenderStagegetRenderStage ()
 
const osgUtil::RenderStagegetRenderStage () const
 
void setRenderStageLeft (osgUtil::RenderStage *rs)
 
osgUtil::RenderStagegetRenderStageLeft ()
 
const osgUtil::RenderStagegetRenderStageLeft () const
 
void setRenderStageRight (osgUtil::RenderStage *rs)
 
osgUtil::RenderStagegetRenderStageRight ()
 
const osgUtil::RenderStagegetRenderStageRight () 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)
 
ComputeStereoMatricesCallbackgetComputeStereoMatricesCallback ()
 
const ComputeStereoMatricesCallbackgetComputeStereoMatricesCallback () 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::FrameStampgetFrameStamp ()
 Get the frame stamp for the current frame. More...
 
const osg::FrameStampgetFrameStamp () 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
 
- Public Member Functions inherited from osg::Object
 Object ()
 Construct an object. More...
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor, optional CopyOp object can be used to control shallow vs deep copying of dynamic data. More...
 
virtual ObjectcloneType () const =0
 Clone the type of an object, with Object* return type. More...
 
virtual Objectclone (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 NodeasNode ()
 Convert 'this' into a Node pointer if Object is a Node, otherwise return 0. More...
 
virtual const NodeasNode () const
 convert 'const this' into a const Node pointer if Object is a Node, otherwise return 0. More...
 
virtual NodeVisitorasNodeVisitor ()
 Convert 'this' into a NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0. More...
 
virtual const NodeVisitorasNodeVisitor () const
 convert 'const this' into a const NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0. More...
 
virtual StateAttributeasStateAttribute ()
 Convert 'this' into a StateAttribute pointer if Object is a StateAttribute, otherwise return 0. More...
 
virtual const StateAttributeasStateAttribute () const
 convert 'const this' into a const StateAttribute pointer if Object is a StateAttribute, otherwise return 0. More...
 
virtual UniformasUniform ()
 Convert 'this' into a Uniform pointer if Object is a Uniform, otherwise return 0. More...
 
virtual const UniformasUniform () 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::UserDataContainergetUserDataContainer ()
 get the UserDataContainer attached to this object. More...
 
const osg::UserDataContainergetUserDataContainer () const
 get the const UserDataContainer attached to this object. More...
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 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 ReferencedgetUserData ()
 Get user data. More...
 
virtual const ReferencedgetUserData () 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...
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (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...
 
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL. More...
 
ObserverSetgetOrCreateObserverSet () 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...
 
- Public Member Functions inherited from osg::CullSettings
 CullSettings ()
 
 CullSettings (ArgumentParser &arguments)
 
 CullSettings (const CullSettings &cs)
 
virtual ~CullSettings ()
 
CullSettingsoperator= (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...
 
ClampProjectionMatrixCallbackgetClampProjectionMatrixCallback ()
 get the non const ClampProjectionMatrixCallback. More...
 
const ClampProjectionMatrixCallbackgetClampProjectionMatrixCallback () const
 get the const ClampProjectionMatrixCallback. More...
 
void write (std::ostream &out)
 Write out internal settings of CullSettings. More...
 

Protected Member Functions

virtual ~SceneView ()
 
virtual bool cullStage (const osg::Matrixd &projection, const osg::Matrixd &modelview, osgUtil::CullVisitor *cullVisitor, osgUtil::StateGraph *rendergraph, osgUtil::RenderStage *renderStage, osg::Viewport *viewport)
 Do cull traversal of attached scene graph using Cull NodeVisitor. More...
 
void computeLeftEyeViewport (const osg::Viewport *viewport)
 
void computeRightEyeViewport (const osg::Viewport *viewport)
 
const osg::Matrix computeMVPW () const
 
void clearArea (int x, int y, int width, int height, const osg::Vec4 &color)
 
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
 Object destructor. More...
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

osg::ref_ptr< osg::StateSet_localStateSet
 
osg::RenderInfo _renderInfo
 
bool _initCalled
 
osg::ref_ptr< osg::NodeVisitor_initVisitor
 
osg::ref_ptr< osg::NodeVisitor_updateVisitor
 
osg::ref_ptr< osgUtil::CullVisitor_cullVisitor
 
osg::ref_ptr< osgUtil::StateGraph_stateGraph
 
osg::ref_ptr< osgUtil::RenderStage_renderStage
 
osg::ref_ptr< ComputeStereoMatricesCallback_computeStereoMatricesCallback
 
osg::ref_ptr< osgUtil::CullVisitor_cullVisitorLeft
 
osg::ref_ptr< osgUtil::StateGraph_stateGraphLeft
 
osg::ref_ptr< osgUtil::RenderStage_renderStageLeft
 
osg::ref_ptr< osg::Viewport_viewportLeft
 
osg::ref_ptr< osgUtil::CullVisitor_cullVisitorRight
 
osg::ref_ptr< osgUtil::StateGraph_stateGraphRight
 
osg::ref_ptr< osgUtil::RenderStage_renderStageRight
 
osg::ref_ptr< osg::Viewport_viewportRight
 
osg::ref_ptr< osg::CollectOccludersVisitor_collectOccludersVisitor
 
osg::ref_ptr< osg::FrameStamp_frameStamp
 
osg::observer_ptr< osg::Camera_camera
 
osg::ref_ptr< osg::Camera_cameraWithOwnership
 
osg::ref_ptr< osg::StateSet_globalStateSet
 
osg::ref_ptr< osg::Light_light
 
osg::ref_ptr< osg::DisplaySettings_displaySettings
 
osg::ref_ptr< osg::StateSet_secondaryStateSet
 
FusionDistanceMode _fusionDistanceMode
 
float _fusionDistanceValue
 
LightingMode _lightingMode
 
bool _prioritizeTextures
 
bool _automaticFlush
 
bool _requiresFlush
 
int _activeUniforms
 
double _previousFrameTime
 
double _previousSimulationTime
 
bool _redrawInterlacedStereoStencilMask
 
int _interlacedStereoStencilWidth
 
int _interlacedStereoStencilHeight
 
unsigned int _dynamicObjectCount
 
bool _resetColorMaskToAllEnabled
 
- 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
 
- Protected Attributes inherited from osg::CullSettings
InheritanceMask _inheritanceMask
 
InheritanceMaskActionOnAttributeSetting _inheritanceMaskActionOnAttributeSetting
 
ComputeNearFarMode _computeNearFar
 
CullingMode _cullingMode
 
float _LODScale
 
float _smallFeatureCullingPixelSize
 
ref_ptr< ClampProjectionMatrixCallback_clampProjectionMatrixCallback
 
double _nearFarRatio
 
bool _impostorActive
 
bool _depthSortImpostorSprites
 
float _impostorPixelErrorThreshold
 
int _numFramesToKeepImpostorSprites
 
Node::NodeMask _cullMask
 
Node::NodeMask _cullMaskLeft
 
Node::NodeMask _cullMaskRight
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::Mutex * getGlobalReferencedMutex ()
 Get the optional global Referenced mutex, this can be shared between all osg::Referenced. More...
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 Set whether reference counting should use a mutex for thread safe reference counting. More...
 
static bool getThreadSafeReferenceCounting ()
 Get whether reference counting is active. More...
 
static void setDeleteHandler (DeleteHandler *handler)
 Set a DeleteHandler to which deletion of all referenced counted objects will be delegated. More...
 
static DeleteHandlergetDeleteHandler ()
 Get a DeleteHandler. More...
 

Detailed Description

SceneView is deprecated, and is now just kept for backwards compatibility.

It is recommend that you use osgViewer::Viewer/Composite in combination with osgViewer::GraphicsWindowEmbedded for embedded rendering support as this provides a greater range of functionality and consistency of API.

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
FRAME_NUMBER_UNIFORM 
FRAME_TIME_UNIFORM 
DELTA_FRAME_TIME_UNIFORM 
SIMULATION_TIME_UNIFORM 
DELTA_SIMULATION_TIME_UNIFORM 
VIEW_MATRIX_UNIFORM 
VIEW_MATRIX_INVERSE_UNIFORM 
DEFAULT_UNIFORMS 
ALL_UNIFORMS 

FusionDistanceMode is used only when working in stereo.

Enumerator
USE_FUSION_DISTANCE_VALUE 

Use fusion distance from the value set on the SceneView.

PROPORTIONAL_TO_SCREEN_DISTANCE 

Compute the fusion distance by multiplying the screen distance by the fusion distance value.

Enumerator
NO_SCENEVIEW_LIGHT 
HEADLIGHT 
SKY_LIGHT 
COMPILE_GLOBJECTS_AT_INIT 
APPLY_GLOBAL_DEFAULTS 
CLEAR_GLOBAL_STATESET 
STANDARD_SETTINGS 

Constructor & Destructor Documentation

osgUtil::SceneView::SceneView ( osg::DisplaySettings ds = NULL)

Construct a default scene view.

osgUtil::SceneView::SceneView ( const SceneView sceneview,
const osg::CopyOp copyop = osg::CopyOp() 
)
virtual osgUtil::SceneView::~SceneView ( )
protectedvirtual

Member Function Documentation

void osgUtil::SceneView::clearArea ( int  x,
int  y,
int  width,
int  height,
const osg::Vec4 color 
)
protected
void osgUtil::SceneView::clearReferencesToDependentCameras ( )

clear the refence to any any dependent cameras.

void osgUtil::SceneView::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.

osg::Matrixd osgUtil::SceneView::computeLeftEyeProjection ( const osg::Matrixd projection) const
inline
virtual osg::Matrixd osgUtil::SceneView::computeLeftEyeProjectionImplementation ( const osg::Matrixd projection) const
virtual

helper function for computing the left eye projection matrix.

osg::Matrixd osgUtil::SceneView::computeLeftEyeView ( const osg::Matrixd view) const
inline
virtual osg::Matrixd osgUtil::SceneView::computeLeftEyeViewImplementation ( const osg::Matrixd view) const
virtual

helper function for computing the left eye view matrix.

void osgUtil::SceneView::computeLeftEyeViewport ( const osg::Viewport viewport)
protected
const osg::Matrix osgUtil::SceneView::computeMVPW ( ) const
protected
osg::Matrixd osgUtil::SceneView::computeRightEyeProjection ( const osg::Matrixd projection) const
inline
virtual osg::Matrixd osgUtil::SceneView::computeRightEyeProjectionImplementation ( const osg::Matrixd projection) const
virtual

helper function for computing the right eye view matrix.

osg::Matrixd osgUtil::SceneView::computeRightEyeView ( const osg::Matrixd view) const
inline
virtual osg::Matrixd osgUtil::SceneView::computeRightEyeViewImplementation ( const osg::Matrixd view) const
virtual

helper function for computing the right eye view matrix.

void osgUtil::SceneView::computeRightEyeViewport ( const osg::Viewport viewport)
protected
virtual void osgUtil::SceneView::cull ( )
virtual

Do cull traversal of the attached scene graph using Cull NodeVisitor.

virtual bool osgUtil::SceneView::cullStage ( const osg::Matrixd projection,
const osg::Matrixd modelview,
osgUtil::CullVisitor cullVisitor,
osgUtil::StateGraph rendergraph,
osgUtil::RenderStage renderStage,
osg::Viewport viewport 
)
protectedvirtual

Do cull traversal of attached scene graph using Cull NodeVisitor.

Return true if computeNearFar has been done during the cull traversal.

virtual void osgUtil::SceneView::draw ( )
virtual

Do draw traversal of draw bins generated by cull traversal.

virtual void osgUtil::SceneView::flushAllDeletedGLObjects ( )
virtual

Flush all deleted OpenGL objects, such as texture objects, display lists, etc.

virtual void osgUtil::SceneView::flushDeletedGLObjects ( double &  availableTime)
virtual

Flush deleted OpenGL objects, such as texture objects, display lists, etc., within the specified available time.

int osgUtil::SceneView::getActiveUniforms ( ) const
inline

Get the uniforms that SceneView should set set up on each frame.

bool osgUtil::SceneView::getAutomaticFlush ( ) const
inline
osg::Camera* osgUtil::SceneView::getCamera ( )
inline

Get the camera used to represent the camera view of this SceneView.

const osg::Camera* osgUtil::SceneView::getCamera ( ) const
inline

Get the const camera used to represent the camera view of this SceneView.

const osg::Vec4& osgUtil::SceneView::getClearColor ( ) const
inline

Get the color used in glClearColor.

osg::CollectOccludersVisitor* osgUtil::SceneView::getCollectOccludersVisitor ( )
inline
const osg::CollectOccludersVisitor* osgUtil::SceneView::getCollectOccludersVisitor ( ) const
inline
ComputeStereoMatricesCallback* osgUtil::SceneView::getComputeStereoMatricesCallback ( )
inline
const ComputeStereoMatricesCallback* osgUtil::SceneView::getComputeStereoMatricesCallback ( ) const
inline
osgUtil::CullVisitor* osgUtil::SceneView::getCullVisitor ( )
inline
const osgUtil::CullVisitor* osgUtil::SceneView::getCullVisitor ( ) const
inline
osgUtil::CullVisitor* osgUtil::SceneView::getCullVisitorLeft ( )
inline
const osgUtil::CullVisitor* osgUtil::SceneView::getCullVisitorLeft ( ) const
inline
osgUtil::CullVisitor* osgUtil::SceneView::getCullVisitorRight ( )
inline
const osgUtil::CullVisitor* osgUtil::SceneView::getCullVisitorRight ( ) const
inline
const osg::DisplaySettings* osgUtil::SceneView::getDisplaySettings ( ) const
inline

Get the const DisplaySettings.

osg::DisplaySettings* osgUtil::SceneView::getDisplaySettings ( )
inline

Get the DisplaySettings.

GLenum osgUtil::SceneView::getDrawBufferValue ( ) const
inline

Get the draw buffer value used at the start of each frame draw.

unsigned int osgUtil::SceneView::getDynamicObjectCount ( ) const
inline

Compute the number of dynamic objects that will be held in the rendering backend.

osg::FrameStamp* osgUtil::SceneView::getFrameStamp ( )
inline

Get the frame stamp for the current frame.

const osg::FrameStamp* osgUtil::SceneView::getFrameStamp ( ) const
inline

Get the const frame stamp for the current frame.

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

Get the FusionDistanceMode.

float osgUtil::SceneView::getFusionDistanceValue ( ) const
inline

Get the FusionDistanceValue.

Note, only used for USE_FUSION_DISTANCE_VALUE & PROPORTIONAL_TO_SCREEN_DISTANCE modes.

osg::StateSet* osgUtil::SceneView::getGlobalStateSet ( )
inline
const osg::StateSet* osgUtil::SceneView::getGlobalStateSet ( ) const
inline
osg::NodeVisitor* osgUtil::SceneView::getInitVisitor ( )
inline
const osg::NodeVisitor* osgUtil::SceneView::getInitVisitor ( ) const
inline
osg::Light* osgUtil::SceneView::getLight ( )
inline
const osg::Light* osgUtil::SceneView::getLight ( ) const
inline
LightingMode osgUtil::SceneView::getLightingMode ( ) const
inline
osg::StateSet* osgUtil::SceneView::getLocalStateSet ( )
inline
const osg::StateSet* osgUtil::SceneView::getLocalStateSet ( ) const
inline
unsigned int osgUtil::SceneView::getNumSceneData ( ) const
inline

Get the number of scene data subgraphs added to the SceneView's camera.

bool osgUtil::SceneView::getPrioritizeTextures ( ) const
inline

Get whether the draw method should call renderer->prioritizeTexture.

osg::Matrixd& osgUtil::SceneView::getProjectionMatrix ( )
inline

Get the projection matrix.

const osg::Matrixd& osgUtil::SceneView::getProjectionMatrix ( ) const
inline

Get the const projection matrix.

bool osgUtil::SceneView::getProjectionMatrixAsFrustum ( double &  left,
double &  right,
double &  bottom,
double &  top,
double &  zNear,
double &  zFar 
) const

Get the frustum setting of a perspective projection matrix.

Returns false if matrix is not a perspective matrix, where parameter values are undefined.

bool osgUtil::SceneView::getProjectionMatrixAsOrtho ( double &  left,
double &  right,
double &  bottom,
double &  top,
double &  zNear,
double &  zFar 
) const

Get the orthographic settings of the orthographic projection matrix.

Returns false if matrix is not an orthographic matrix, where parameter values are undefined.

bool osgUtil::SceneView::getProjectionMatrixAsPerspective ( double &  fovy,
double &  aspectRatio,
double &  zNear,
double &  zFar 
) const

Get the frustum setting of a symmetric perspective projection matrix.

Returns false if matrix is not a perspective matrix, where parameter values are undefined. Note, if matrix is not a symmetric perspective matrix then the shear will be lost. Asymmetric matrices occur when stereo, power walls, caves and reality center display are used. In these configurations one should use the 'getProjectionMatrixAsFrustum' method instead.

bool osgUtil::SceneView::getRedrawInterlacedStereoStencilMask ( ) const
inline

Get the redraw interlaced stereo stencil mask request flag.

osg::RenderInfo& osgUtil::SceneView::getRenderInfo ( )
inline
const osg::RenderInfo& osgUtil::SceneView::getRenderInfo ( ) const
inline
osgUtil::RenderStage* osgUtil::SceneView::getRenderStage ( )
inline
const osgUtil::RenderStage* osgUtil::SceneView::getRenderStage ( ) const
inline
osgUtil::RenderStage* osgUtil::SceneView::getRenderStageLeft ( )
inline
const osgUtil::RenderStage* osgUtil::SceneView::getRenderStageLeft ( ) const
inline
osgUtil::RenderStage* osgUtil::SceneView::getRenderStageRight ( )
inline
const osgUtil::RenderStage* osgUtil::SceneView::getRenderStageRight ( ) const
inline
bool osgUtil::SceneView::getResetColorMaskToAllOn ( ) const
inline
osg::Node* osgUtil::SceneView::getSceneData ( unsigned int  childNo = 0)
inline

Get the scene data to view.

The data will typically be an osg::Scene but can be any osg::Node type.

const osg::Node* osgUtil::SceneView::getSceneData ( unsigned int  childNo = 0) const
inline

Get the const scene data which to view.

The data will typically be an osg::Scene but can be any osg::Node type.

osg::StateSet* osgUtil::SceneView::getSecondaryStateSet ( )
inline
const osg::StateSet* osgUtil::SceneView::getSecondaryStateSet ( ) const
inline
osg::State* osgUtil::SceneView::getState ( )
inline
const osg::State* osgUtil::SceneView::getState ( ) const
inline
osgUtil::StateGraph* osgUtil::SceneView::getStateGraph ( )
inline
const osgUtil::StateGraph* osgUtil::SceneView::getStateGraph ( ) const
inline
osgUtil::StateGraph* osgUtil::SceneView::getStateGraphLeft ( )
inline
const osgUtil::StateGraph* osgUtil::SceneView::getStateGraphLeft ( ) const
inline
osgUtil::StateGraph* osgUtil::SceneView::getStateGraphRight ( )
inline
const osgUtil::StateGraph* osgUtil::SceneView::getStateGraphRight ( ) const
inline
bool osgUtil::SceneView::getStats ( Statistics primStats)

Extract stats for current draw list.

osg::NodeVisitor* osgUtil::SceneView::getUpdateVisitor ( )
inline
const osg::NodeVisitor* osgUtil::SceneView::getUpdateVisitor ( ) const
inline
osg::View* osgUtil::SceneView::getView ( )
inline
const osg::View* osgUtil::SceneView::getView ( ) const
inline
osg::Matrixd& osgUtil::SceneView::getViewMatrix ( )
inline

Get the view matrix.

const osg::Matrixd& osgUtil::SceneView::getViewMatrix ( ) const
inline

Get the const view matrix.

void osgUtil::SceneView::getViewMatrixAsLookAt ( osg::Vec3 eye,
osg::Vec3 center,
osg::Vec3 up,
float  lookDistance = 1.0f 
) const

Get the position and orientation components of a modelview matrix, using the same convention as gluLookAt.

osg::Viewport* osgUtil::SceneView::getViewport ( )
inline

Get the viewport.

const osg::Viewport* osgUtil::SceneView::getViewport ( ) const
inline

Get the const viewport.

virtual void osgUtil::SceneView::inheritCullSettings ( const osg::CullSettings settings)
inlinevirtual

Inherit the local cull settings variable from a specified CullSettings object, according to the inheritance mask.

Reimplemented from osg::CullSettings.

virtual void osgUtil::SceneView::inheritCullSettings ( const osg::CullSettings settings,
unsigned int  inheritanceMask 
)
virtual

Inherit the local cull settings variable from a specified CullSettings object, according to the inheritance mask.

Reimplemented from osg::CullSettings.

virtual void osgUtil::SceneView::init ( )
virtual

Do init traversal of the attached scene graph using Init NodeVisitor.

The init traversal is called once for each SceneView, and should be used to compile display lists, texture objects and intialize data not otherwise intialized during scene graph loading. Note, is called automatically by update & cull if it hasn't already been called elsewhere. Also init() should only ever be called within a valid graphics context.

osgUtil::SceneView::META_Object ( osgUtil  ,
SceneView   
)
bool osgUtil::SceneView::projectObjectIntoWindow ( const osg::Vec3 object,
osg::Vec3 window 
) const

Calculate the window coordinates of a point in object coordinates.

Note, current implementation requires that SceneView::draw() has been previously called for projectWindowIntoObject to produce valid values. Consistent with OpenGL, window coordinates are calculated relative to the bottom left of the window, whereas window API's normally have the top left as the origin, so you may need to pass in (mouseX,window_height-mouseY,...). Returns true on successful projection.

bool osgUtil::SceneView::projectWindowIntoObject ( const osg::Vec3 window,
osg::Vec3 object 
) const

Calculate the object coordinates of a point in window coordinates.

Note, current implementation requires that SceneView::draw() has been previously called for projectWindowIntoObject to produce valid values. Consistent with OpenGL, window coordinates are calculated relative to the bottom left of the window. Returns true on successful projection.

bool osgUtil::SceneView::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.

Note, current implementation requires that SceneView::draw() has been previously called for projectWindowIntoObject to produce valid values. Consistent with OpenGL, window coordinates are calculated relative to the bottom left of the window. Returns true on successful projection.

virtual void osgUtil::SceneView::releaseAllGLObjects ( )
virtual

Release all OpenGL objects from the scene graph, such as texture objects, display lists, etc.

These released scene graphs are placed in the respective delete GLObjects cache, and then need to be deleted in OpenGL by SceneView::flushAllDeleteGLObjects().

void osgUtil::SceneView::setActiveUniforms ( int  activeUniforms)
inline

Set the uniforms that SceneView should set set up on each frame.

void osgUtil::SceneView::setAutomaticFlush ( bool  automaticFlush)
inline

Set whether the SceneView should automatically call flushDeletedObjects() on each new frame.

void osgUtil::SceneView::setCamera ( osg::Camera camera,
bool  assumeOwnershipOfCamera = true 
)

Set the camera used to represent the camera view of this SceneView.

void osgUtil::SceneView::setClearColor ( const osg::Vec4 color)
inline

Set the color used in glClearColor().

Defaults to an off blue color.

void osgUtil::SceneView::setCollectOccludersVisitor ( osg::CollectOccludersVisitor cov)
inline
void osgUtil::SceneView::setComputeStereoMatricesCallback ( ComputeStereoMatricesCallback callback)
inline
void osgUtil::SceneView::setCullVisitor ( osgUtil::CullVisitor cv)
inline
void osgUtil::SceneView::setCullVisitorLeft ( osgUtil::CullVisitor cv)
inline
void osgUtil::SceneView::setCullVisitorRight ( osgUtil::CullVisitor cv)
inline
virtual void osgUtil::SceneView::setDefaults ( )
inlinevirtual

Reimplemented from osg::CullSettings.

virtual void osgUtil::SceneView::setDefaults ( unsigned int  options)
virtual

Set scene view to use default global state, light, camera and render visitor.

void osgUtil::SceneView::setDisplaySettings ( osg::DisplaySettings vs)
inline

Set the DisplaySettings.

void osgUtil::SceneView::setDrawBufferValue ( GLenum  drawBufferValue)
inline

Set the draw buffer value used at the start of each frame draw.

Note, overridden in quad buffer stereo mode

void osgUtil::SceneView::setFrameStamp ( osg::FrameStamp fs)
inline

Set the frame stamp for the current frame.

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

Set the FusionDistanceMode and Value.

Note, is used only when working in stereo.

void osgUtil::SceneView::setGlobalStateSet ( osg::StateSet state)
inline
void osgUtil::SceneView::setInitVisitor ( osg::NodeVisitor av)
inline
void osgUtil::SceneView::setLight ( osg::Light light)
inline
void osgUtil::SceneView::setLightingMode ( LightingMode  mode)
void osgUtil::SceneView::setLocalStateSet ( osg::StateSet state)
inline
void osgUtil::SceneView::setPrioritizeTextures ( bool  pt)
inline

Set whether the draw method should call renderer->prioritizeTexture.

void osgUtil::SceneView::setProjectionMatrix ( const osg::Matrixf matrix)
inline

Set the projection matrix.

Can be thought of as setting the lens of a camera.

void osgUtil::SceneView::setProjectionMatrix ( const osg::Matrixd matrix)
inline

Set the projection matrix.

Can be thought of as setting the lens of a camera.

void osgUtil::SceneView::setProjectionMatrixAsFrustum ( double  left,
double  right,
double  bottom,
double  top,
double  zNear,
double  zFar 
)

Set to a perspective projection.

See OpenGL glFrustum documentation for further details.

void osgUtil::SceneView::setProjectionMatrixAsOrtho ( double  left,
double  right,
double  bottom,
double  top,
double  zNear,
double  zFar 
)

Set to an orthographic projection.

See OpenGL glOrtho documentation for further details.

void osgUtil::SceneView::setProjectionMatrixAsOrtho2D ( double  left,
double  right,
double  bottom,
double  top 
)

Set to a 2D orthographic projection.

See OpenGL glOrtho2D documentation for further details.

void osgUtil::SceneView::setProjectionMatrixAsPerspective ( double  fovy,
double  aspectRatio,
double  zNear,
double  zFar 
)

Create a symmetrical perspective projection, See OpenGL gluPerspective documentation for further details.

Aspect ratio is defined as width/height.

void osgUtil::SceneView::setRedrawInterlacedStereoStencilMask ( bool  flag)
inline

Manually set the redraw interlaced stereo stencil mask request flag to control whether to redraw the stencil buffer on the next frame.

void osgUtil::SceneView::setRenderInfo ( osg::RenderInfo renderInfo)
inline
void osgUtil::SceneView::setRenderStage ( osgUtil::RenderStage rs)
inline
void osgUtil::SceneView::setRenderStageLeft ( osgUtil::RenderStage rs)
inline
void osgUtil::SceneView::setRenderStageRight ( osgUtil::RenderStage rs)
inline
void osgUtil::SceneView::setResetColorMaskToAllOn ( bool  enable)
inline
void osgUtil::SceneView::setSceneData ( osg::Node node)

Set the data to view.

The data will typically be an osg::Scene but can be any osg::Node type.

void osgUtil::SceneView::setSecondaryStateSet ( osg::StateSet state)
inline
void osgUtil::SceneView::setState ( osg::State state)
inline
void osgUtil::SceneView::setStateGraph ( osgUtil::StateGraph rg)
inline
void osgUtil::SceneView::setStateGraphLeft ( osgUtil::StateGraph rg)
inline
void osgUtil::SceneView::setStateGraphRight ( osgUtil::StateGraph rg)
inline
void osgUtil::SceneView::setUpdateVisitor ( osg::NodeVisitor av)
inline
void osgUtil::SceneView::setView ( osg::View view)
inline
void osgUtil::SceneView::setViewMatrix ( const osg::Matrixf matrix)
inline

Set the view matrix.

Can be thought of as setting the position of the world relative to the camera in camera coordinates.

void osgUtil::SceneView::setViewMatrix ( const osg::Matrixd matrix)
inline

Set the view matrix.

Can be thought of as setting the position of the world relative to the camera in camera coordinates.

void osgUtil::SceneView::setViewMatrixAsLookAt ( const osg::Vec3 eye,
const osg::Vec3 center,
const osg::Vec3 up 
)

Set the position and orientation components of the view matrix, using the same convention as gluLookAt.

void osgUtil::SceneView::setViewport ( osg::Viewport viewport)
inline

Set the viewport of the scene view to use specified osg::Viewport.

void osgUtil::SceneView::setViewport ( int  x,
int  y,
int  width,
int  height 
)
inline

Set the viewport of the scene view to specified dimensions.

virtual void osgUtil::SceneView::update ( )
virtual

Do app traversal of the attached scene graph using App NodeVisitor.

void osgUtil::SceneView::updateUniforms ( )

Member Data Documentation

int osgUtil::SceneView::_activeUniforms
protected
bool osgUtil::SceneView::_automaticFlush
protected
osg::observer_ptr<osg::Camera> osgUtil::SceneView::_camera
protected
osg::ref_ptr<osg::Camera> osgUtil::SceneView::_cameraWithOwnership
protected
osg::ref_ptr<osg::CollectOccludersVisitor> osgUtil::SceneView::_collectOccludersVisitor
protected
osg::ref_ptr<ComputeStereoMatricesCallback> osgUtil::SceneView::_computeStereoMatricesCallback
protected
osg::ref_ptr<osgUtil::CullVisitor> osgUtil::SceneView::_cullVisitor
protected
osg::ref_ptr<osgUtil::CullVisitor> osgUtil::SceneView::_cullVisitorLeft
protected
osg::ref_ptr<osgUtil::CullVisitor> osgUtil::SceneView::_cullVisitorRight
protected
osg::ref_ptr<osg::DisplaySettings> osgUtil::SceneView::_displaySettings
protected
unsigned int osgUtil::SceneView::_dynamicObjectCount
protected
osg::ref_ptr<osg::FrameStamp> osgUtil::SceneView::_frameStamp
protected
FusionDistanceMode osgUtil::SceneView::_fusionDistanceMode
protected
float osgUtil::SceneView::_fusionDistanceValue
protected
osg::ref_ptr<osg::StateSet> osgUtil::SceneView::_globalStateSet
protected
bool osgUtil::SceneView::_initCalled
protected
osg::ref_ptr<osg::NodeVisitor> osgUtil::SceneView::_initVisitor
protected
int osgUtil::SceneView::_interlacedStereoStencilHeight
protected
int osgUtil::SceneView::_interlacedStereoStencilWidth
protected
osg::ref_ptr<osg::Light> osgUtil::SceneView::_light
protected
LightingMode osgUtil::SceneView::_lightingMode
protected
osg::ref_ptr<osg::StateSet> osgUtil::SceneView::_localStateSet
protected
double osgUtil::SceneView::_previousFrameTime
protected
double osgUtil::SceneView::_previousSimulationTime
protected
bool osgUtil::SceneView::_prioritizeTextures
protected
bool osgUtil::SceneView::_redrawInterlacedStereoStencilMask
protected
osg::RenderInfo osgUtil::SceneView::_renderInfo
protected
osg::ref_ptr<osgUtil::RenderStage> osgUtil::SceneView::_renderStage
protected
osg::ref_ptr<osgUtil::RenderStage> osgUtil::SceneView::_renderStageLeft
protected
osg::ref_ptr<osgUtil::RenderStage> osgUtil::SceneView::_renderStageRight
protected
bool osgUtil::SceneView::_requiresFlush
protected
bool osgUtil::SceneView::_resetColorMaskToAllEnabled
protected
osg::ref_ptr<osg::StateSet> osgUtil::SceneView::_secondaryStateSet
protected
osg::ref_ptr<osgUtil::StateGraph> osgUtil::SceneView::_stateGraph
protected
osg::ref_ptr<osgUtil::StateGraph> osgUtil::SceneView::_stateGraphLeft
protected
osg::ref_ptr<osgUtil::StateGraph> osgUtil::SceneView::_stateGraphRight
protected
osg::ref_ptr<osg::NodeVisitor> osgUtil::SceneView::_updateVisitor
protected
osg::ref_ptr<osg::Viewport> osgUtil::SceneView::_viewportLeft
protected
osg::ref_ptr<osg::Viewport> osgUtil::SceneView::_viewportRight
protected

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

osg logo
Generated at Wed Nov 11 2015 22:15:18 for the OpenSceneGraph by doxygen 1.8.10.