AuxSceneData

class AuxSceneData

Bases: TypedReferenceCount

This 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=""]; }
AuxSceneData.__init__()

This is protected, since you normally don’t want to create a plain AuxSceneData object; instead, create an instance of a derived class that actually has some useful data in it.

static AuxSceneData.get_class_type()
AuxSceneData.get_duration()

Returns the minimum length in time, in seconds, to keep this AuxSceneData object around in the scene graph after the last time it was rendered.

AuxSceneData.get_expiration_time()

Returns the frame_time at which this AuxSceneData object is currently scheduled to be removed from the scene graph.

AuxSceneData.get_last_render_time()

Returns the last time this object was used during traversal (according to set_last_render_time()).

AuxSceneData.output()
AuxSceneData.set_duration()

Specifies the minimum length in time, in seconds, to keep this AuxSceneData object around in the scene graph after the last time it was rendered.

AuxSceneData.set_last_render_time()

Should be called with the current frame_time each time the AuxSceneData is used during traversal.

AuxSceneData.write()