From 1369987cdd96464af2ff5b54a15bc95f205edbaa Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 9 Apr 2002 21:46:34 +0000 Subject: [PATCH] Added setProjectionMatrix and setModelViewMatrix() methods to osg::SceneView, and associated member variables. I have not linked them up to the cull traversal yet, but this will be the next task. --- include/osgUtil/SceneView | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/osgUtil/SceneView b/include/osgUtil/SceneView index 8bcd9aafb..8e76f8133 100644 --- a/include/osgUtil/SceneView +++ b/include/osgUtil/SceneView @@ -122,6 +122,13 @@ class OSGUTIL_EXPORT SceneView : public osg::Referenced osg::Camera* getCamera() { return _camera.get(); } const osg::Camera* getCamera() const { return _camera.get(); } + void setProjectionMatrix(osg::Matrix* matrix) { _projectionMatrix = matrix; } + osg::Matrix* getProjectionMatrix() { return _projectionMatrix.get(); } + const osg::Matrix* getProjectionMatrix() const { return _projectionMatrix.get(); } + + void setModelViewMatrix(osg::Matrix* matrix) { _modelviewMatrix = matrix; } + osg::Matrix* getModelViewMatrix() { return _modelviewMatrix.get(); } + const osg::Matrix* getModelViewMatrix() const { return _modelviewMatrix.get(); } void setInitVisitor(osg::NodeVisitor* av) { _initVisitor = av; } @@ -240,6 +247,8 @@ class OSGUTIL_EXPORT SceneView : public osg::Referenced osg::ref_ptr _globalState; osg::ref_ptr _light; osg::ref_ptr _camera; + osg::ref_ptr _projectionMatrix; + osg::ref_ptr _modelviewMatrix; osg::ref_ptr _displaySettings; osg::ref_ptr _state;