From Karl Heijdenberg, moved set/getFrameStamp() from osgViewer::View to osg::View.
This commit is contained in:
parent
be5f709bdb
commit
ffab16ba2f
@ -71,6 +71,15 @@ class OSG_EXPORT View : public virtual osg::Object
|
||||
/** Get the const master camera of the view. */
|
||||
const osg::Camera* getCamera() const { return _camera.get(); }
|
||||
|
||||
/** Set the frame stamp of the view. */
|
||||
void setFrameStamp(osg::FrameStamp* fs) { _frameStamp = fs; }
|
||||
|
||||
/** Get the frame stamp of the view. */
|
||||
osg::FrameStamp* getFrameStamp() { return _frameStamp.get(); }
|
||||
|
||||
/** Get the frame stamp of the view. */
|
||||
const osg::FrameStamp* getFrameStamp() const { return _frameStamp.get(); }
|
||||
|
||||
/** Slave allows one to up a camera that follows the master with a local offset to the project and view matrices.*/
|
||||
struct Slave
|
||||
{
|
||||
@ -137,6 +146,8 @@ class OSG_EXPORT View : public virtual osg::Object
|
||||
|
||||
typedef std::vector<Slave> Slaves;
|
||||
Slaves _slaves;
|
||||
|
||||
osg::ref_ptr<osg::FrameStamp> _frameStamp;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -56,10 +56,6 @@ class OSGVIEWER_EXPORT View : public osg::View, public osgGA::GUIActionAdapter
|
||||
virtual void setStartTick(osg::Timer_t tick);
|
||||
osg::Timer_t getStartTick() const { return _startTick; }
|
||||
|
||||
void setFrameStamp(osg::FrameStamp* fs) { _frameStamp = fs; }
|
||||
osg::FrameStamp* getFrameStamp() { return _frameStamp.get(); }
|
||||
const osg::FrameStamp* getFrameStamp() const { return _frameStamp.get(); }
|
||||
|
||||
Scene* getScene() { return _scene.get(); }
|
||||
const Scene* getScene() const { return _scene.get(); }
|
||||
|
||||
@ -207,7 +203,6 @@ class OSGVIEWER_EXPORT View : public osg::View, public osgGA::GUIActionAdapter
|
||||
|
||||
|
||||
osg::Timer_t _startTick;
|
||||
osg::ref_ptr<osg::FrameStamp> _frameStamp;
|
||||
|
||||
osg::ref_ptr<osgViewer::Scene> _scene;
|
||||
osg::ref_ptr<osgGA::EventQueue> _eventQueue;
|
||||
|
Loading…
Reference in New Issue
Block a user