33class EXPCL_PANDA_CHAN AnimGroup :
public TypedWritableReferenceCount,
public Namable {
35 AnimGroup(
const std::string &name =
"");
36 AnimGroup(AnimGroup *parent,
const AnimGroup ©);
40 explicit AnimGroup(AnimGroup *parent,
const std::string &name);
48 AnimGroup *
find_child(
const std::string &name)
const;
57 virtual void output(std::ostream &out)
const;
58 virtual void write(std::ostream &out,
int indent_level)
const;
61 void write_descendants(std::ostream &out,
int indent_level)
const;
63 virtual AnimGroup *make_copy(AnimGroup *parent)
const;
64 PT(AnimGroup) copy_subtree(AnimGroup *parent)
const;
67 typedef pvector< PT(AnimGroup) > Children;
88 return get_class_type();
90 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
92 static TypeHandle get_class_type() {
95 static void init_type() {
96 TypedWritableReferenceCount::init_type();
98 TypedWritableReferenceCount::get_class_type());
102 static TypeHandle _type_handle;
105inline std::ostream &operator << (std::ostream &out,
const AnimGroup &anim) {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the root of an AnimChannel hierarchy.
This is the base class for AnimChannel and AnimBundle.
static TypedWritable * make_AnimGroup(const FactoryParams ¶ms)
Factory method to generate a AnimGroup object.
get_child
Returns the nth child of the group.
void sort_descendants()
Sorts the children nodes at each level of the hierarchy into alphabetical order.
virtual void output(std::ostream &out) const
Writes a one-line description of the group.
AnimGroup * get_child_named(const std::string &name) const
Returns the first child found with the indicated name, or NULL if no such child exists.
AnimGroup * find_child(const std::string &name) const
Returns the first descendant found with the indicated name, or NULL if no such descendant exists.
virtual void write(std::ostream &out, int indent_level) const
Writes a brief description of the group and all of its descendants.
static void register_with_read_factory()
Factory method to generate a AnimGroup object.
get_num_children
Returns the number of child nodes of the group.
virtual TypeHandle get_value_type() const
Returns the TypeHandle associated with the ValueType we are concerned with.
virtual void write_datagram(BamWriter *manager, Datagram &me)
Writes the contents of this object to the datagram for shipping out to a Bam file.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
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...
void output(std::ostream &out) const
Outputs the Namable.
TypeHandle is the identifier used to differentiate C++ class types.
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 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.
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.