Panda3D
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions
MovingPart< SwitchType > Class Template Reference

This is the template instantiation of MovingPartBase, on the particular type of value provided by the channel. More...

#include "movingPart.h"

Inheritance diagram for MovingPart< SwitchType >:
MovingPartBase PartGroup TypedWritableReferenceCount Namable TypedWritable ReferenceCount MemoryBase TypedObject MemoryBase MemoryBase

List of all members.

Public Types

typedef AnimChannel< SwitchType > ChannelType
typedef SwitchType::ValueType ValueType

Public Member Functions

 MovingPart (PartGroup *parent, const string &name, const ValueType &default_value)
virtual TypeHandle force_init_type ()
ValueType get_default_value () const
virtual TypeHandle get_type () const
ValueType get_value () const
virtual TypeHandle get_value_type () const
 Returns the TypeHandle associated with the ValueType we are concerned with.
virtual AnimChannelBasemake_default_channel () const
 Creates and returns a new AnimChannel that is not part of any hierarchy, but that returns the default value associated with this part.
virtual void output_value (ostream &out) const
 Outputs a very brief description of the channel's current value.
virtual void write_datagram (BamWriter *manager, Datagram &me)
 Function to write the important information in the particular object to a Datagram.

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()

Public Attributes

ValueType _default_value
ValueType _value

Protected Member Functions

 MovingPart (const MovingPart &copy)
 Normally, you'd use make_copy() or copy_subgraph() to make a copy of this.
void fillin (DatagramIterator &scan, BamReader *manager)
 Function that reads out of the datagram (or asks manager to read) all of the data that is needed to re-create this object and stores it in the appropiate place.

Detailed Description

template<class SwitchType>
class MovingPart< SwitchType >

This is the template instantiation of MovingPartBase, on the particular type of value provided by the channel.

Definition at line 30 of file movingPart.h.


Constructor & Destructor Documentation

template<class SwitchType >
MovingPart< SwitchType >::MovingPart ( const MovingPart< SwitchType > &  copy) [inline, protected]

Normally, you'd use make_copy() or copy_subgraph() to make a copy of this.

Definition at line 38 of file movingPart.I.


Member Function Documentation

template<class SwitchType >
void MovingPart< SwitchType >::fillin ( DatagramIterator scan,
BamReader manager 
) [inline, protected, virtual]

Function that reads out of the datagram (or asks manager to read) all of the data that is needed to re-create this object and stores it in the appropiate place.

Reimplemented from MovingPartBase.

Reimplemented in CharacterJoint.

Definition at line 135 of file movingPart.I.

References MovingPartBase::fillin().

Referenced by CharacterSlider::make_CharacterSlider(), MovingPartMatrix::make_MovingPartMatrix(), and MovingPartScalar::make_MovingPartScalar().

template<class SwitchType >
TypeHandle MovingPart< SwitchType >::get_value_type ( ) const [virtual]

Returns the TypeHandle associated with the ValueType we are concerned with.

This is provided to allow a bit of run-time checking that joints and channels are matching properly in type.

Implements MovingPartBase.

Definition at line 80 of file movingPart.I.

template<class SwitchType >
AnimChannelBase * MovingPart< SwitchType >::make_default_channel ( ) const [virtual]

Creates and returns a new AnimChannel that is not part of any hierarchy, but that returns the default value associated with this part.

Implements MovingPartBase.

Reimplemented in MovingPartMatrix.

Definition at line 95 of file movingPart.I.

template<class SwitchType >
void MovingPart< SwitchType >::output_value ( ostream &  out) const [virtual]

Outputs a very brief description of the channel's current value.

Implements MovingPartBase.

Definition at line 107 of file movingPart.I.

template<class SwitchType >
void MovingPart< SwitchType >::write_datagram ( BamWriter manager,
Datagram me 
) [inline, virtual]

Function to write the important information in the particular object to a Datagram.

Reimplemented from MovingPartBase.

Reimplemented in CharacterJoint.

Definition at line 119 of file movingPart.I.

References MovingPartBase::write_datagram().


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