26 template<
class SwitchType>
29 typedef typename SwitchType::ValueType ValueType;
37 const ValueType &default_value);
44 ValueType _default_value;
55 return get_class_type();
57 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
62 INLINE ValueType get_value()
const {
65 INLINE ValueType get_default_value()
const {
66 return _default_value;
69 static void init_type() {
70 MovingPartBase::init_type();
72 MovingPartBase::get_class_type());
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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 ...
This template class is the parent class for all kinds of AnimChannels that return different values.
virtual void write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
virtual void output_value(std::ostream &out) const
Outputs a very brief description of the channel's current value.
Parent class for all animation channels.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
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.