Show
Ignore:
Timestamp:
01/27/09 14:23:20 (6 years ago)
Author:
robert
Message:

Refactored the view stats.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgViewer/CompositeViewer

    r8971 r9554  
    3939        /** read the viewer configuration from a configuration file.*/ 
    4040        bool readConfiguration(const std::string& filename); 
     41 
     42 
     43        /** Set the Stats object used for collect various frame related timing and scene graph stats.*/ 
     44        virtual void setViewerStats(osg::Stats* stats) { _stats = stats; } 
     45 
     46        /** Get the Viewers Stats object.*/ 
     47        virtual osg::Stats* getViewerStats() { return _stats.get(); } 
     48 
     49        /** Get the Viewers Stats object.*/ 
     50        virtual const osg::Stats* getViewerStats() const { return _stats.get(); } 
     51 
    4152 
    4253        void addView(osgViewer::View* view); 
     
    115126        bool _firstFrame; 
    116127         
     128        osg::ref_ptr<osg::Stats>            _stats; 
     129 
    117130        osg::Timer_t                        _startTick; 
    118131        osg::ref_ptr<osg::FrameStamp>       _frameStamp;