|
|
|
Corresponding to an <Xfm$Anim> entry, this stores a two-dimensional table with up to nine columns, one for each component of a transformation.
More...
#include "eggXfmAnimData.h"
List of all members.
Public Member Functions |
|
| EggXfmAnimData (const string &name="", CoordinateSystem cs=CS_default) |
| | EggXfmAnimData (const EggXfmSAnim &convert_from) |
| | Converts the newer-style XfmSAnim table to the older-style XfmAnim table.
|
|
| EggXfmAnimData (const EggXfmAnimData ©) |
|
void | clear_contents () |
|
void | clear_order () |
|
virtual TypeHandle | force_init_type () |
|
const string & | get_contents () const |
| CoordinateSystem | get_coordinate_system () const |
| | Returns the coordinate system this table believes it is defined within.
|
| int | get_num_cols () const |
| | Returns the number of columns in the table.
|
| int | get_num_rows () const |
| | Returns the number of rows in the table.
|
|
const string & | get_order () const |
|
virtual TypeHandle | get_type () const |
| void | get_value (int row, LMatrix4d &mat) const |
| | Returns the value of the aggregate row of the table as a matrix.
|
| double | get_value (int row, int col) const |
| | Returns the value at the indicated row.
|
|
bool | has_contents () const |
|
bool | has_order () const |
| virtual bool | is_anim_matrix () const |
| | Returns true if this node represents a table of animation transformation data, false otherwise.
|
|
EggXfmAnimData & | operator= (const EggXfmAnimData ©) |
|
void | set_contents (const string &contents) |
|
void | set_order (const string &order) |
| virtual void | write (ostream &out, int indent_level) const |
| | Writes the data to the indicated output stream in Egg format.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
| static const string & | get_standard_order () |
| | Returns the standard order of matrix component composition.
|
| static void | init_type () |
| | This function is declared non-inline to work around a compiler bug in g++ 2.96.
|
Protected Member Functions |
| virtual void | r_mark_coordsys (CoordinateSystem cs) |
| | This is only called immediately after loading an egg file from disk, to propagate the value found in the CoordinateSystem entry (or the default Y-up coordinate system) to all nodes that care about what the coordinate system is.
|
| virtual void | r_transform (const LMatrix4d &mat, const LMatrix4d &inv, CoordinateSystem to_cs) |
| | Applies the indicated transform to all the rows of the table.
|
Detailed Description
Corresponding to an <Xfm$Anim> entry, this stores a two-dimensional table with up to nine columns, one for each component of a transformation.
This is an older syntax of egg anim table, not often used currently--it's replaced by EggXfmSAnim.
Definition at line 32 of file eggXfmAnimData.h.
Constructor & Destructor Documentation
| EggXfmAnimData::EggXfmAnimData |
( |
const EggXfmSAnim & |
convert_from | ) |
|
Member Function Documentation
| CoordinateSystem EggXfmAnimData::get_coordinate_system |
( |
| ) |
const [inline] |
Returns the coordinate system this table believes it is defined within.
This should always match the coordinate system of the EggData structure that owns it. It is necessary to store it here because the meaning of the h, p, and r columns depends on the coordinate system.
Definition at line 166 of file eggXfmAnimData.I.
Referenced by EggXfmSAnim::EggXfmSAnim().
| int EggXfmAnimData::get_num_cols |
( |
| ) |
const [inline] |
| int EggXfmAnimData::get_num_rows |
( |
| ) |
const [inline] |
| const string & EggXfmAnimData::get_standard_order |
( |
| ) |
[inline, static] |
Returns the standard order of matrix component composition.
This is what the order string must be set to in order to use set_value() or add_data() successfully.
Definition at line 110 of file eggXfmAnimData.I.
Referenced by r_transform().
| void EggXfmAnimData::get_value |
( |
int |
row, |
|
|
LMatrix4d & |
mat |
|
) |
| const |
| double EggXfmAnimData::get_value |
( |
int |
row, |
|
|
int |
col |
|
) |
| const [inline] |
| static void EggXfmAnimData::init_type |
( |
| ) |
[inline, static] |
| bool EggXfmAnimData::is_anim_matrix |
( |
| ) |
const [virtual] |
Returns true if this node represents a table of animation transformation data, false otherwise.
Reimplemented from EggNode.
Definition at line 168 of file eggXfmAnimData.cxx.
| void EggXfmAnimData::r_mark_coordsys |
( |
CoordinateSystem |
cs | ) |
[protected, virtual] |
This is only called immediately after loading an egg file from disk, to propagate the value found in the CoordinateSystem entry (or the default Y-up coordinate system) to all nodes that care about what the coordinate system is.
Reimplemented from EggNode.
Definition at line 290 of file eggXfmAnimData.cxx.
| void EggXfmAnimData::r_transform |
( |
const LMatrix4d & |
mat, |
|
|
const LMatrix4d & |
inv, |
|
|
CoordinateSystem |
to_cs |
|
) |
| [protected, virtual] |
| void EggXfmAnimData::write |
( |
ostream & |
out, |
|
|
int |
indent_level |
|
) |
| const [virtual] |
The documentation for this class was generated from the following files:
| | |