From 845adb8745ab5f0ac6aeac1bc4420ce5149611ee Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 25 Nov 2003 10:55:37 +0000 Subject: [PATCH] Reorganised posstion of getViewMatrix*() methods. --- include/osgUtil/SceneView | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/osgUtil/SceneView b/include/osgUtil/SceneView index 138bb0cb3..c004c2ab3 100644 --- a/include/osgUtil/SceneView +++ b/include/osgUtil/SceneView @@ -190,6 +190,16 @@ class OSGUTIL_EXPORT SceneView : public osg::Referenced /** Set to the position and orientation of view matrix, using the same convention as gluLookAt. */ void setViewMatrixAsLookAt(const osg::Vec3& eye,const osg::Vec3& center,const osg::Vec3& up); + /** Get the view matrix. */ + osg::Matrixd& getViewMatrix() { return _viewMatrix; } + + /** Get the const view matrix. */ + const osg::Matrixd& getViewMatrix() const { return _viewMatrix; } + + /** Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. */ + void getViewMatrixAsLookAt(osg::Vec3& eye,osg::Vec3& center,osg::Vec3& up,float lookDistance=1.0f); + + /** Set the draw buffer value used at the start of each frame draw. Note, overridden in quad buffer stereo mode */ void setDrawBufferValue( GLenum drawBufferValue ) { @@ -202,16 +212,6 @@ class OSGUTIL_EXPORT SceneView : public osg::Referenced return _drawBufferValue; } - /** Get the view matrix. */ - osg::Matrixd& getViewMatrix() { return _viewMatrix; } - - /** Get the const view matrix. */ - const osg::Matrixd& getViewMatrix() const { return _viewMatrix; } - - /** Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. */ - void getViewMatrixAsLookAt(osg::Vec3& eye,osg::Vec3& center,osg::Vec3& up,float lookDistance=1.0f); - - void setInitVisitor(osg::NodeVisitor* av) { _initVisitor = av; } osg::NodeVisitor* getInitVisitor() { return _initVisitor.get(); }