Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CharacterJoint Class Reference

#include <characterJoint.h>

Inheritance diagram for CharacterJoint:

MovingPartMatrix MovingPart< ACMatrixSwitchType > MovingPartBase PartGroup TypedWritableReferenceCount Namable TypedWritable ReferenceCount TypedObject List of all members.

Public Member Functions

 CharacterJoint (PartGroup *parent, const string &name, const LMatrix4f &initial_value)
virtual PartGroupmake_copy () const
virtual bool update_internals (PartGroup *parent, bool self_changed, bool parent_changed)
bool remove_net_transform (PandaNode *node)
bool has_net_transform (PandaNode *node) const
void clear_net_transforms ()
bool add_local_transform (PandaNode *node)
bool remove_local_transform (PandaNode *node)
bool has_local_transform (PandaNode *node) const
void clear_local_transforms ()
void get_transform (LMatrix4f &transform) const
virtual void write_datagram (BamWriter *manager, Datagram &me)
virtual int complete_pointers (TypedWritable **p_list, BamReader *manager)
 PT (PandaNode) _geom_node
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

void register_with_read_factory (void)
TypedWritablemake_CharacterJoint (const FactoryParams &params)
TypeHandle get_class_type ()
void init_type ()

Public Attributes

PUBLISHED __pad0__: bool add_net_transform(PandaNode *node)
LMatrix4f _net_transform
LMatrix4f _initial_net_transform_inverse

Protected Member Functions

 CharacterJoint ()
 CharacterJoint (const CharacterJoint &copy)
void fillin (DatagramIterator &scan, BamReader *manager)

Private Types

typedef pset< PT(PandaNodeNodeList )

Private Attributes

NodeList _net_transform_nodes
NodeList _local_transform_nodes
int _num_net_nodes
int _num_local_nodes

Static Private Attributes

TypeHandle _type_handle

Friends

class Character

Member Typedef Documentation

typedef pset< PT(PandaNode) CharacterJoint::NodeList) [private]
 

Definition at line 60 of file characterJoint.h.


Constructor & Destructor Documentation

CharacterJoint::CharacterJoint  )  [protected]
 

Definition at line 36 of file characterJoint.cxx.

Referenced by make_copy().

CharacterJoint::CharacterJoint const CharacterJoint &  copy  )  [protected]
 

Definition at line 45 of file characterJoint.cxx.

CharacterJoint::CharacterJoint PartGroup parent,
const string &  name,
const LMatrix4f &  initial_value
 

Definition at line 59 of file characterJoint.cxx.

References _initial_net_transform_inverse, _net_transform, invert, and update_internals().


Member Function Documentation

bool CharacterJoint::add_local_transform PandaNode node  ) 
 

Definition at line 212 of file characterJoint.cxx.

References _local_transform_nodes.

Referenced by complete_pointers(), and Character::copy_node_pointers().

void CharacterJoint::clear_local_transforms  ) 
 

Definition at line 250 of file characterJoint.cxx.

References _local_transform_nodes.

void CharacterJoint::clear_net_transforms  ) 
 

Definition at line 198 of file characterJoint.cxx.

References _net_transform_nodes.

int CharacterJoint::complete_pointers TypedWritable **  p_list,
BamReader manager
[virtual]
 

Reimplemented from PartGroup.

Definition at line 328 of file characterJoint.cxx.

References _num_local_nodes, _num_net_nodes, add_local_transform(), PartGroup::complete_pointers(), and DCAST.

void CharacterJoint::fillin DatagramIterator scan,
BamReader manager
[protected]
 

Reimplemented from MovingPart< ACMatrixSwitchType >.

Definition at line 303 of file characterJoint.cxx.

References _initial_net_transform_inverse, _num_local_nodes, _num_net_nodes, MovingPart< ACMatrixSwitchType >::fillin(), DatagramIterator::get_uint16(), and BamReader::read_pointer().

Referenced by make_CharacterJoint().

virtual TypeHandle CharacterJoint::force_init_type void   )  [inline, virtual]
 

Reimplemented from MovingPartMatrix.

Definition at line 93 of file characterJoint.h.

References PartGroup::get_class_type(), and MovingPartMatrix::init_type().

TypeHandle CharacterJoint::get_class_type void   )  [inline, static]
 

Reimplemented from PartGroup.

Definition at line 94 of file characterJoint.h.

Referenced by Character::copy_node_pointers(), CharacterMaker::parent_joint_nodes(), CharacterMaker::part_to_node(), register_with_read_factory(), and update_internals().

void CharacterJoint::get_transform LMatrix4f &  transform  )  const
 

Definition at line 261 of file characterJoint.cxx.

References MovingPart< ACMatrixSwitchType >::_value, and transform.

virtual TypeHandle CharacterJoint::get_type void   )  const [inline, virtual]
 

Reimplemented from MovingPartMatrix.

Definition at line 90 of file characterJoint.h.

References PartGroup::get_class_type().

bool CharacterJoint::has_local_transform PandaNode node  )  const
 

Definition at line 238 of file characterJoint.cxx.

References _local_transform_nodes.

bool CharacterJoint::has_net_transform PandaNode node  )  const
 

Definition at line 186 of file characterJoint.cxx.

References _net_transform_nodes.

void CharacterJoint::init_type void   )  [inline, static]
 

Reimplemented from MovingPartMatrix.

Definition at line 97 of file characterJoint.h.

References PartGroup::get_class_type(), MovingPartMatrix::init_type(), and register_type().

Referenced by init_libchar().

TypedWritable * CharacterJoint::make_CharacterJoint const FactoryParams params  )  [static]
 

Definition at line 350 of file characterJoint.cxx.

References fillin(), params, and parse_params().

Referenced by register_with_read_factory().

PartGroup * CharacterJoint::make_copy  )  const [virtual]
 

Reimplemented from PartGroup.

Definition at line 79 of file characterJoint.cxx.

References CharacterJoint().

CharacterJoint::PT PandaNode   ) 
 

void CharacterJoint::register_with_read_factory void   )  [static]
 

Reimplemented from MovingPartMatrix.

Definition at line 367 of file characterJoint.cxx.

References get_class_type(), BamReader::get_factory(), make_CharacterJoint(), and Factory< TypedWritable >::register_factory().

Referenced by init_libchar().

bool CharacterJoint::remove_local_transform PandaNode node  ) 
 

Definition at line 226 of file characterJoint.cxx.

References _local_transform_nodes.

bool CharacterJoint::remove_net_transform PandaNode node  ) 
 

Definition at line 174 of file characterJoint.cxx.

References _net_transform_nodes.

bool CharacterJoint::update_internals PartGroup parent,
bool  self_changed,
bool  parent_changed
[virtual]
 

Reimplemented from MovingPartBase.

Definition at line 99 of file characterJoint.cxx.

References _local_transform_nodes, _net_transform, _net_transform_nodes, MovingPart< ACMatrixSwitchType >::_value, CPT, DCAST, get_class_type(), TypedObject::is_of_type(), NULL, PandaNode::set_transform(), and t.

Referenced by CharacterJoint().

void CharacterJoint::write_datagram BamWriter manager,
Datagram me
[virtual]
 

Reimplemented from MovingPart< ACMatrixSwitchType >.

Definition at line 272 of file characterJoint.cxx.

References _initial_net_transform_inverse, _local_transform_nodes, _net_transform_nodes, Datagram::add_uint16(), MovingPart< ACMatrixSwitchType >::write_datagram(), and BamWriter::write_pointer().


Friends And Related Function Documentation

friend class Character [friend]
 

Reimplemented from PartGroup.

Definition at line 106 of file characterJoint.h.


Member Data Documentation

PUBLISHED CharacterJoint::__pad0__
 

Reimplemented from MovingPartMatrix.

Definition at line 47 of file characterJoint.h.

LMatrix4f CharacterJoint::_initial_net_transform_inverse
 

Definition at line 87 of file characterJoint.h.

Referenced by CharacterJoint(), fillin(), ComputedVertices::update(), and write_datagram().

NodeList CharacterJoint::_local_transform_nodes [private]
 

Definition at line 62 of file characterJoint.h.

Referenced by add_local_transform(), clear_local_transforms(), Character::copy_node_pointers(), has_local_transform(), remove_local_transform(), update_internals(), and write_datagram().

LMatrix4f CharacterJoint::_net_transform
 

Definition at line 86 of file characterJoint.h.

Referenced by CharacterJoint(), CharacterMaker::parent_joint_nodes(), ComputedVertices::update(), and update_internals().

NodeList CharacterJoint::_net_transform_nodes [private]
 

Definition at line 61 of file characterJoint.h.

Referenced by clear_net_transforms(), Character::copy_node_pointers(), has_net_transform(), remove_net_transform(), update_internals(), and write_datagram().

int CharacterJoint::_num_local_nodes [private]
 

Definition at line 76 of file characterJoint.h.

Referenced by complete_pointers(), and fillin().

int CharacterJoint::_num_net_nodes [private]
 

Definition at line 76 of file characterJoint.h.

Referenced by complete_pointers(), and fillin().

TypeHandle CharacterJoint::_type_handle [static, private]
 

Reimplemented from MovingPartMatrix.

Definition at line 28 of file characterJoint.cxx.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:11:31 2003 for Panda by doxygen1.3