SliderTable
from panda3d.core import SliderTable
- class SliderTable
Bases:
TypedWritableReferenceCount
Stores the total set of VertexSliders that the vertices in a particular GeomVertexData object might depend on.
This is similar to a TransformTable, but it stores VertexSliders instead of VertexTransforms, 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
- __init__(*args, **kwargs)
- addSlider()
C++ Interface: add_slider(const SliderTable self, const VertexSlider slider, const SparseArray rows)
- /**
Adds a new slider to the table, and returns the index number of the new
slider. Only valid for unregistered tables.
*/
- add_slider()
C++ Interface: add_slider(const SliderTable self, const VertexSlider slider, const SparseArray rows)
- /**
Adds a new slider to the table, and returns the index number of the new
slider. Only valid for unregistered tables.
*/
- assign()
C++ Interface: assign(const SliderTable self, const SliderTable copy)
- findSliders()
C++ Interface: find_sliders(SliderTable self, const InternalName name)
- /**
Returns a list of slider indices that represent the list of sliders with
the indicated name, or an empty SparseArray if no slider in the table has
that name.
*/
- find_sliders()
C++ Interface: find_sliders(SliderTable self, const InternalName name)
- /**
Returns a list of slider indices that represent the list of sliders with
the indicated name, or an empty SparseArray if no slider in the table has
that name.
*/
- getClassType()
C++ Interface: get_class_type()
- getModified()
C++ Interface: get_modified(SliderTable self, Thread current_thread)
- /**
Returns a sequence number that’s guaranteed to change at least when any
VertexSliders in the table change. (However, this is only true for a
registered table. An unregistered table may or may not reflect an update
here when a VertexSlider changes.)
*/
- getNumSliders()
C++ Interface: get_num_sliders(SliderTable self)
- /**
Returns the number of sliders in the table.
*/
- getSlider()
C++ Interface: get_slider(SliderTable self, int n)
- /**
Returns the nth slider in the table.
*/
- getSliderRows()
C++ Interface: get_slider_rows(SliderTable self, int n)
- /**
Returns the set of rows (vertices) governed by the nth slider in the table.
*/
- getSliders()
- get_class_type()
C++ Interface: get_class_type()
- get_modified()
C++ Interface: get_modified(SliderTable self, Thread current_thread)
- /**
Returns a sequence number that’s guaranteed to change at least when any
VertexSliders in the table change. (However, this is only true for a
registered table. An unregistered table may or may not reflect an update
here when a VertexSlider changes.)
*/
- get_num_sliders()
C++ Interface: get_num_sliders(SliderTable self)
- /**
Returns the number of sliders in the table.
*/
- get_slider()
C++ Interface: get_slider(SliderTable self, int n)
- /**
Returns the nth slider in the table.
*/
- get_slider_rows()
C++ Interface: get_slider_rows(SliderTable self, int n)
- /**
Returns the set of rows (vertices) governed by the nth slider in the table.
*/
- get_sliders()
- hasSlider()
C++ Interface: has_slider(SliderTable self, const InternalName name)
- /**
Returns true if the table has at least one slider by the indicated name,
false otherwise.
*/
- has_slider()
C++ Interface: has_slider(SliderTable self, const InternalName name)
- /**
Returns true if the table has at least one slider by the indicated name,
false otherwise.
*/
- isEmpty()
C++ Interface: is_empty(SliderTable self)
- /**
Returns true if the table has no sliders, false if it has at least one.
*/
- isRegistered()
C++ Interface: is_registered(SliderTable self)
- /**
Returns true if this table has been registered. Once it has been
registered, the set of sliders in a SliderTable may not be further
modified; but it must be registered before it can be assigned to a Geom.
*/
- is_empty()
C++ Interface: is_empty(SliderTable self)
- /**
Returns true if the table has no sliders, false if it has at least one.
*/
- is_registered()
C++ Interface: is_registered(SliderTable self)
- /**
Returns true if this table has been registered. Once it has been
registered, the set of sliders in a SliderTable may not be further
modified; but it must be registered before it can be assigned to a Geom.
*/
- modified
- registerTable()
C++ Interface: register_table(const SliderTable table)
- /**
Registers a SliderTable for use. This is similar to
GeomVertexFormat::register_format(). Once registered, a SliderTable may no
longer be modified (although the individual VertexSlider objects 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.
*/
- register_table()
C++ Interface: register_table(const SliderTable table)
- /**
Registers a SliderTable for use. This is similar to
GeomVertexFormat::register_format(). Once registered, a SliderTable may no
longer be modified (although the individual VertexSlider objects 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.
*/
- removeSlider()
C++ Interface: remove_slider(const SliderTable self, int n)
- /**
Removes the nth slider. Only valid for unregistered tables.
*/
- remove_slider()
C++ Interface: remove_slider(const SliderTable self, int n)
- /**
Removes the nth slider. Only valid for unregistered tables.
*/
- setSlider()
C++ Interface: set_slider(const SliderTable self, int n, const VertexSlider slider)
- /**
Replaces the nth slider. Only valid for unregistered tables.
*/
- setSliderRows()
C++ Interface: set_slider_rows(const SliderTable self, int n, const SparseArray rows)
- /**
Replaces the rows affected by the nth slider. Only valid for unregistered
tables.
*/
- set_slider()
C++ Interface: set_slider(const SliderTable self, int n, const VertexSlider slider)
- /**
Replaces the nth slider. Only valid for unregistered tables.
*/