Hi Johan, Currently CompositeViewer doesn't support on screen stats. Support needs to be added to both the CompositeViewer class and the StatsHandler for this, something I nor others have had a chance to do yet.
With the SVN version of the OSG more of the groundwork has been done virtue of the new Renderer class that has much of the stats embedded in it, and CompositeViewer now uses this. So if you want to dive in and add stats this is the place to start. Robert. On 8/27/07, Johan Johnsson <[EMAIL PROTECTED]> wrote: > I am using CompositeViewer to represent my views. Now i see that the show > stats functionality is made for osgViewer::Viewer. , well i am certinly in > deep need for the statistics to continue my current work. > I have a class that inherate from the osgViewer::Compositeveiwer and i > overload the statshandler , meaning i have a statshandler of my own with a > trigger on the 's'. > is there any clever solution to this problem? > > the solution i may think can work is to cast it like this , > osgViewer::View* viewer = dynamic_cast<osgViewer::View*>(&aa); > and then get the stat with getStats()->collectStats() for all views i have. > > is this a possible solution to my problem, or is there any funcionality > for this that i may have not seen. > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

