Go to the documentation of this file.
20 template<
class SwitchType>
32 template<
class SwitchType>
37 _default_value(copy._default_value)
44 template<
class SwitchType>
47 const ValueType &default_value) :
49 _value(default_value),
50 _default_value(default_value)
57 template<
class SwitchType>
67 template<
class SwitchType>
70 return get_type_handle(ValueType);
79 template<
class SwitchType>
88 template<
class SwitchType>
91 SwitchType::output_value(out, _value);
98 template<
class SwitchType>
102 SwitchType::write_datagram(me, _value);
103 SwitchType::write_datagram(me, _default_value);
111 template<
class SwitchType>
114 MovingPartBase::fillin(scan, manager);
115 SwitchType::read_datagram(scan, _value);
116 SwitchType::read_datagram(scan, _default_value);
This is the base class for PartRoot and MovingPart.
This is the template instantiation of MovingPartBase, on the particular type of value provided by the...
virtual TypeHandle get_value_type() const
Returns the TypeHandle associated with the ValueType we are concerned with.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This template class is a special kind of AnimChannel that always returns just one fixed value.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
TypeHandle is the identifier used to differentiate C++ class types.
Parent class for all animation channels.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual AnimChannelBase * make_default_channel() const
Creates and returns a new AnimChannel that is not part of any hierarchy, but that returns the default...
virtual void write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
This is the base class for a single animatable piece that may be bound to one channel (or more,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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_value(std::ostream &out) const
Outputs a very brief description of the channel's current value.