14 #ifndef ANIMCHANNELMATRIXXFMTABLE_H 15 #define ANIMCHANNELMATRIXXFMTABLE_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, LMatrix4 &mat);
46 virtual void get_scale(
int frame, LVecBase3 &scale);
47 virtual void get_hpr(
int frame, LVecBase3 &hpr);
48 virtual void get_quat(
int frame, LQuaternion &quat);
49 virtual void get_pos(
int frame, LVecBase3 &pos);
50 virtual void get_shear(
int frame, LVecBase3 &shear);
53 static INLINE
bool is_valid_id(
char table_id);
58 void clear_all_tables();
59 INLINE
bool has_table(
char table_id)
const;
60 INLINE
void clear_table(
char table_id);
62 MAKE_MAP_PROPERTY(tables, has_table, get_table, set_table, clear_table);
65 virtual void write(std::ostream &out,
int indent_level)
const;
70 INLINE
static char get_table_id(
int table_index);
71 static int get_table_index(
char table_id);
72 INLINE
static PN_stdfloat get_default_value(
int table_index);
87 return get_class_type();
89 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
93 static void init_type() {
94 AnimChannelMatrix::init_type();
96 AnimChannelMatrix::get_class_type());
virtual void get_pos(int frame, LVecBase3 &pos)
Returns the x, y, and z translation components associated with the current frame.
virtual void get_quat(int frame, LQuaternion &quat)
Returns the rotation component associated with the current frame, expressed as a quaternion.
virtual void get_scale(int frame, LVecBase3 &scale)
Returns the x, y, and z scale components associated with the current frame.
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.
virtual void write(std::ostream &out, int indent_level) const
Writes a brief description of the group and all of its descendants.
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.
virtual void get_hpr(int frame, LVecBase3 &hpr)
Returns the h, p, and r components associated with the current frame.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void get_value_no_scale_shear(int frame, ValueType &value)
Returns the value associated with the current frame, with no scale or share components.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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 issues a matrix each frame, read from a table such as might have been read ...
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
virtual void get_shear(int frame, LVecBase3 &shear)
Returns the a, b, and c shear components associated with the current frame.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Similar to PointerToArray, except that its contents may not be modified.