Go to the documentation of this file.
33 _num_frames(copy._num_frames)
35 nassertv(_root ==
nullptr);
46 PT(
AnimGroup) group = copy_subtree(
nullptr);
54 output(std::ostream &out)
const {
87 AnimGroup::fillin(scan, manager);
102 me->fillin(scan, manager);
virtual void write_datagram(BamWriter *manager, Datagram &me)
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.
This is the root of an AnimChannel hierarchy.
uint16_t get_uint16()
Extracts an unsigned 16-bit integer.
A class to retrieve the individual data elements previously stored in a Datagram.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
PT(AnimBundle) AnimBundle
Returns a full copy of the bundle and its entire tree of nested AnimGroups.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
static WritableFactory * get_factory()
Returns the global WritableFactory for generating TypedWritable objects.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
get_num_frames
Returns the number of frames of animation, or 0 if the animation has no fixed number of frames.
static void register_with_read_factory()
Factory method to generate a AnimBundle object.
Base class for objects that can be written to and read from Bam files.
get_base_frame_rate
Returns the ideal number of frames per second of the animation, when it is running at normal speed.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
PN_stdfloat get_stdfloat()
Extracts either a 32-bit or a 64-bit floating-point number, according to Datagram::set_stdfloat_doubl...
void add_stdfloat(PN_stdfloat value)
Adds either a 32-bit or a 64-bit floating-point number, according to set_stdfloat_double().
TypeHandle is the identifier used to differentiate C++ class types.
void add_uint16(uint16_t value)
Adds an unsigned 16-bit integer to the datagram.
virtual void write_datagram(BamWriter *manager, Datagram &me)
Writes the contents of this object to the datagram for shipping out to a Bam file.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
static TypedWritable * make_AnimBundle(const FactoryParams ¶ms)
Factory method to generate a AnimBundle object.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the base class for AnimChannel and AnimBundle.
void register_factory(TypeHandle handle, CreateFunc *func, void *user_data=nullptr)
Registers a new kind of thing the Factory will be able to create.
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 parse_params(const FactoryParams ¶ms, DatagramIterator &scan, BamReader *&manager)
Takes in a FactoryParams, passed from a WritableFactory into any TypedWritable's make function,...