panda3d.core.SceneGraphAnalyzerMeter

from panda3d.core import SceneGraphAnalyzerMeter
class SceneGraphAnalyzerMeter

Bases: TextNode

This is a special TextNode that automatically updates itself with output from a SceneGraphAnalyzer instance. It can be placed anywhere in the world where you’d like to see the output from SceneGraphAnalyzer.

It also has a special mode in which it may be attached directly to a channel or window. If this is done, it creates a DisplayRegion for itself and renders itself in the upper-right-hand corner.

Inheritance diagram

Inheritance diagram of SceneGraphAnalyzerMeter

__init__(param0: SceneGraphAnalyzerMeter) → None
__init__(name: str, node: PandaNode) → None
setupWindow(window: GraphicsOutput) → None

Sets up the frame rate meter to create a DisplayRegion to render itself into the indicated window.

clearWindow() → None

Undoes the effect of a previous call to setupWindow().

getWindow() → GraphicsOutput

Returns the GraphicsOutput that was passed to setupWindow(), or NULL if setupWindow() has not been called.

Return type

GraphicsOutput

getDisplayRegion() → DisplayRegion

Returns the DisplayRegion that the meter has created to render itself into the window to setupWindow(), or NULL if setupWindow() has not been called.

Return type

DisplayRegion

setUpdateInterval(update_interval: float) → None

Specifies the number of seconds that should elapse between updates to the meter. This should be reasonably slow (e.g. 0.5 to 2.0) so that the calculation of the scene graph analysis does not itself dominate the frame rate.

getUpdateInterval() → float

Returns the number of seconds that will elapse between updates to the frame rate indication.

setNode(node: PandaNode) → None

Sets the node to be analyzed.

getNode() → PandaNode

Returns the node to be analyzed.

Return type

PandaNode

update() → None

You can call this to explicitly force the SceneGraphAnalyzerMeter to update itself with the latest scene graph analysis information. Normally, it is not necessary to call this explicitly.

static getClassType() → TypeHandle
Return type

TypeHandle