Go to the documentation of this file.
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());
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to retrieve the individual data elements previously stored in a Datagram.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
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 ...
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.
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,...
This template class is the parent class for all kinds of AnimChannels that return different values.
virtual void output_value(std::ostream &out) const
Outputs a very brief description of the channel's current value.