43 int get_num_children()
const;
45 MAKE_SEQ(get_children, get_num_children, get_child);
47 AnimGroup *get_child_named(
const std::string &name)
const;
48 AnimGroup *find_child(
const std::string &name)
const;
49 void sort_descendants();
51 MAKE_SEQ_PROPERTY(children, get_num_children, get_child);
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;
72 static void register_with_read_factory();
88 return get_class_type();
90 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
95 static void init_type() {
96 TypedWritableReferenceCount::init_type();
98 TypedWritableReferenceCount::get_class_type());
105 inline std::ostream &operator << (std::ostream &out,
const AnimGroup &anim) {
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the root of an AnimChannel hierarchy.
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.
virtual void output(std::ostream &out) const
Writes a one-line description of the group.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is our own Panda specialization on the default STL vector.
void output(std::ostream &out) const
Outputs the Namable.
A base class for all things which can have a name.
This is the base class for AnimChannel and AnimBundle.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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().
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.
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...