Panda3D
|
This is an abstract base class that retains some slider value, which is a linear value that typically ranges from 0.0 to 1.0, and is used to control the animation of morphs (blend shapes). More...
#include "vertexSlider.h"
Classes | |
class | CData |
Public Member Functions | |
VertexSlider (const InternalName *name) | |
virtual TypeHandle | force_init_type () |
UpdateSeq | get_modified (Thread *current_thread) const |
Returns a sequence number that's guaranteed to change at least every time the value reported by get_slider() changes. | |
const InternalName * | get_name () const |
Returns the name of this particular slider. | |
virtual PN_stdfloat | get_slider () const =0 |
virtual TypeHandle | get_type () const |
virtual void | output (ostream &out) const |
virtual void | write (ostream &out, int indent_level) const |
virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
Writes the contents of this object to the datagram for shipping out to a Bam file. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Protected Member Functions | |
CPT (InternalName) _name | |
void | fillin (DatagramIterator &scan, BamReader *manager) |
This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new VertexSlider. | |
void | mark_modified (Thread *current_thread) |
Intended to be called by a derived class whenever the reported transform might have changed. | |
Friends | |
class | SliderTable |
This is an abstract base class that retains some slider value, which is a linear value that typically ranges from 0.0 to 1.0, and is used to control the animation of morphs (blend shapes).
It is similar to VertexTransform, which keeps a full 4x4 transform matrix, but the VertexSlider only keeps a single float value.
Definition at line 41 of file vertexSlider.h.
void VertexSlider::fillin | ( | DatagramIterator & | scan, |
BamReader * | manager | ||
) | [protected, virtual] |
This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new VertexSlider.
Reimplemented from TypedWritable.
Reimplemented in CharacterVertexSlider, and UserVertexSlider.
Definition at line 104 of file vertexSlider.cxx.
Returns a sequence number that's guaranteed to change at least every time the value reported by get_slider() changes.
Definition at line 37 of file vertexSlider.I.
const InternalName * VertexSlider::get_name | ( | ) | const [inline] |
Returns the name of this particular slider.
Every unique blend shape within a particular Geom must be identified with a different name, which is shared by the slider that controls it.
Definition at line 25 of file vertexSlider.I.
Referenced by SliderTable::add_slider(), and SliderTable::set_slider().
void VertexSlider::mark_modified | ( | Thread * | current_thread | ) | [protected] |
Intended to be called by a derived class whenever the reported transform might have changed.
Without calling this method, changes to get_slider() may not be propagated through the system.
Definition at line 75 of file vertexSlider.cxx.
References VertexTransform::get_next_modified().
Referenced by UserVertexSlider::set_slider().
Writes the contents of this object to the datagram for shipping out to a Bam file.
Reimplemented from TypedWritable.
Reimplemented in CharacterVertexSlider, and UserVertexSlider.
Definition at line 92 of file vertexSlider.cxx.