| 551 | | \subsection PageSystemWindowForegroundStatistics Statistics Foregrounds |
|---|
| 552 | | |
|---|
| 553 | | The descendents of osg::StatisticsForeground can be used to print or draw |
|---|
| 554 | | Statistics elements on the rendered image. |
|---|
| 555 | | |
|---|
| 556 | | The osg::StatisticsCollector that is used to collect the elements needs to be |
|---|
| 557 | | set in the foreground, as well as the list of osg::StatElemDesc IDs that |
|---|
| 558 | | should be displayed. |
|---|
| 559 | | |
|---|
| 560 | | \subsection PageSystemWindowForegroundStatisticsSimple Simple Statistics Foreground |
|---|
| 561 | | |
|---|
| 562 | | \b NOTE: The osg::SimpleStatisticsForeground is still considered experimental |
|---|
| 563 | | and can and probably will change! |
|---|
| 564 | | |
|---|
| 565 | | osg::SimpleStatisticsForeground displays the statistics info as simple text |
|---|
| 566 | | lines. They are displayed using a compiled-in font that can use an arbitrary |
|---|
| 567 | | color and that can be arbitrarily resized, with the size per line given in |
|---|
| 568 | | pixel. |
|---|
| 569 | | |
|---|
| 570 | | The format of every element is given by a format string for every element that |
|---|
| 571 | | is directly passed to osg::StatElem::putToString(), so go there to see the |
|---|
| 572 | | possible options. |
|---|
| 573 | | |
|---|
| 574 | | If no elementIDs are given all elements in the osg::StatCollector are display, |
|---|
| 575 | | using the default format. |
|---|
| 576 | | |
|---|
| 577 | | \subsection PageSystemWindowForegroundStatisticsGraphic Graphic Statistics Foreground |
|---|
| 578 | | |
|---|
| 579 | | \b NOTE: The osg::GraphicStatisticsForeground is still considered experimental |
|---|
| 580 | | and can and probably will change! |
|---|
| 581 | | |
|---|
| 582 | | osg::GraphicStatisticsForeground displays the statistics info as one of a set |
|---|
| 583 | | of graphical elements. The possible elements are: |
|---|