14#ifndef ANIMCHANNELMATRIXDYNAMIC_H
15#define ANIMCHANNELMATRIXDYNAMIC_H
33class EXPCL_PANDA_CHAN AnimChannelMatrixDynamic :
public AnimChannelMatrix {
35 AnimChannelMatrixDynamic();
36 AnimChannelMatrixDynamic(AnimGroup *parent,
const AnimChannelMatrixDynamic ©);
39 AnimChannelMatrixDynamic(
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, 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);
63 virtual AnimGroup *make_copy(AnimGroup *parent)
const;
85 return get_class_type();
87 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
88 static TypeHandle get_class_type() {
91 static void init_type() {
92 AnimChannelMatrix::init_type();
94 AnimChannelMatrix::get_class_type());
98 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.
get_value_node
Returns the node that was set via set_value_node(), if any.
const TransformState * get_value_transform() const
Returns the explicit TransformState value that was set via set_value(), if any.
set_value_node
Specifies a node whose transform will be queried each frame to implicitly specify the transform of th...
void set_value(const LMatrix4 &value)
Explicitly sets the matrix value.
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...
virtual void get_value(int frame, LMatrix4 &mat)
Gets the value of the channel at the indicated frame.
static TypedWritable * make_AnimChannelMatrixDynamic(const FactoryParams ¶ms)
Factory method to generate an AnimChannelMatrixDynamic object.
virtual void get_scale(int frame, LVecBase3 &scale)
virtual void get_hpr(int frame, LVecBase3 &hpr)
virtual void get_quat(int frame, LQuaternion &quat)
virtual void get_pos(int frame, LVecBase3 &pos)
virtual void get_value_no_scale_shear(int frame, ValueType &value)
virtual void get_shear(int frame, LVecBase3 &shear)
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.
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(),...