14#ifndef ANIMCHANNELSCALARTABLE_H
15#define ANIMCHANNELSCALARTABLE_H
28class EXPCL_PANDA_CHAN AnimChannelScalarTable :
public AnimChannelScalar {
30 AnimChannelScalarTable();
31 AnimChannelScalarTable(AnimGroup *parent,
const AnimChannelScalarTable ©);
34 AnimChannelScalarTable(AnimGroup *parent,
const std::string &name);
37 virtual bool has_changed(
int last_frame,
double last_frac,
38 int this_frame,
double this_frac);
39 virtual void get_value(
int frame, PN_stdfloat &value);
42 void set_table(
const CPTA_stdfloat &table);
51 virtual void write(std::ostream &out,
int indent_level)
const;
54 virtual AnimGroup *make_copy(AnimGroup *parent)
const;
70 return get_class_type();
72 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
73 static TypeHandle get_class_type() {
76 static void init_type() {
77 AnimChannelScalar::init_type();
79 AnimChannelScalar::get_class_type());
83 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.
has_table
Returns true if the data table has been assigned.
virtual void get_value(int frame, PN_stdfloat &value)
Gets the value of the channel at the indicated frame.
clear_table
Empties the data table.
get_table
Returns a pointer to the table's data, if it exists, or NULL if it does not.
set_table
Assigns the data table.
static TypedWritable * make_AnimChannelScalarTable(const FactoryParams ¶ms)
Factory method to generate a AnimChannelScalarTable object.
virtual void write(std::ostream &out, int indent_level) const
Writes a brief description of the group and all of its descendants.
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...
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
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(),...