15 #include "geomVertexAnimationSpec.h" 17 #include "datagramIterator.h" 24 void GeomVertexAnimationSpec::
25 output(ostream &out)
const {
26 switch (_animation_type) {
36 out <<
"hardware(" << _num_transforms <<
", " 37 << _indexed_transforms <<
")";
64 _animation_type = (AnimationType)scan.
get_uint8();
66 _indexed_transforms = scan.
get_bool();
void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
void add_uint8(PN_uint8 value)
Adds an unsigned 8-bit integer to the datagram.
bool get_bool()
Extracts a boolean value.
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 ...
PN_uint8 get_uint8()
Extracts an unsigned 8-bit integer.
PN_uint16 get_uint16()
Extracts an unsigned 16-bit integer.
void add_bool(bool value)
Adds a boolean value to the datagram.
void add_uint16(PN_uint16 value)
Adds an unsigned 16-bit integer to the datagram.
void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is called by make_from_bam to read in all of the relevant data from the BamFil...
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 ...