48 enum HierarchyMatchFlags {
49 HMF_ok_part_extra = 0x01,
50 HMF_ok_anim_extra = 0x02,
51 HMF_ok_wrong_root_name = 0x04,
58 INLINE
PartGroup(
const std::string &name =
"");
65 virtual bool is_character_joint()
const;
70 int get_num_children()
const;
72 MAKE_SEQ(get_children, get_num_children, get_child);
74 PartGroup *get_child_named(
const std::string &name)
const;
75 PartGroup *find_child(
const std::string &name)
const;
76 void sort_descendants();
78 MAKE_SEQ_PROPERTY(children, get_num_children, get_child);
81 virtual bool apply_freeze_matrix(
const LVecBase3 &pos,
const LVecBase3 &hpr,
const LVecBase3 &scale);
82 virtual bool apply_freeze_scalar(PN_stdfloat value);
83 virtual bool apply_control(
PandaNode *node);
84 virtual bool clear_forced_channel();
87 virtual void write(std::ostream &out,
int indent_level)
const;
88 virtual void write_with_value(std::ostream &out,
int indent_level)
const;
93 bool check_hierarchy(
const AnimGroup *anim,
95 int hierarchy_match_flags = 0)
const;
99 bool anim_changed,
Thread *current_thread);
100 virtual void do_xform(
const LMatrix4 &mat,
const LMatrix4 &inv_mat);
101 virtual void determine_effective_channels(
const CycleData *root_cdata);
104 void write_descendants(std::ostream &out,
int indent_level)
const;
105 void write_descendants_with_value(std::ostream &out,
int indent_level)
const;
107 virtual void pick_channel_index(
plist<int> &holes,
int &next)
const;
108 virtual void bind_hierarchy(
AnimGroup *anim,
int channel_index,
109 int &joint_index,
bool is_included,
112 virtual void find_bound_joints(
int &joint_index,
bool is_included,
120 static void register_with_read_factory();
132 return get_class_type();
134 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
140 static void init_type() {
141 TypedWritableReferenceCount::init_type();
143 TypedWritableReferenceCount::get_class_type());
A basic node of the scene graph or data graph.
The collection of all the joints and sliders in the character.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
An animated character, with skeleton-morph animation and either soft- skinned or hard-skinned vertice...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A single page of data maintained by a PipelineCycler.
Base class for objects that can be written to and read from Bam files.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
virtual void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is intended to be called by each class's make_from_bam() method to read in all...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is our own Panda specialization on the default STL vector.
A dynamic array with an unlimited number of bits.
Parent class for all animation channels.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for all things which can have a name.
This is the base class for AnimChannel and AnimBundle.
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class is used to define a subset of part names to apply to the PartBundle::bind_anim() operation...
A thread; that is, a lightweight process.
This is the root of a MovingPart hierarchy.
Controls the timing of a character animation.
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
This is the base class for PartRoot and MovingPart.