#include <partGroup.h>
Inheritance diagram for PartGroup:
Public Types | |
enum | HierarchyMatchFlags { HMF_ok_part_extra = 0x01, HMF_ok_anim_extra = 0x02, HMF_ok_wrong_root_name = 0x04 } |
Public Member Functions | |
PartGroup (PartGroup *parent, const string &name) | |
virtual | ~PartGroup () |
virtual PartGroup * | make_copy () const |
PartGroup * | copy_subgraph () const |
PartGroup * | get_child (int n) const |
PartGroup * | find_child (const string &name) const |
virtual void | write (ostream &out, int indent_level) const |
virtual void | write_with_value (ostream &out, int indent_level) const |
virtual TypeHandle | get_value_type () const |
void | sort_descendants () |
bool | check_hierarchy (const AnimGroup *anim, const PartGroup *parent, int hierarchy_match_flags=0) const |
virtual bool | do_update (PartBundle *root, PartGroup *parent, bool parent_changed, bool anim_changed) |
virtual void | write_datagram (BamWriter *manager, Datagram &me) |
virtual int | complete_pointers (TypedWritable **p_list, BamReader *manager) |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
void | register_with_read_factory (void) |
TypedWritable * | make_PartGroup (const FactoryParams ¶ms) |
TypeHandle | get_class_type () |
void | init_type () |
Public Attributes | |
PUBLISHED | __pad0__: int get_num_children() const |
Protected Types | |
typedef pvector< PT(PartGroup) | Children ) |
Protected Member Functions | |
INLINE | PartGroup (const string &name="") |
INLINE | PartGroup (const PartGroup ©) |
void | write_descendants (ostream &out, int indent_level) const |
void | write_descendants_with_value (ostream &out, int indent_level) const |
virtual void | pick_channel_index (plist< int > &holes, int &next) const |
virtual void | bind_hierarchy (AnimGroup *anim, int channel_index) |
void | fillin (DatagramIterator &scan, BamReader *manager) |
Protected Attributes | |
Children | _children |
Private Attributes | |
int | _num_children |
Static Private Attributes | |
TypeHandle | _type_handle |
Friends | |
class | Character |
|
Definition at line 96 of file partGroup.h. |
|
Definition at line 48 of file partGroup.h. |
|
Referenced by make_copy(). |
|
|
|
Definition at line 42 of file partGroup.cxx. |
|
Definition at line 54 of file partGroup.cxx. |
|
Reimplemented in MovingPartBase. Definition at line 435 of file partGroup.cxx. References get_child(), and NULL. Referenced by MovingPartBase::bind_hierarchy(). |
|
Definition at line 196 of file partGroup.cxx. References AnimGroup::get_child(), get_child(), Namable::get_name(), get_value_type(), AnimGroup::get_value_type(), HMF_ok_anim_extra, and HMF_ok_part_extra. |
|
Reimplemented from TypedWritable. Reimplemented in CharacterJoint. Definition at line 512 of file partGroup.cxx. References _children, _num_children, DCAST, TypeHandle::get_name(), get_type(), and TypedWritable::Null. Referenced by CharacterJoint::complete_pointers(). |
|
Definition at line 75 of file partGroup.cxx. References _children, get_type(), make_copy(), and root. |
|
Reimplemented in MovingPartBase. Definition at line 363 of file partGroup.cxx. References _children, and root. Referenced by PartBundle::finalize(), PartBundle::force_update(), and PartBundle::update(). |
|
Reimplemented from TypedWritable. Reimplemented in MovingPart< SwitchType >, CharacterJoint, MovingPart< ACScalarSwitchType >, and MovingPart< ACMatrixSwitchType >. Definition at line 493 of file partGroup.cxx. References _num_children, DatagramIterator::get_string(), DatagramIterator::get_uint16(), BamReader::read_pointer(), and Namable::set_name(). Referenced by CharacterJointBundle::make_CharacterJointBundle(), PartBundle::make_PartBundle(), and make_PartGroup(). |
|
Definition at line 122 of file partGroup.cxx. |
|
Reimplemented from TypedWritableReferenceCount. Reimplemented in MovingPart< SwitchType >, MovingPartBase, MovingPartMatrix, MovingPartScalar, PartBundle, CharacterJoint, CharacterJointBundle, CharacterSlider, MovingPart< ACScalarSwitchType >, and MovingPart< ACMatrixSwitchType >. Definition at line 118 of file partGroup.h. References Namable::get_class_type(), and Namable::init_type(). |
|
Definition at line 110 of file partGroup.cxx. References _children, n, and NULL. Referenced by bind_hierarchy(), check_hierarchy(), and CharacterMaker::parent_joint_nodes(). |
|
|
Reimplemented from TypedWritableReferenceCount. Reimplemented in MovingPart< SwitchType >, MovingPartBase, MovingPartMatrix, MovingPartScalar, PartBundle, CharacterJoint, CharacterJointBundle, CharacterSlider, MovingPart< ACScalarSwitchType >, and MovingPart< ACMatrixSwitchType >. Definition at line 115 of file partGroup.h. References Namable::get_class_type(). Referenced by complete_pointers(), Character::copy_joints(), copy_subgraph(), write(), and write_with_value(). |
|
Reimplemented in MovingPart< SwitchType >, MovingPartBase, MovingPart< ACScalarSwitchType >, and MovingPart< ACMatrixSwitchType >. Definition at line 147 of file partGroup.cxx. References TypeHandle::none(). Referenced by check_hierarchy(). |
|
Reimplemented from Namable. Reimplemented in MovingPart< SwitchType >, MovingPartBase, MovingPartMatrix, MovingPartScalar, PartBundle, CharacterJoint, CharacterJointBundle, CharacterSlider, MovingPart< ACScalarSwitchType >, and MovingPart< ACMatrixSwitchType >. Definition at line 124 of file partGroup.h. References ReferenceCount::get_class_type(), TypedWritableReferenceCount::init_type(), and register_type(). Referenced by ConfigureFn(), PartBundle::force_init_type(), MovingPartBase::force_init_type(), PartBundle::init_type(), and MovingPartBase::init_type(). |
|
Reimplemented in PartBundle, CharacterJoint, CharacterJointBundle, and CharacterSlider. Definition at line 64 of file partGroup.cxx. References PartGroup(). Referenced by Character::copy_joints(), and copy_subgraph(). |
|
Definition at line 537 of file partGroup.cxx. References fillin(), params, and parse_params(). Referenced by register_with_read_factory(). |
|
Reimplemented in MovingPartBase. Definition at line 420 of file partGroup.cxx. References _children. Referenced by MovingPartBase::pick_channel_index(). |
|
Reimplemented in MovingPartMatrix, MovingPartScalar, PartBundle, CharacterJoint, CharacterJointBundle, and CharacterSlider. Definition at line 554 of file partGroup.cxx. References get_class_type(), BamReader::get_factory(), make_PartGroup(), and Factory< TypedWritable >::register_factory(). Referenced by ConfigureFn(). |
|
Definition at line 170 of file partGroup.cxx. References _children. Referenced by CharacterMaker::make_bundle(). |
|
Reimplemented in MovingPartBase, and PartBundle. Definition at line 328 of file partGroup.cxx. References Namable::get_name(), get_type(), indent(), and write_descendants(). |
|
Implements TypedWritableReferenceCount. Reimplemented in MovingPart< SwitchType >, CharacterJoint, MovingPart< ACScalarSwitchType >, and MovingPart< ACMatrixSwitchType >. Definition at line 473 of file partGroup.cxx. References _children, Datagram::add_string(), Datagram::add_uint16(), Namable::get_name(), and BamWriter::write_pointer(). |
|
Definition at line 385 of file partGroup.cxx. References _children. Referenced by write(), PartBundle::write(), and MovingPartBase::write(). |
|
Definition at line 400 of file partGroup.cxx. References _children. Referenced by write_with_value(), and MovingPartBase::write_with_value(). |
|
Reimplemented in MovingPartBase. Definition at line 342 of file partGroup.cxx. References Namable::get_name(), get_type(), indent(), and write_descendants_with_value(). |
|
Reimplemented in CharacterJoint. Definition at line 133 of file partGroup.h. |
|
Reimplemented from Namable. Reimplemented in MovingPart< SwitchType >, MovingPartBase, MovingPartMatrix, PartBundle, CharacterJoint, CharacterJointBundle, MovingPart< ACScalarSwitchType >, and MovingPart< ACMatrixSwitchType >. Definition at line 71 of file partGroup.h. |
|
Definition at line 97 of file partGroup.h. Referenced by complete_pointers(), Character::copy_joints(), copy_subgraph(), do_update(), MovingPartBase::do_update(), find_child(), get_child(), PartGroup(), pick_channel_index(), sort_descendants(), MovingPartBase::write(), write_datagram(), write_descendants(), write_descendants_with_value(), and MovingPartBase::write_with_value(). |
|
Definition at line 111 of file partGroup.h. Referenced by complete_pointers(), and fillin(). |
|
Reimplemented from Namable. Reimplemented in MovingPart< SwitchType >, MovingPartBase, MovingPartMatrix, MovingPartScalar, PartBundle, CharacterJoint, CharacterJointBundle, CharacterSlider, MovingPart< ACScalarSwitchType >, and MovingPart< ACMatrixSwitchType >. Definition at line 32 of file partGroup.cxx. |