Go to the documentation of this file.
14 #ifndef ANIMCHANNELSCALARTABLE_H
15 #define ANIMCHANNELSCALARTABLE_H
36 virtual bool has_changed(
int last_frame,
double last_frac,
37 int this_frame,
double this_frac);
38 virtual void get_value(
int frame, PN_stdfloat &value);
44 INLINE
bool has_table()
const;
45 INLINE
void clear_table();
47 MAKE_PROPERTY2(table, has_table, get_table, set_table, clear_table);
50 virtual void write(std::ostream &out,
int indent_level)
const;
69 return get_class_type();
71 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
75 static void init_type() {
76 AnimChannelScalar::init_type();
78 AnimChannelScalar::get_class_type());
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().
static void register_with_read_factory()
Factory method to generate a AnimGroup object.
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 ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Similar to PointerToArray, except that its contents may not be modified.
Base class for objects that can be written to and read from Bam files.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An animation channel that issues a scalar each frame, read from a table such as might have been read ...
TypeHandle is the identifier used to differentiate C++ class types.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
virtual void write(std::ostream &out, int indent_level) const
Writes a brief description of the group and all of its descendants.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the base class for AnimChannel and AnimBundle.
virtual void write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
This template class is the parent class for all kinds of AnimChannels that return different values.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.