AuxSceneData¶
from acron.core import AuxSceneData
- class AuxSceneData¶
Bases:
Bases:
TypedReferenceCountThis is a base class for a generic data structure that can be attached per- instance to the camera, to store per-instance data that must be preserved over multiple frames.
In particular, this is used to implement the
FadeLODNode, which must remember during traversal at what point it is in the fade, separately for each instance and for each camera.Inheritance diagram
digraph inheritanceab766c63c3 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AuxSceneData" [URL="acron.core.AuxSceneData.html#acron.core.AuxSceneData",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedReferenceCount" -> "AuxSceneData" [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=""]; "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=""]; "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=""]; "TypedReferenceCount" [URL="acron.core.TypedReferenceCount.html#acron.core.TypedReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; }- __init__()¶
This is protected, since you normally don’t want to create a plain
AuxSceneDataobject; instead, create an instance of a derived class that actually has some useful data in it.
- static get_class_type()¶
- get_duration()¶
Returns the minimum length in time, in seconds, to keep this
AuxSceneDataobject around in the scene graph after the last time it was rendered.
- get_expiration_time()¶
Returns the frame_time at which this
AuxSceneDataobject is currently scheduled to be removed from the scene graph.
- get_last_render_time()¶
Returns the last time this object was used during traversal (according to
set_last_render_time()).
- output()¶
- set_duration()¶
Specifies the minimum length in time, in seconds, to keep this
AuxSceneDataobject around in the scene graph after the last time it was rendered.
- set_last_render_time()¶
Should be called with the current frame_time each time the
AuxSceneDatais used during traversal.
- write()¶