14 #ifndef ANIMCHANNELSCALARDYNAMIC_H 15 #define ANIMCHANNELSCALARDYNAMIC_H 41 virtual bool has_changed(
int last_frame,
double last_frac,
42 int this_frame,
double this_frac);
43 virtual void get_value(
int frame, PN_stdfloat &value);
44 INLINE PN_stdfloat get_value()
const;
48 void set_value(PN_stdfloat value);
51 MAKE_PROPERTY(value, get_value, set_value);
52 MAKE_PROPERTY(value_node, get_value_node, set_value_node);
67 PN_stdfloat _float_value;
79 return get_class_type();
81 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
85 static void init_type() {
86 AnimChannelScalar::init_type();
88 AnimChannelScalar::get_class_type());
A basic node of the scene graph or data graph.
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Takes in a vector of pointes to TypedWritable objects that correspond to all the requests for pointer...
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
static void register_with_read_factory()
Factory method to generate a AnimGroup object.
Base class for objects that can be written to and read from Bam files.
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 fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is our own Panda specialization on the default STL list.
This template class is the parent class for all kinds of AnimChannels that return different values.
virtual bool has_changed(int last_frame, double last_frac, int this_frame, double this_frac)
Returns true if the value has changed since the last call to has_changed().
This is the base class for AnimChannel and AnimBundle.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
virtual void write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
An animation channel that accepts a scalar each frame from some dynamic input provided by code.
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 ...