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

CharacterJoint Class Reference

This represents one joint of the character's animation, containing an animating transform matrix. More...

#include <characterJoint.h>

Inheritance diagram for CharacterJoint:

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

Public Types

typedef TYPENAME ACMatrixSwitchType::ValueType ValueType
typedef AnimChannel< ACMatrixSwitchTypeChannelType
enum  HierarchyMatchFlags { HMF_ok_part_extra = 0x01, HMF_ok_anim_extra = 0x02, HMF_ok_wrong_root_name = 0x04 }

Public Member Functions

 CharacterJoint (PartGroup *parent, const string &name, const LMatrix4f &initial_value)
virtual PartGroupmake_copy () const
 Allocates and returns a new copy of the node.

virtual bool update_internals (PartGroup *parent, bool self_changed, bool parent_changed)
 This is called by do_update() whenever the part or some ancestor has changed values.

bool add_net_transform (PandaNode *node)
 Adds the indicated node to the list of nodes that will be updated each frame with the joint's net transform from the root.

bool remove_net_transform (PandaNode *node)
 Removes the indicated node from the list of nodes that will be updated each frame with the joint's net transform from the root.

bool has_net_transform (PandaNode *node) const
 Returns true if the node is on the list of nodes that will be updated each frame with the joint's net transform from the root, false otherwise.

void clear_net_transforms ()
 Removes all nodes from the list of nodes that will be updated each frame with the joint's net transform from the root.

bool add_local_transform (PandaNode *node)
 Adds the indicated node to the list of nodes that will be updated each frame with the joint's local transform from its parent.

bool remove_local_transform (PandaNode *node)
 Removes the indicated node from the list of nodes that will be updated each frame with the joint's local transform from its parent.

bool has_local_transform (PandaNode *node) const
 Returns true if the node is on the list of nodes that will be updated each frame with the joint's local transform from its parent, false otherwise.

void clear_local_transforms ()
 Removes all nodes from the list of nodes that will be updated each frame with the joint's local transform from its parent.

void get_transform (LMatrix4f &transform) const
 Copies the joint's current transform into the indicated matrix.

virtual void write_datagram (BamWriter *manager, Datagram &me)
 Function to write the important information in the particular object to a Datagram.

virtual int complete_pointers (TypedWritable **p_list, BamReader *manager)
 Takes in a vector of pointes to TypedWritable objects that correspond to all the requests for pointers that this object made to BamReader.

 PT (PandaNode) _geom_node
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()
virtual void get_blend_value (const PartBundle *root)
 Attempts to blend the various matrix values indicated, and sets the _value member to the resulting matrix.

virtual TypeHandle get_value_type () const
 Returns the TypeHandle associated with the ValueType we are concerned with.

virtual AnimChannelBasemake_initial_channel () const
virtual void output_value (ostream &out) const
virtual void write (ostream &out, int indent_level) const
 Writes a brief description of the channel and all of its descendants.

virtual void write_with_value (ostream &out, int indent_level) const
 Writes a brief description of the channel and all of its descendants, along with their values.

virtual bool do_update (PartBundle *root, PartGroup *parent, bool parent_changed, bool anim_changed)
 Recursively update this particular part and all of its descendents for the current frame.

PartGroupcopy_subgraph () const
 Allocates and returns a new copy of this node and of all of its children.

int get_num_children () const
 Returns the number of child nodes of the group.

PartGroupget_child (int n) const
 Returns the nth child of the group.

PartGroupfind_child (const string &name) const
 Returns the first descendant found with the indicated name, or NULL if no such descendant exists.

void sort_descendants ()
 Sorts the children nodes at each level of the hierarchy into alphabetical order.

bool check_hierarchy (const AnimGroup *anim, const PartGroup *parent, int hierarchy_match_flags=0) const
 Walks the part hierarchy in tandem with the indicated anim hierarchy, and returns true if the hierarchies match, false otherwise.

virtual void finalize ()
 Called by the BamReader to perform any final actions needed for setting up the object after all objects have been read and all pointers have been completed.

int get_type_index () const
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.

bool is_of_type (TypeHandle handle) const
 Returns true if the current object is or derives from the indicated type.

bool is_exact_type (TypeHandle handle) const
 Returns true if the current object is the indicated type exactly.

int get_ref_count () const
 Returns the current reference count.

int ref () const
 Explicitly increments the reference count.

int unref () const
 Explicitly decrements the reference count.

void test_ref_count_integrity () const
 Does some easy checks to make sure that the reference count isn't completely bogus.

void set_name (const string &name)
void clear_name ()
 Resets the Namable's name to empty.

bool has_name () const
 Returns true if the Namable has a nonempty name set, false if the name is empty.

const string & get_name () const
void output (ostream &out) const
 Outputs the Namable.


Static Public Member Functions

void register_with_read_factory (void)
 Factory method to generate a CharacterJoint object.

TypedWritablemake_CharacterJoint (const FactoryParams &params)
 Factory method to generate a CharacterJoint object.

TypeHandle get_class_type ()
void init_type ()
TypedWritablemake_MovingPartMatrix (const FactoryParams &params)
 Factory method to generate a MovingPartMatrix object.

TypedWritablemake_PartGroup (const FactoryParams &params)
 Factory method to generate a PartGroup object.


Public Attributes

LMatrix4f _net_transform
LMatrix4f _initial_net_transform_inverse
ValueType _value
ValueType _initial_value

Static Public Attributes

TypedWritable *const Null = (TypedWritable*)0L

Protected Types

typedef pvector< PointerTo<
AnimChannelBase > > 
Channels
typedef pvector< PointerTo<
PartGroup > > 
Children

Protected Member Functions

 CharacterJoint ()
 For internal use only.

 CharacterJoint (const CharacterJoint &copy)
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.

virtual void pick_channel_index (plist< int > &holes, int &next) const
 Walks the part hierarchy, looking for a suitable channel index number to use.

virtual void bind_hierarchy (AnimGroup *anim, int channel_index)
 Binds the indicated anim hierarchy to the part hierarchy, at the given channel index number.

void write_descendants (ostream &out, int indent_level) const
 Writes a brief description of all of the group's descendants.

void write_descendants_with_value (ostream &out, int indent_level) const
 Writes a brief description of all of the group's descendants and their values.


Protected Attributes

Channels _channels
Children _children

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

Detailed Description

This represents one joint of the character's animation, containing an animating transform matrix.

Definition at line 39 of file characterJoint.h.


Member Typedef Documentation

typedef pvector< PointerTo< AnimChannelBase > > MovingPartBase::Channels [protected, inherited]
 

Definition at line 76 of file movingPartBase.h.

typedef AnimChannel<ACMatrixSwitchType> MovingPart< ACMatrixSwitchType >::ChannelType [inherited]
 

Definition at line 45 of file movingPart.h.

typedef pvector< PointerTo< PartGroup > > PartGroup::Children [protected, inherited]
 

Definition at line 103 of file partGroup.h.

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

Definition at line 67 of file characterJoint.h.

typedef TYPENAME ACMatrixSwitchType::ValueType MovingPart< ACMatrixSwitchType >::ValueType [inherited]
 

Definition at line 44 of file movingPart.h.


Member Enumeration Documentation

enum PartGroup::HierarchyMatchFlags [inherited]
 

Enumeration values:
HMF_ok_part_extra 
HMF_ok_anim_extra 
HMF_ok_wrong_root_name 

Definition at line 55 of file partGroup.h.


Constructor & Destructor Documentation

CharacterJoint::CharacterJoint  )  [protected]
 

For internal use only.

Definition at line 42 of file characterJoint.cxx.

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

Definition at line 53 of file characterJoint.cxx.

References update_internals().

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

Definition at line 69 of file characterJoint.cxx.

References _initial_net_transform_inverse.


Member Function Documentation

bool CharacterJoint::add_local_transform PandaNode node  ) 
 

Adds the indicated node to the list of nodes that will be updated each frame with the joint's local transform from its parent.

Returns true if the node is successfully added, false if it had already been added.

Definition at line 270 of file characterJoint.cxx.

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

Referenced by clear_local_transforms().

bool CharacterJoint::add_net_transform PandaNode node  ) 
 

Adds the indicated node to the list of nodes that will be updated each frame with the joint's net transform from the root.

Returns true if the node is successfully added, false if it had already been added.

Definition at line 194 of file characterJoint.cxx.

References _net_transform_nodes.

Referenced by clear_local_transforms().

void MovingPartBase::bind_hierarchy AnimGroup anim,
int  channel_index
[protected, virtual, inherited]
 

Binds the indicated anim hierarchy to the part hierarchy, at the given channel index number.

Reimplemented from PartGroup.

Definition at line 254 of file movingPartBase.cxx.

bool PartGroup::check_hierarchy const AnimGroup anim,
const PartGroup parent,
int  hierarchy_match_flags = 0
const [inherited]
 

Walks the part hierarchy in tandem with the indicated anim hierarchy, and returns true if the hierarchies match, false otherwise.

If hierarchy_match_flags is 0, only an exact match is accepted; otherwise, it may contain a union of PartGroup::HierarchyMatchFlags values indicating conditions that will be tolerated (but warnings will still be issued).

If there is a discrepancy, it is reported to the indicated output stream, if it is non-null.

Definition at line 251 of file partGroup.cxx.

void CharacterJoint::clear_local_transforms  ) 
 

Removes all nodes from the list of nodes that will be updated each frame with the joint's local transform from its parent.

Definition at line 325 of file characterJoint.cxx.

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

void Namable::clear_name  )  [inline, inherited]
 

Resets the Namable's name to empty.

Definition at line 82 of file namable.I.

References Namable::_name, and INLINE.

void CharacterJoint::clear_net_transforms  ) 
 

Removes all nodes from the list of nodes that will be updated each frame with the joint's net transform from the root.

Definition at line 249 of file characterJoint.cxx.

References _local_transform_nodes.

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

Takes in a vector of pointes to TypedWritable objects that correspond to all the requests for pointers that this object made to BamReader.

Reimplemented from PartGroup.

Definition at line 422 of file characterJoint.cxx.

PartGroup * PartGroup::copy_subgraph  )  const [inherited]
 

Allocates and returns a new copy of this node and of all of its children.

Definition at line 93 of file partGroup.cxx.

References PartGroup::_children.

bool MovingPartBase::do_update PartBundle root,
PartGroup parent,
bool  parent_changed,
bool  anim_changed
[virtual, inherited]
 

Recursively update this particular part and all of its descendents for the current frame.

This is not really public and is not intended to be called directly; it is called from the top of the tree by PartBundle::update().

The return value is true if any part has changed, false otherwise.

Reimplemented from PartGroup.

Definition at line 125 of file movingPartBase.cxx.

References MovingPartBase::update_internals().

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

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 MovingPart< ACMatrixSwitchType >.

Definition at line 392 of file characterJoint.cxx.

void TypedWritable::finalize void   )  [virtual, inherited]
 

Called by the BamReader to perform any final actions needed for setting up the object after all objects have been read and all pointers have been completed.

Reimplemented in PartBundle, RenderAttrib, RenderEffect, RenderEffects, RenderState, and TransformState.

Definition at line 112 of file typedWritable.cxx.

Referenced by BamReader::skip_pointer().

PartGroup * PartGroup::find_child const string &  name  )  const [inherited]
 

Returns the first descendant found with the indicated name, or NULL if no such descendant exists.

Definition at line 150 of file partGroup.cxx.

References Namable::get_name(), PartGroupAlphabeticalOrder::operator()(), and PT.

Referenced by PartGroup::get_num_children().

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

Reimplemented from MovingPartMatrix.

Definition at line 100 of file characterJoint.h.

void MovingPartMatrix::get_blend_value const PartBundle root  )  [virtual, inherited]
 

Attempts to blend the various matrix values indicated, and sets the _value member to the resulting matrix.

Implements MovingPartBase.

Definition at line 51 of file movingPartMatrix.cxx.

References MovingPartBase::_channels, and MovingPart< ACMatrixSwitchType >::_value.

PartGroup * PartGroup::get_child int  n  )  const [inherited]
 

Returns the nth child of the group.

Definition at line 134 of file partGroup.cxx.

References NULL.

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

Reimplemented from MovingPartMatrix.

Definition at line 101 of file characterJoint.h.

Referenced by CharacterMaker::egg_to_index(), and make_copy().

const string & Namable::get_name  )  const [inline, inherited]
 

Definition at line 109 of file namable.I.

Referenced by ComputedVerticesMaker::add_normal(), GLGraphicsStateGuardian::begin_bind_clip_planes(), GLGraphicsStateGuardian::begin_bind_lights(), BuilderBucket::BuilderBucket(), EggVertex::clear_grefs(), AnimBundleMaker::create_xfm_channel(), SceneGraphReducer::do_flatten_siblings(), BuilderBucket::done_geom(), DXTextureContext8::DXTextureContext8(), PartGroup::find_child(), EggLoader::find_collision_geometry(), EggGroupUniquifier::get_category(), PartBundle::get_control_effect(), PartGroup::get_num_children(), EggMorph< Parameter >::get_offset(), AnimChannelBase::has_changed(), Namable::has_name(), EggMaterial::is_equivalent_to(), Texture::load(), EggLoader::make_node(), AnimBundleMaker::make_node(), FindApproxPath::Component::matches(), LineSegs::move_to(), MovingPartBase::MovingPartBase(), NodeMap::NodeMap(), EggMorph< Parameter >::operator<(), operator<<(), MouseWatcherRegion::output(), AnimGroup::output(), EggXfmSAnim::r_transform(), Texture::read(), MouseWatcherGroup::remove_region(), EggLoader::reparent_decals(), CRGraphicsStateGuardian::set_blend_mode(), NodePath::set_color(), GLGraphicsStateGuardian::set_draw_buffer(), AnimChannelScalarTable::set_table(), NodePath::set_transparency(), NodePathComponent::uncollapse(), Texture::unprepare(), TextNode::wordwrap_to(), MovingPartBase::write(), CollisionNode::xform(), and EggVertex::~EggVertex().

int PartGroup::get_num_children  )  const [inherited]
 

Returns the number of child nodes of the group.

Definition at line 120 of file partGroup.cxx.

References PartGroup::_children, PartGroup::find_child(), Namable::get_name(), and NULL.

int ReferenceCount::get_ref_count  )  const [inline, inherited]
 

Returns the current reference count.

Definition at line 183 of file referenceCount.I.

Referenced by RenderState::determine_bin_index(), RenderEffects::determine_show_bounds(), FontPool::ns_garbage_collect(), TexturePool::ns_garbage_collect(), MaterialPool::ns_get_material(), and TexturePool::ns_release_texture().

void CharacterJoint::get_transform LMatrix4f &  transform  )  const
 

Copies the joint's current transform into the indicated matrix.

Definition at line 340 of file characterJoint.cxx.

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

Reimplemented from MovingPartMatrix.

Definition at line 97 of file characterJoint.h.

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

int TypedObject::get_type_index  )  const [inline, inherited]
 

Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.

This is equivalent to get_type().get_index().

Definition at line 71 of file typedObject.I.

References TypeHandle::get_name(), TypedObject::get_type(), and INLINE.

virtual TypeHandle MovingPart< ACMatrixSwitchType >::get_value_type  )  const [virtual, inherited]
 

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.

bool CharacterJoint::has_local_transform PandaNode node  )  const
 

Returns true if the node is on the list of nodes that will be updated each frame with the joint's local transform from its parent, false otherwise.

Definition at line 308 of file characterJoint.cxx.

References _num_net_nodes, and BamReader::read_pointer().

bool Namable::has_name  )  const [inline, inherited]
 

Returns true if the Namable has a nonempty name set, false if the name is empty.

Definition at line 97 of file namable.I.

References Namable::get_name(), and INLINE.

Referenced by EggGroupUniquifier::EggGroupUniquifier(), Texture::read(), and Texture::Texture().

bool CharacterJoint::has_net_transform PandaNode node  )  const
 

Returns true if the node is on the list of nodes that will be updated each frame with the joint's net transform from the root, false otherwise.

Definition at line 232 of file characterJoint.cxx.

References _local_transform_nodes.

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

Reimplemented from MovingPartMatrix.

Definition at line 104 of file characterJoint.h.

bool TypedObject::is_exact_type TypeHandle  handle  )  const [inline, inherited]
 

Returns true if the current object is the indicated type exactly.

Definition at line 101 of file typedObject.I.

Referenced by PT(), and CollisionNode::xform().

bool TypedObject::is_of_type TypeHandle  handle  )  const [inline, inherited]
 

Returns true if the current object is or derives from the indicated type.

Definition at line 86 of file typedObject.I.

Referenced by EggMaterialCollection::collapse_equivalent_materials(), EggTextureCollection::collapse_equivalent_textures(), DeferredNodeProperty::compose(), AnimBundleMaker::create_s_channel(), CharacterMaker::create_slider(), ProjectionScreen::cull_callback(), DataNode::define_output(), EggNode::determine_draw_order(), CharacterMaker::egg_to_index(), EggGroupUniquifier::EggGroupUniquifier(), EggPoolUniquifier::EggPoolUniquifier(), EggGroupNode::find_textures(), StaticTextFont::get_glyph(), EggMaterialCollection::insert_materials(), EggTextureCollection::insert_textures(), make_copy(), PT(), EggGroupNode::r_flatten_transforms(), EggGroupNode::r_transform_vertices(), EggGroupNode::recompute_polygon_normals(), CollisionLevelState::reserve(), PandaFramework::reset_frame_rate(), PandaFramework::set_texture(), EggGroupNode::steal_children(), and DataGraphTraverser::traverse().

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

Factory method to generate a CharacterJoint object.

Definition at line 447 of file characterJoint.cxx.

PartGroup * CharacterJoint::make_copy void   )  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 93 of file characterJoint.cxx.

References _net_transform, _net_transform_nodes, MovingPart< ACMatrixSwitchType >::_value, CPT, DCAST, get_class_type(), TypedObject::is_of_type(), TransformState::make_mat(), nassertr, NULL, and t.

virtual AnimChannelBase* MovingPart< ACMatrixSwitchType >::make_initial_channel  )  const [virtual, inherited]
 

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.

TypedWritable * MovingPartMatrix::make_MovingPartMatrix const FactoryParams params  )  [static, inherited]
 

Factory method to generate a MovingPartMatrix object.

Definition at line 151 of file movingPartMatrix.cxx.

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

Referenced by MovingPartMatrix::make_MovingPartMatrix().

TypedWritable * PartGroup::make_PartGroup const FactoryParams params  )  [static, inherited]
 

Factory method to generate a PartGroup object.

Definition at line 646 of file partGroup.cxx.

void Namable::output ostream &  out  )  const [inline, inherited]
 

Outputs the Namable.

This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.

Reimplemented in BuilderBucket, AnimBundle, AnimChannelBase, AnimChannelFixed< SwitchType >, AnimGroup, PartBundle, CollisionNode, ButtonNode, HermiteCurve, RopeNode, Fog, GeomNode, LensNode, LightLensNode, LightNode, LODNode, PandaNode, PlaneNode, MouseWatcher, and MouseWatcherRegion.

Definition at line 126 of file namable.I.

virtual void MovingPart< ACMatrixSwitchType >::output_value ostream &  out  )  const [virtual, inherited]
 

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

Implements MovingPartBase.

void MovingPartBase::pick_channel_index plist< int > &  holes,
int &  next
const [protected, virtual, inherited]
 

Walks the part hierarchy, looking for a suitable channel index number to use.

Available index numbers are the elements of the holes set, as well as next to infinity.

Reimplemented from PartGroup.

Definition at line 207 of file movingPartBase.cxx.

References MovingPartBase::_channels, PartGroup::bind_hierarchy(), DCAST, MovingPartBase::make_initial_channel(), and nassertv.

CharacterJoint::PT PandaNode   ) 
 

int ReferenceCount::ref  )  const [inline, inherited]
 

Explicitly increments the reference count.

User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.

This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.

The return value is the new reference count.

Definition at line 225 of file referenceCount.I.

Referenced by ClientDevice::ClientDevice(), EggGroupNode::find_textures(), EggGroupNode::r_apply_texmats(), EggGroupNode::r_flatten_transforms(), and EggGroupNode::reverse_vertex_ordering().

void CharacterJoint::register_with_read_factory void   )  [static]
 

Factory method to generate a CharacterJoint object.

Reimplemented from MovingPartMatrix.

Definition at line 467 of file characterJoint.cxx.

bool CharacterJoint::remove_local_transform PandaNode node  ) 
 

Removes the indicated node from the list of nodes that will be updated each frame with the joint's local transform from its parent.

Returns true if the node is successfully removed, false if it was not on the list.

Definition at line 291 of file characterJoint.cxx.

References _initial_net_transform_inverse.

bool CharacterJoint::remove_net_transform PandaNode node  ) 
 

Removes the indicated node from the list of nodes that will be updated each frame with the joint's net transform from the root.

Returns true if the node is successfully removed, false if it was not on the list.

Definition at line 215 of file characterJoint.cxx.

References _local_transform_nodes.

void Namable::set_name const string &  name  )  [inline, inherited]
 

Definition at line 69 of file namable.I.

References Namable::_name.

Referenced by BuilderBucket::BuilderBucket(), SceneGraphReducer::do_flatten_siblings(), Texture::read(), PandaNode::reparent(), and Texture::Texture().

void PartGroup::sort_descendants  )  [inherited]
 

Sorts the children nodes at each level of the hierarchy into alphabetical order.

This should be done after creating the hierarchy, to guarantee that the correct names will match up together when the AnimBundle is later bound to a PlayerRoot.

Definition at line 211 of file partGroup.cxx.

References AnimGroup::get_num_children().

void ReferenceCount::test_ref_count_integrity  )  const [inline, inherited]
 

Does some easy checks to make sure that the reference count isn't completely bogus.

Definition at line 328 of file referenceCount.I.

References INLINE.

Referenced by EggNode::determine_bin(), and ReferenceCount::~ReferenceCount().

int ReferenceCount::unref  )  const [inline, inherited]
 

Explicitly decrements the reference count.

Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic; plus, we don't have a virtual destructor anyway.) However, see the helper function unref_delete().

User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.

This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.

The return value is the new reference count.

Definition at line 293 of file referenceCount.I.

References INLINE.

Referenced by RenderState::determine_bin_index(), and RenderEffects::determine_show_bounds().

bool CharacterJoint::update_internals PartGroup parent,
bool  self_changed,
bool  parent_changed
[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.

In the case of a CharacterJoint, of course, it means to recompute the joint angles and associated transforms for this particular joint.

Reimplemented from MovingPartBase.

Definition at line 126 of file characterJoint.cxx.

References _net_transform_nodes.

Referenced by CharacterJoint().

void MovingPartBase::write ostream &  out,
int  indent_level
const [virtual, inherited]
 

Writes a brief description of the channel and all of its descendants.

Reimplemented from PartGroup.

Definition at line 66 of file movingPartBase.cxx.

References PartGroup::_children, Namable::get_name(), MovingPartBase::get_value_type(), indent(), MovingPartBase::output_value(), and PartGroup::write_descendants_with_value().

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

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

Reimplemented from MovingPart< ACMatrixSwitchType >.

Definition at line 355 of file characterJoint.cxx.

void PartGroup::write_descendants ostream &  out,
int  indent_level
const [protected, inherited]
 

Writes a brief description of all of the group's descendants.

Definition at line 462 of file partGroup.cxx.

Referenced by MovingPartBase::MovingPartBase().

void PartGroup::write_descendants_with_value ostream &  out,
int  indent_level
const [protected, inherited]
 

Writes a brief description of all of the group's descendants and their values.

Definition at line 481 of file partGroup.cxx.

Referenced by MovingPartBase::write().

void MovingPartBase::write_with_value ostream &  out,
int  indent_level
const [virtual, inherited]
 

Writes a brief description of the channel and all of its descendants, along with their values.

Reimplemented from PartGroup.

Definition at line 88 of file movingPartBase.cxx.

References MovingPartBase::_channels, AnimControl::channel_has_changed(), MovingPartBase::get_blend_value(), AnimControl::get_channel_index(), nassertr, and root.


Friends And Related Function Documentation

friend class Character [friend]
 

Reimplemented from PartGroup.

Definition at line 113 of file characterJoint.h.


Member Data Documentation

Channels MovingPartBase::_channels [protected, inherited]
 

Definition at line 77 of file movingPartBase.h.

Referenced by MovingPartScalar::get_blend_value(), MovingPartMatrix::get_blend_value(), MovingPartBase::pick_channel_index(), MovingPartBase::update_internals(), and MovingPartBase::write_with_value().

Children PartGroup::_children [protected, inherited]
 

Definition at line 104 of file partGroup.h.

Referenced by PartGroup::copy_subgraph(), PartGroup::get_num_children(), MovingPartBase::MovingPartBase(), PartGroup::pick_channel_index(), Character::update_to_now(), PartGroup::write(), and MovingPartBase::write().

LMatrix4f CharacterJoint::_initial_net_transform_inverse
 

Definition at line 94 of file characterJoint.h.

Referenced by CharacterJoint(), and remove_local_transform().

ValueType MovingPart< ACMatrixSwitchType >::_initial_value [inherited]
 

Definition at line 59 of file movingPart.h.

NodeList CharacterJoint::_local_transform_nodes [private]
 

Definition at line 69 of file characterJoint.h.

Referenced by add_local_transform(), clear_net_transforms(), has_net_transform(), and remove_net_transform().

LMatrix4f CharacterJoint::_net_transform
 

Definition at line 93 of file characterJoint.h.

Referenced by make_copy().

NodeList CharacterJoint::_net_transform_nodes [private]
 

Definition at line 68 of file characterJoint.h.

Referenced by add_local_transform(), add_net_transform(), make_copy(), and update_internals().

int CharacterJoint::_num_local_nodes [private]
 

Definition at line 83 of file characterJoint.h.

Referenced by clear_local_transforms().

int CharacterJoint::_num_net_nodes [private]
 

Definition at line 83 of file characterJoint.h.

Referenced by clear_local_transforms(), and has_local_transform().

TypeHandle CharacterJoint::_type_handle [static, private]
 

Reimplemented from MovingPartMatrix.

Definition at line 31 of file characterJoint.cxx.

ValueType MovingPart< ACMatrixSwitchType >::_value [inherited]
 

Definition at line 58 of file movingPart.h.

Referenced by MovingPartMatrix::get_blend_value(), and make_copy().

TypedWritable *const TypedWritable::Null = (TypedWritable*)0L [static, inherited]
 

Definition at line 25 of file typedWritable.cxx.

Referenced by Child::complete_pointers(), Parent::complete_pointers(), Person::complete_pointers(), LoaderFileTypeBam::get_extension(), PartGroup::pick_channel_index(), BamReader::read_pointer(), and AnimGroup::write_datagram().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:48:13 2003 for Panda by doxygen1.3