Added support for Viewer::setViewer::setView so that the internal old

style osg::Camera and camera manipulators are updated correctly.
This commit is contained in:
Robert Osfield
2003-04-08 15:47:45 +00:00
parent e928bca4c9
commit 8a3d731739
4 changed files with 29 additions and 9 deletions

View File

@@ -145,7 +145,7 @@ class OSGPRODUCER_EXPORT OsgCameraGroup : public Producer::CameraGroup
/** Set the model view matrix of the camera group,
* by individually set all the camera groups's camera.*/
void setView(const osg::Matrix& matrix);
virtual void setView(const osg::Matrix& matrix);
/** Get the model view martrix of the camera group,
* taking its value for camera 0.*/

View File

@@ -70,7 +70,12 @@ class OSGPRODUCER_EXPORT Viewer : public OsgCameraGroup, public osgGA::GUIAction
void setUpViewer(unsigned int options=STANDARD_SETTINGS);
bool done() const { return _done; }
/** return true if the application is done and should exit.*/
bool done() const;
/** Set the model view matrix of the camera group,
* by individually set all the camera groups's camera.*/
virtual void setView(const osg::Matrix& matrix);
/** Set the threading model and then call realize().*/
virtual bool realize(ThreadingModel thread_model);