14#ifndef ANIMCHANNELSCALARDYNAMIC_H
15#define ANIMCHANNELSCALARDYNAMIC_H
33class EXPCL_PANDA_CHAN AnimChannelScalarDynamic :
public AnimChannelScalar {
35 AnimChannelScalarDynamic();
36 AnimChannelScalarDynamic(AnimGroup *parent,
const AnimChannelScalarDynamic ©);
39 AnimChannelScalarDynamic(
const std::string &name);
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);
55 virtual AnimGroup *make_copy(AnimGroup *parent)
const;
67 PN_stdfloat _float_value;
79 return get_class_type();
81 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
82 static TypeHandle get_class_type() {
85 static void init_type() {
86 AnimChannelScalar::init_type();
88 AnimChannelScalar::get_class_type());
92 static TypeHandle _type_handle;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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().
virtual void write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
void fillin(DatagramIterator &scan, BamReader *manager)
Function that reads out of the datagram (or asks manager to read) all of the data that is needed to r...
static TypedWritable * make_AnimChannelScalarDynamic(const FactoryParams ¶ms)
Factory method to generate a AnimChannelScalarDynamic object.
set_value
Explicitly sets the value.
get_value
Gets the value of the channel at the indicated frame.
set_value_node
Specifies a node whose transform will be queried each frame to implicitly specify the transform of th...
get_value_node
Returns the node that was set via set_value_node(), if any.
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...
static void register_with_read_factory()
Factory method to generate a AnimGroup object.
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 ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
A basic node of the scene graph or data graph.
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
This is our own Panda specialization on the default STL list.
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(),...