26template<
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());
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Parent class for all animation channels.
This template class is the parent class for all kinds of AnimChannels that return different values.
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 ...
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 ...
This is the base class for a single animatable piece that may be bound to one channel (or more,...
This is the template instantiation of MovingPartBase, on the particular type of value provided by the...
virtual void output_value(std::ostream &out) const
Outputs a very brief description of the channel's current value.
virtual void write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
virtual TypeHandle get_value_type() const
Returns the TypeHandle associated with the ValueType we are concerned with.
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 base class for PartRoot and MovingPart.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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(),...