Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
CharacterSlider Class Reference

This is a morph slider within the character. More...

#include "characterSlider.h"

Inheritance diagram for CharacterSlider:
MovingPartScalar MovingPart< ACScalarSwitchType > MovingPartBase PartGroup TypedWritableReferenceCount Namable TypedWritable ReferenceCount MemoryBase TypedObject MemoryBase MemoryBase

List of all members.

Public Member Functions

 CharacterSlider (PartGroup *parent, const string &name)
virtual TypeHandle force_init_type ()
virtual TypeHandle get_type () const
virtual PartGroupmake_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 TypedWritablemake_CharacterSlider (const FactoryParams &params)
 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 &copy)

Friends

class CharacterVertexSlider

Detailed Description

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.


Constructor & Destructor Documentation

For internal use only.

Definition at line 30 of file characterSlider.cxx.

Referenced by make_CharacterSlider(), and make_copy().


Member Function Documentation

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().

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations