osgViewer.StatsHandler¶
- class osgViewer.StatsHandler¶
- Represents
c++ class
- Wraps
osgViewer::StatsHandler
- Bases
Event handler for adding on screen stats reporting to
osgViewer.Viewer
s.Constructors:
- osgViewer.StatsHandler()¶
Methods:
- :setKeyEventTogglesOnScreenStats(int key)¶
-
- Параметры
key (
int
) –
- :getKeyEventTogglesOnScreenStats()¶
-
- Тип результата
int
- :setKeyEventPrintsOutStats(int key)¶
-
- Параметры
key (
int
) –
- :getKeyEventPrintsOutStats()¶
-
- Тип результата
int
- :getBlockMultiplier()¶
-
- Тип результата
double
- :reset()¶
- :getCamera()¶
-
- Тип результата
- :addUserStatsLine(std.string label, osg.Vec4 textColor, osg.Vec4 barColor, std.string timeTakenName, double multiplier, bool average, bool averageInInverseSpace, std.string beginTimeName, std.string endTimeName, double maxValue)¶
-
- Параметры
label (
std.string
) –textColor (
osg.Vec4
) –barColor (
osg.Vec4
) –timeTakenName (
std.string
) –multiplier (
double
) –average (
bool
) –averageInInverseSpace (
bool
) –beginTimeName (
std.string
) –endTimeName (
std.string
) –maxValue (
double
) –
- :removeUserStatsLine(std.string label)¶
-
- Параметры
label (
std.string
) –