Panda3D
|
A general 4x4 matrix. More...
#include "fltTransformGeneralMatrix.h"
Public Member Functions | |
FltTransformGeneralMatrix (FltHeader *header) | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
void | set_matrix (const LMatrix4d &matrix) |
Directly sets the general matrix. | |
void | set_matrix (const LMatrix4f &matrix) |
Directly sets the general matrix. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Protected Member Functions | |
virtual bool | build_record (FltRecordWriter &writer) const |
Fills up the current record on the FltRecordWriter with data for this record, but does not advance the writer. | |
virtual bool | extract_record (FltRecordReader &reader) |
Fills in the information in this record based on the information given in the indicated datagram, whose opcode has already been read. |
A general 4x4 matrix.
This appears in the flt file when there is no record of the composition of the transform.
Definition at line 28 of file fltTransformGeneralMatrix.h.
bool FltTransformGeneralMatrix::build_record | ( | FltRecordWriter & | writer | ) | const [protected, virtual] |
Fills up the current record on the FltRecordWriter with data for this record, but does not advance the writer.
Returns true on success, false if there is some error.
Reimplemented from FltRecord.
Definition at line 86 of file fltTransformGeneralMatrix.cxx.
References Datagram::add_be_float32(), FltRecord::build_record(), FltRecordWriter::set_opcode(), and FltRecordWriter::update_datagram().
bool FltTransformGeneralMatrix::extract_record | ( | FltRecordReader & | reader | ) | [protected, virtual] |
Fills in the information in this record based on the information given in the indicated datagram, whose opcode has already been read.
Returns true on success, false if the datagram is invalid.
Reimplemented from FltRecord.
Definition at line 59 of file fltTransformGeneralMatrix.cxx.
References FltRecord::check_remaining_size(), FltRecord::extract_record(), FltRecordReader::get_iterator(), and FltRecordReader::get_opcode().
static void FltTransformGeneralMatrix::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from FltTransformRecord.
Definition at line 47 of file fltTransformGeneralMatrix.h.
void FltTransformGeneralMatrix::set_matrix | ( | const LMatrix4d & | matrix | ) |
Directly sets the general matrix.
Definition at line 36 of file fltTransformGeneralMatrix.cxx.
Referenced by FltBead::set_transform().
void FltTransformGeneralMatrix::set_matrix | ( | const LMatrix4f & | matrix | ) |
Directly sets the general matrix.
Definition at line 46 of file fltTransformGeneralMatrix.cxx.