Panda3D
|
This is a particular kind of MovingPart that accepts a scalar each frame. More...
#include "movingPartScalar.h"
Public Member Functions | |
MovingPartScalar (PartGroup *parent, const string &name, const PN_stdfloat &default_value=0) | |
virtual bool | apply_control (PandaNode *node) |
Specifies a node to influence this particular joint so that it will always hold the node's transform. | |
virtual bool | apply_freeze_scalar (PN_stdfloat value) |
Freezes this particular joint so that it will always hold the specified transform. | |
virtual TypeHandle | force_init_type () |
virtual void | get_blend_value (const PartBundle *root) |
Attempts to blend the various scalar values indicated, and sets the _value member to the resulting scalar. | |
virtual TypeHandle | get_type () const |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
static TypedWritable * | make_MovingPartScalar (const FactoryParams ¶ms) |
Factory method to generate a MovingPartScalar object. | |
static void | register_with_read_factory () |
Factory method to generate a MovingPartScalar object. | |
Protected Member Functions | |
MovingPartScalar (const MovingPartScalar ©) | |
Normally, you'd use make_copy() or copy_subgraph() to make a copy of this. |
This is a particular kind of MovingPart that accepts a scalar each frame.
Definition at line 31 of file movingPartScalar.h.
MovingPartScalar::MovingPartScalar | ( | const MovingPartScalar & | copy | ) | [inline, protected] |
Normally, you'd use make_copy() or copy_subgraph() to make a copy of this.
Definition at line 23 of file movingPartScalar.I.
bool MovingPartScalar::apply_control | ( | PandaNode * | node | ) | [virtual] |
Specifies a node to influence this particular joint so that it will always hold the node's transform.
Returns true if this is a joint that can be so controlled, false otherwise. This is called internally by PartBundle::control_joint().
Reimplemented from PartGroup.
Definition at line 142 of file movingPartScalar.cxx.
References AnimChannelScalarDynamic::set_value_node().
bool MovingPartScalar::apply_freeze_scalar | ( | PN_stdfloat | value | ) | [virtual] |
Freezes this particular joint so that it will always hold the specified transform.
Returns true if this is a joint that can be so frozen, false otherwise. This is called internally by PartBundle::freeze_joint().
Reimplemented from PartGroup.
Definition at line 127 of file movingPartScalar.cxx.
void MovingPartScalar::get_blend_value | ( | const PartBundle * | root | ) | [virtual] |
Attempts to blend the various scalar values indicated, and sets the _value member to the resulting scalar.
Implements MovingPartBase.
Definition at line 47 of file movingPartScalar.cxx.
References AnimControl::get_channel_index(), AnimInterface::get_frac(), AnimInterface::get_frame(), and AnimInterface::get_next_frame().
TypedWritable * MovingPartScalar::make_MovingPartScalar | ( | const FactoryParams & | params | ) | [static] |
Factory method to generate a MovingPartScalar object.
Definition at line 155 of file movingPartScalar.cxx.
References MovingPart< SwitchType >::fillin().
Referenced by register_with_read_factory().
void MovingPartScalar::register_with_read_factory | ( | ) | [static] |
Factory method to generate a MovingPartScalar object.
Reimplemented from PartGroup.
Reimplemented in CharacterSlider.
Definition at line 171 of file movingPartScalar.cxx.
References BamReader::get_factory(), make_MovingPartScalar(), and Factory< Type >::register_factory().