Panda3D
|
This is a specialization on VertexTransform that allows the user to specify any arbitrary transform matrix he likes. More...
#include "userVertexTransform.h"
Classes | |
class | CData |
Public Member Functions | |
UserVertexTransform (const string &name) | |
virtual TypeHandle | force_init_type () |
virtual void | get_matrix (LMatrix4 &matrix) const |
Returns the transform's matrix. | |
const string & | get_name () const |
Returns the name passed to the constructor. | |
virtual TypeHandle | get_type () const |
virtual void | output (ostream &out) const |
void | set_matrix (const LMatrix4 &matrix) |
Stores the indicated matrix. | |
virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
Writes the contents of this object to the datagram for shipping out to a Bam file. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
static void | register_with_read_factory () |
Tells the BamReader how to create objects of type UserVertexTransform. | |
Protected Member Functions | |
void | fillin (DatagramIterator &scan, BamReader *manager) |
This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new UserVertexTransform. | |
Static Protected Member Functions | |
static TypedWritable * | make_from_bam (const FactoryParams ¶ms) |
This function is called by the BamReader's factory when a new object of type UserVertexTransform is encountered in the Bam file. |
This is a specialization on VertexTransform that allows the user to specify any arbitrary transform matrix he likes.
This is rarely used except for testing.
Definition at line 34 of file userVertexTransform.h.
void UserVertexTransform::fillin | ( | DatagramIterator & | scan, |
BamReader * | manager | ||
) | [protected, virtual] |
This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new UserVertexTransform.
Reimplemented from VertexTransform.
Definition at line 115 of file userVertexTransform.cxx.
References BamReader::read_cdata().
void UserVertexTransform::get_matrix | ( | LMatrix4 & | matrix | ) | const [virtual] |
Returns the transform's matrix.
Implements VertexTransform.
Definition at line 38 of file userVertexTransform.cxx.
const string & UserVertexTransform::get_name | ( | ) | const [inline] |
Returns the name passed to the constructor.
Completely arbitrary.
Definition at line 23 of file userVertexTransform.I.
TypedWritable * UserVertexTransform::make_from_bam | ( | const FactoryParams & | params | ) | [static, protected] |
This function is called by the BamReader's factory when a new object of type UserVertexTransform is encountered in the Bam file.
It should create the UserVertexTransform and extract its information from the file.
Definition at line 96 of file userVertexTransform.cxx.
Referenced by register_with_read_factory().
void UserVertexTransform::register_with_read_factory | ( | ) | [static] |
Tells the BamReader how to create objects of type UserVertexTransform.
Definition at line 70 of file userVertexTransform.cxx.
References BamReader::get_factory(), make_from_bam(), and Factory< Type >::register_factory().
void UserVertexTransform::set_matrix | ( | const LMatrix4 & | matrix | ) | [inline] |
Stores the indicated matrix.
Definition at line 33 of file userVertexTransform.I.
References Thread::get_current_thread(), and VertexTransform::mark_modified().
Writes the contents of this object to the datagram for shipping out to a Bam file.
Reimplemented from VertexTransform.
Definition at line 81 of file userVertexTransform.cxx.
References BamWriter::write_cdata().