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

Refactored the view stats.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgWrappers/osgViewer/Viewer.cpp

    r8895 r9554  
    1818#include <osg/Node> 
    1919#include <osg/Object> 
     20#include <osg/Stats> 
    2021#include <osg/Timer> 
    2122#include <osgViewer/GraphicsWindow> 
     
    7778                  __void__take__View_R1, 
    7879                  "Take all the settings, Camera and Slaves from the passed in view(er), leaving it empty. ", 
     80                  ""); 
     81        I_Method1(void, setViewerStats, IN, osg::Stats *, stats, 
     82                  Properties::VIRTUAL, 
     83                  __void__setViewerStats__osg_Stats_P1, 
     84                  "Set the Stats object used for collect various frame related timing and scene graph stats. ", 
     85                  ""); 
     86        I_Method0(osg::Stats *, getViewerStats, 
     87                  Properties::VIRTUAL, 
     88                  __osg_Stats_P1__getViewerStats, 
     89                  "Get the Viewers Stats object. ", 
     90                  ""); 
     91        I_Method0(const osg::Stats *, getViewerStats, 
     92                  Properties::VIRTUAL, 
     93                  __C5_osg_Stats_P1__getViewerStats, 
     94                  "Get the Viewers Stats object. ", 
    7995                  ""); 
    8096        I_Method1(bool, readConfiguration, IN, const std::string &, filename, 
     
    220236                         __osg_FrameStamp_P1__getViewerFrameStamp,  
    221237                         0); 
     238        I_SimpleProperty(osg::Stats *, ViewerStats,  
     239                         __osg_Stats_P1__getViewerStats,  
     240                         __void__setViewerStats__osg_Stats_P1); 
    222241END_REFLECTOR 
    223242