Added support for tracking a user specified CoordinateSystemNode for the

CoordinateFrame to use in the camera manipulation
This commit is contained in:
Robert Osfield
2004-04-29 22:19:57 +00:00
parent f81447e839
commit 522ffca03c
2 changed files with 23 additions and 1 deletions

View File

@@ -100,6 +100,10 @@ class OSGPRODUCER_EXPORT Viewer : public OsgCameraGroup, public osgGA::GUIAction
const osg::NodeVisitor* getUpdateVisitor() const { return _updateVisitor.get(); }
void setCoordindateSystemNodePath(const osg::NodePath& nodePath) { _coordinateSystemNodePath = nodePath; }
const osg::NodePath& getCoordindateSystemNodePath() { return _coordinateSystemNodePath; }
/** Dispatch the cull and draw for each of the Camera's for this frame.*/
virtual void frame();
@@ -179,6 +183,8 @@ class OSGPRODUCER_EXPORT Viewer : public OsgCameraGroup, public osgGA::GUIAction
osg::ref_ptr<osg::NodeVisitor> _updateVisitor;
osg::NodePath _coordinateSystemNodePath;
bool _recordingAnimationPath;
double _recordingStartTime;
osg::ref_ptr<osg::AnimationPath> _animationPath;