OccluderEffect¶
from acron.core import OccluderEffect
- class OccluderEffect¶
Bases:
Bases:
RenderEffectThis functions similarly to a
LightAttriborClipPlaneAttrib. It indicates the set of occluders that modify the geometry at this level and below. Unlike aClipPlaneAttrib, an OccluderEffect takes effect immediately when it is encountered during traversal, and thus can only add occluders; it may not remove them.Inheritance diagram
digraph inheritance03e24a631e { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "OccluderEffect" [URL="acron.core.OccluderEffect.html#acron.core.OccluderEffect",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "RenderEffect" -> "OccluderEffect" [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=""]; "RenderEffect" [URL="acron.core.RenderEffect.html#acron.core.RenderEffect",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "RenderEffect" [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=""]; }- add_on_occluder()¶
Returns a new
OccluderEffect, just like this one, but with the indicated occluder added to the list of occluders enabled by this effect.
- static get_class_type()¶
- get_num_on_occluders()¶
Returns the number of occluders that are enabled by the effectute.
- get_on_occluder()¶
Returns the nth occluder enabled by the effectute, sorted in render order.
- has_on_occluder()¶
Returns true if the indicated occluder is enabled by the effect, false otherwise.
- is_identity()¶
Returns true if this is an identity effect: it does not change the set of occluders in use.
- static make()¶
Constructs a new
OccluderEffectobject that does nothing.
- remove_on_occluder()¶
Returns a new
OccluderEffect, just like this one, but with the indicated occluder removed from the list of occluders enabled by this effect.