16 #include "animBundle.h" 20 #include "datagramIterator.h" 21 #include "bamReader.h" 22 #include "bamWriter.h" 38 _num_frames(copy._num_frames)
65 output(ostream &out)
const {
106 AnimGroup::fillin(scan, manager);
122 parse_params(params, scan, manager);
123 me->fillin(scan, manager);
int get_num_frames() const
Returns the number of frames of animation, or 0 if the animation has no fixed number of frames...
virtual void output(ostream &out) const
Writes a one-line description of the group.
PN_stdfloat get_stdfloat()
Extracts either a 32-bit or a 64-bit floating-point number, according to Datagram::set_stdfloat_doubl...
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the root of an AnimChannel hierarchy.
virtual void write_datagram(BamWriter *manager, Datagram &me)
Writes the contents of this object to the datagram for shipping out to a Bam file.
double get_base_frame_rate() const
Returns the ideal number of frames per second of the animation, when it is running at normal speed...
Base class for objects that can be written to and read from Bam files.
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 writing binary objects to a Bam file, to be extracted later by ...
static TypedWritable * make_AnimBundle(const FactoryParams ¶ms)
Factory method to generate a AnimBundle object.
PN_uint16 get_uint16()
Extracts an unsigned 16-bit integer.
static void register_with_read_factory()
Factory method to generate a AnimBundle object.
void add_stdfloat(PN_stdfloat value)
Adds either a 32-bit or a 64-bit floating-point number, according to set_stdfloat_double().
This is the base class for AnimChannel and AnimBundle.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
void register_factory(TypeHandle handle, CreateFunc *func)
Registers a new kind of thing the Factory will be able to create.
void add_uint16(PN_uint16 value)
Adds an unsigned 16-bit integer to the datagram.
static WritableFactory * get_factory()
Returns the global WritableFactory for generating TypedWritable objects.
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 ...