SliderTable¶
from acron.core import SliderTable
- class SliderTable¶
Bases:
Bases:
TypedWritableReferenceCountStores the total set of
VertexSlidersthat the vertices in a particularGeomVertexDataobject might depend on.This is similar to a
TransformTable, but it storesVertexSlidersinstead ofVertexTransforms, and it stores them by name instead of by index number. Also, it is only used when animating vertices on the CPU, since GPU’s don’t support morphs at this point in time.Inheritance diagram
digraph inheritance1c62e1f1ab { 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=""]; "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=""]; "SliderTable" [URL="acron.core.SliderTable.html#acron.core.SliderTable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "SliderTable" [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__()¶
- add_slider()¶
Adds a new slider to the table, and returns the index number of the new slider. Only valid for unregistered tables.
- assign()¶
- find_sliders()¶
Returns a list of slider indices that represent the list of sliders with the indicated name, or an empty
SparseArrayif no slider in the table has that name.
- static get_class_type()¶
- get_modified()¶
Returns a sequence number that’s guaranteed to change at least when any
VertexSlidersin the table change. (However, this is only true for a registered table. An unregistered table may or may not reflect an update here when aVertexSliderchanges.)
- get_num_sliders()¶
Returns the number of sliders in the table.
- get_slider()¶
Returns the nth slider in the table.
- get_slider_rows()¶
Returns the set of rows (vertices) governed by the nth slider in the table.
- has_slider()¶
Returns true if the table has at least one slider by the indicated name, false otherwise.
- is_empty()¶
Returns true if the table has no sliders, false if it has at least one.
- is_registered()¶
Returns true if this table has been registered. Once it has been registered, the set of sliders in a
SliderTablemay not be further modified; but it must be registered before it can be assigned to a Geom.
- property modified UpdateSeq¶
Returns a sequence number that’s guaranteed to change at least when any
VertexSlidersin the table change. (However, this is only true for a registered table. An unregistered table may or may not reflect an update here when aVertexSliderchanges.)
- static register_table()¶
Registers a
SliderTablefor use. This is similar toGeomVertexFormat.register_format(). Once registered, aSliderTablemay no longer be modified (although the individualVertexSliderobjects may modify their reported sliders).This must be called before a table may be used in a Geom. After this call, you should discard the original pointer you passed in (which may or may not now be invalid) and let its reference count decrement normally; you should use only the returned value from this point on.
- remove_slider()¶
Removes the nth slider. Only valid for unregistered tables.
- set_slider()¶
Replaces the nth slider. Only valid for unregistered tables.
- set_slider_rows()¶
Replaces the rows affected by the nth slider. Only valid for unregistered tables.
- write()¶