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());
Parent class for all animation channels.
Controls the timing of a character animation.
This is the base class for AnimChannel and AnimBundle.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
A dynamic array with an unlimited number of bits.
The collection of all the joints and sliders in the character.
An animated character, with skeleton-morph animation and either soft- skinned or hard-skinned vertice...
A single page of data maintained by a PipelineCycler.
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
A base class for all things which can have a name.
A basic node of the scene graph or data graph.
This is the root of a MovingPart hierarchy.
This is the base class for PartRoot and MovingPart.
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.
TypeHandle is the identifier used to differentiate C++ class types.
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.
Base class for objects that can be written to and read from Bam files.
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.
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().
This is our own Panda specialization on the default STL vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.