26template<
class SwitchType>
27class MovingPart :
public MovingPartBase {
29 typedef typename SwitchType::ValueType ValueType;
33 INLINE MovingPart(
const MovingPart ©);
36 INLINE MovingPart(PartGroup *parent,
const std::string &name,
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 ...
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...
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(),...