SceneGraphAnalyzerMeter¶
from acron.core import SceneGraphAnalyzerMeter
- class SceneGraphAnalyzerMeter¶
Bases:
Bases:
TextNodeThis is a special
TextNodethat automatically updates itself with output from aSceneGraphAnalyzerinstance. It can be placed anywhere in the world where you’d like to see the output fromSceneGraphAnalyzer.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
DisplayRegionfor itself and renders itself in the upper-right-hand corner.Inheritance diagram
digraph inheritance724b2bb693 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AcronNode" [URL="acron.core.AcronNode.html#acron.core.AcronNode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "AcronNode" [arrowsize=0.75,style=""]; "Namable" -> "AcronNode" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "Namable" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "SceneGraphAnalyzerMeter" [URL="acron.core.SceneGraphAnalyzerMeter.html#acron.core.SceneGraphAnalyzerMeter",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TextNode" -> "SceneGraphAnalyzerMeter" [arrowsize=0.75,style=""]; "TextEncoder" [URL="acron.core.TextEncoder.html#acron.core.TextEncoder",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TextEncoder" [arrowsize=0.75,style=""]; "TextNode" [URL="acron.core.TextNode.html#acron.core.TextNode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "AcronNode" -> "TextNode" [arrowsize=0.75,style=""]; "TextEncoder" -> "TextNode" [arrowsize=0.75,style=""]; "TextProperties" -> "TextNode" [arrowsize=0.75,style=""]; "TextProperties" [URL="acron.core.TextProperties.html#acron.core.TextProperties",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TextProperties" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }- __init__()¶
- clear_window()¶
Undoes the effect of a previous call to
setup_window().
- static get_class_type()¶
- get_display_region()¶
Returns the
DisplayRegionthat the meter has created to render itself into the window tosetup_window(), or NULL ifsetup_window()has not been called.
- get_node()¶
Returns the node to be analyzed.
- get_update_interval()¶
Returns the number of seconds that will elapse between updates to the frame rate indication.
- get_window()¶
Returns the
GraphicsOutputthat was passed tosetup_window(), or NULL ifsetup_window()has not been called.
- set_node()¶
Sets the node to be analyzed.
- set_update_interval()¶
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.
- setup_window()¶
Sets up the frame rate meter to create a
DisplayRegionto render itself into the indicated window.
- update()¶
You can call this to explicitly force the
SceneGraphAnalyzerMeterto update itself with the latest scene graph analysis information. Normally, it is not necessary to call this explicitly.