15 #include "animChannelFixed.h" 17 #include "datagramIterator.h" 18 #include "bamReader.h" 19 #include "bamWriter.h" 21 template<
class SwitchType>
22 TypeHandle MovingPart<SwitchType>::_type_handle;
36 template<
class SwitchType>
41 _default_value(copy._default_value)
50 template<
class SwitchType>
53 const ValueType &default_value) :
55 _value(default_value),
56 _default_value(default_value)
65 template<
class SwitchType>
78 template<
class SwitchType>
81 return get_type_handle(ValueType);
93 template<
class SwitchType>
105 template<
class SwitchType>
108 SwitchType::output_value(out, _value);
117 template<
class SwitchType>
121 SwitchType::write_datagram(me, _value);
122 SwitchType::write_datagram(me, _default_value);
133 template<
class SwitchType>
136 MovingPartBase::fillin(scan, manager);
137 SwitchType::read_datagram(scan, _value);
138 SwitchType::read_datagram(scan, _default_value);
virtual AnimChannelBase * make_default_channel() const
Creates and returns a new AnimChannel that is not part of any hierarchy, but that returns the default...
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the template instantiation of MovingPartBase, on the particular type of value provided by the...
This is the base class for a single animatable piece that may be bound to one channel (or more...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
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 write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
Parent class for all animation channels.
This template class is a special kind of AnimChannel that always returns just one fixed value...
virtual TypeHandle get_value_type() const
Returns the TypeHandle associated with the ValueType we are concerned with.
virtual void output_value(ostream &out) const
Outputs a very brief description of the channel's current value.
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 ...
This is the base class for PartRoot and MovingPart.