Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions
MovingPartScalar Class Reference

This is a particular kind of MovingPart that accepts a scalar each frame. More...

#include "movingPartScalar.h"

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

List of all members.

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 TypedWritablemake_MovingPartScalar (const FactoryParams &params)
 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 &copy)
 Normally, you'd use make_copy() or copy_subgraph() to make a copy of this.

Detailed Description

This is a particular kind of MovingPart that accepts a scalar each frame.

Definition at line 31 of file movingPartScalar.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

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

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


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