Panda3D
|
This is a morph slider within the character. More...
#include "characterSlider.h"
Public Member Functions | |
CharacterSlider (PartGroup *parent, const string &name) | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
virtual PartGroup * | make_copy () const |
Allocates and returns a new copy of the node. | |
virtual bool | update_internals (PartBundle *root, PartGroup *parent, bool self_changed, bool parent_changed, Thread *current_thread) |
This is called by do_update() whenever the part or some ancestor has changed values. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
static TypedWritable * | make_CharacterSlider (const FactoryParams ¶ms) |
Factory method to generate a CharacterSlider object. | |
static void | register_with_read_factory () |
Factory method to generate a CharacterSlider object. | |
Protected Member Functions | |
CharacterSlider () | |
For internal use only. | |
CharacterSlider (const CharacterSlider ©) | |
Friends | |
class | CharacterVertexSlider |
This is a morph slider within the character.
It's simply a single floating-point value that animates generally between 0 and 1, that controls the effects of one or more morphs within the character.
Definition at line 31 of file characterSlider.h.
CharacterSlider::CharacterSlider | ( | ) | [protected] |
For internal use only.
Definition at line 30 of file characterSlider.cxx.
Referenced by make_CharacterSlider(), and make_copy().
TypedWritable * CharacterSlider::make_CharacterSlider | ( | const FactoryParams & | params | ) | [static] |
Factory method to generate a CharacterSlider object.
Definition at line 104 of file characterSlider.cxx.
References CharacterSlider(), and MovingPart< SwitchType >::fillin().
Referenced by register_with_read_factory().
PartGroup * CharacterSlider::make_copy | ( | ) | const [virtual] |
Allocates and returns a new copy of the node.
Children are not copied, but see copy_subgraph().
Reimplemented from PartGroup.
Definition at line 71 of file characterSlider.cxx.
References CharacterSlider().
void CharacterSlider::register_with_read_factory | ( | ) | [static] |
Factory method to generate a CharacterSlider object.
Reimplemented from MovingPartScalar.
Definition at line 121 of file characterSlider.cxx.
References BamReader::get_factory(), make_CharacterSlider(), and Factory< Type >::register_factory().
bool CharacterSlider::update_internals | ( | PartBundle * | root, |
PartGroup * | parent, | ||
bool | self_changed, | ||
bool | parent_changed, | ||
Thread * | current_thread | ||
) | [virtual] |
This is called by do_update() whenever the part or some ancestor has changed values.
It is a hook for derived classes to update whatever cache they may have that depends on these.
The return value is true if the part has changed as a result of the update, or false otherwise.
Reimplemented from MovingPartBase.
Definition at line 87 of file characterSlider.cxx.