14 #ifndef ANIMCHANNELMATRIXFIXED_H 15 #define ANIMCHANNELMATRIXFIXED_H 31 AnimChannelMatrixFixed(
const std::string &name,
const LVecBase3 &pos,
const LVecBase3 &hpr,
const LVecBase3 &scale);
33 virtual bool has_changed(
int last_frame,
double last_frac,
34 int this_frame,
double this_frac);
35 virtual void get_value(
int frame, LMatrix4 &value);
37 virtual void get_scale(
int frame, LVecBase3 &scale);
38 virtual void get_hpr(
int frame, LVecBase3 &hpr);
39 virtual void get_quat(
int frame, LQuaternion &quat);
40 virtual void get_pos(
int frame, LVecBase3 &pos);
41 virtual void get_shear(
int frame, LVecBase3 &shear);
43 virtual void output(std::ostream &out)
const;
46 LVecBase3 _pos, _hpr, _scale;
58 return get_class_type();
60 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
64 static void init_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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
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 ...
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().
virtual void output(std::ostream &out) const
Writes a one-line description of the group.
This is the base class for AnimChannel and AnimBundle.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A specialization on AnimChannel to add all the special matrix component operations.
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.
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 ...
virtual void get_shear(int frame, LVecBase3 &shear)
Returns the a, b, and c shear components associated with the current frame.