|
Public Types |
typedef Options | LightingMode |
enum | Options {
NO_SCENEVIEW_LIGHT = 0x0,
HEADLIGHT = 0x1,
SKY_LIGHT = 0x2,
COMPILE_GLOBJECTS_AT_INIT = 0x4,
STANDARD_SETTINGS
} |
enum | FusionDistanceMode { USE_FUSION_DISTANCE_VALUE,
PROPORTIONAL_TO_SCREEN_DISTANCE
} |
Public Member Functions |
| SceneView (osg::DisplaySettings *ds=NULL) |
void | setDefaults (unsigned int options=STANDARD_SETTINGS) |
void | setSceneData (osg::Node *node) |
osg::Node * | getSceneData () |
const osg::Node * | getSceneData () const |
void | setViewport (osg::Viewport *viewport) |
void | setViewport (int x, int y, int width, int height) |
const osg::Viewport * | getViewport () const |
osg::Viewport * | getViewport () |
void | getViewport (int &x, int &y, int &width, int &height) const |
void | setDisplaySettings (osg::DisplaySettings *vs) |
const osg::DisplaySettings * | getDisplaySettings () const |
osg::DisplaySettings * | getDisplaySettings () |
void | setClearColor (const osg::Vec4 &color) |
const osg::Vec4 & | getClearColor () const |
void | setGlobalStateSet (osg::StateSet *state) |
osg::StateSet * | getGlobalStateSet () |
const osg::StateSet * | getGlobalStateSet () const |
void | setLocalStateSet (osg::StateSet *state) |
osg::StateSet * | getLocalStateSet () |
const osg::StateSet * | getLocalStateSet () const |
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 | setProjectionMatrix (const osg::Matrixf &matrix) |
void | setProjectionMatrix (const osg::Matrixd &matrix) |
void | setProjectionMatrixAsOrtho (double left, double right, double bottom, double top, double zNear, double zFar) |
void | setProjectionMatrixAsOrtho2D (double left, double right, double bottom, double top) |
void | setProjectionMatrixAsFrustum (double left, double right, double bottom, double top, double zNear, double zFar) |
void | setProjectionMatrixAsPerspective (double fovy, double aspectRatio, double zNear, double zFar) |
osg::Matrixd & | getProjectionMatrix () |
const osg::Matrixd & | getProjectionMatrix () const |
bool | getProjectionMatrixAsOrtho (double &left, double &right, double &bottom, double &top, double &zNear, double &zFar) |
bool | getProjectionMatrixAsFrustum (double &left, double &right, double &bottom, double &top, double &zNear, double &zFar) |
bool | getProjectionMatrixAsPerspective (double &fovy, double &aspectRatio, double &zNear, double &zFar) |
void | setViewMatrix (const osg::Matrixf &matrix) |
void | setViewMatrix (const osg::Matrixd &matrix) |
void | setViewMatrixAsLookAt (const osg::Vec3 &eye, const osg::Vec3 ¢er, const osg::Vec3 &up) |
osg::Matrixd & | getViewMatrix () |
const osg::Matrixd & | getViewMatrix () const |
void | getViewMatrixAsLookAt (osg::Vec3 &eye, osg::Vec3 ¢er, osg::Vec3 &up, float lookDistance=1.0f) |
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 | setRenderGraph (osgUtil::RenderGraph *rg) |
osgUtil::RenderGraph * | getRenderGraph () |
const osgUtil::RenderGraph * | getRenderGraph () const |
void | setRenderGraphLeft (osgUtil::RenderGraph *rg) |
osgUtil::RenderGraph * | getRenderGraphLeft () |
const osgUtil::RenderGraph * | getRenderGraphLeft () const |
void | setRenderGraphRight (osgUtil::RenderGraph *rg) |
osgUtil::RenderGraph * | getRenderGraphRight () |
const osgUtil::RenderGraph * | getRenderGraphRight () 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 | setDrawBufferValue (GLenum drawBufferValue) |
GLenum | getDrawBufferValue () const |
void | setFusionDistance (FusionDistanceMode mode, float value=1.0f) |
FusionDistanceMode | getFusionDistanceMode () const |
float | getFusionDistanceValue () const |
void | setPrioritizeTextures (bool pt) |
bool | getPrioritizeTextures () const |
void | setComputeStereoMatricesCallback (ComputeStereoMatricesCallback *callback) |
ComputeStereoMatricesCallback * | getComputeStereoMatricesCallback () |
const ComputeStereoMatricesCallback * | getComputeStereoMatricesCallback () const |
bool | projectWindowIntoObject (const osg::Vec3 &window, osg::Vec3 &object) const |
bool | projectWindowXYIntoObject (int x, int y, osg::Vec3 &near_point, osg::Vec3 &far_point) const |
bool | projectObjectIntoWindow (const osg::Vec3 &object, osg::Vec3 &window) const |
void | setFrameStamp (osg::FrameStamp *fs) |
const osg::FrameStamp * | getFrameStamp () const |
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 |
virtual osg::Matrixd | computeLeftEyeViewImplementation (const osg::Matrixd &view) const |
virtual osg::Matrixd | computeRightEyeProjectionImplementation (const osg::Matrixd &projection) const |
virtual osg::Matrixd | computeRightEyeViewImplementation (const osg::Matrixd &view) const |
virtual void | init () |
virtual void | update () |
virtual void | cull () |
virtual void | draw () |
virtual void | releaseAllGLObjects () |
virtual void | flushAllDeletedGLObjects () |
virtual void | flushDeletedGLObjects (double &availableTime) |
Protected Member Functions |
virtual | ~SceneView () |
virtual void | cullStage (const osg::Matrixd &projection, const osg::Matrixd &modelview, osgUtil::CullVisitor *cullVisitor, osgUtil::RenderGraph *rendergraph, osgUtil::RenderStage *renderStage) |
const osg::Matrix | computeMVPW () const |
void | clearArea (int x, int y, int width, int height, const osg::Vec4 &color) |
Protected Attributes |
osg::ref_ptr< osg::StateSet > | _localStateSet |
osg::ref_ptr< osg::State > | _state |
osg::Matrixd | _projectionMatrix |
osg::Matrixd | _viewMatrix |
bool | _initCalled |
osg::ref_ptr< osg::NodeVisitor > | _initVisitor |
osg::ref_ptr< osg::NodeVisitor > | _updateVisitor |
osg::ref_ptr< osgUtil::CullVisitor > | _cullVisitor |
osg::ref_ptr< osgUtil::RenderGraph > | _rendergraph |
osg::ref_ptr< osgUtil::RenderStage > | _renderStage |
osg::ref_ptr< ComputeStereoMatricesCallback > | _computeStereoMatricesCallback |
osg::ref_ptr< osgUtil::CullVisitor > | _cullVisitorLeft |
osg::ref_ptr< osgUtil::RenderGraph > | _rendergraphLeft |
osg::ref_ptr< osgUtil::RenderStage > | _renderStageLeft |
osg::ref_ptr< osgUtil::CullVisitor > | _cullVisitorRight |
osg::ref_ptr< osgUtil::RenderGraph > | _rendergraphRight |
osg::ref_ptr< osgUtil::RenderStage > | _renderStageRight |
osg::ref_ptr< osg::CollectOccludersVisitor > | _collectOccludersVisistor |
osg::ref_ptr< osg::FrameStamp > | _frameStamp |
osg::ref_ptr< osg::Node > | _sceneData |
osg::ref_ptr< osg::StateSet > | _globalStateSet |
osg::ref_ptr< osg::Light > | _light |
osg::ref_ptr< osg::DisplaySettings > | _displaySettings |
osg::Vec4 | _clearColor |
FusionDistanceMode | _fusionDistanceMode |
float | _fusionDistanceValue |
osg::ref_ptr< osg::Viewport > | _viewport |
LightingMode | _lightingMode |
bool | _prioritizeTextures |
GLenum | _drawBufferValue |
bool | _requiresFlush |
Classes |
struct | ComputeStereoMatricesCallback |