14#ifndef EGGXFMANIMDATA_H
15#define EGGXFMANIMDATA_H
29class EXPCL_PANDA_EGG EggXfmAnimData :
public EggAnimData {
31 INLINE
explicit EggXfmAnimData(
const std::string &name =
"",
32 CoordinateSystem cs = CS_default);
35 INLINE EggXfmAnimData(
const EggXfmAnimData ©);
36 INLINE EggXfmAnimData &operator = (
const EggXfmAnimData ©);
38 INLINE
void set_order(
const std::string &order);
39 INLINE
void clear_order();
40 INLINE
bool has_order()
const;
41 INLINE
const std::string &get_order()
const;
44 INLINE
void set_contents(
const std::string &contents);
45 INLINE
void clear_contents();
46 INLINE
bool has_contents()
const;
47 INLINE
const std::string &get_contents()
const;
53 INLINE
double get_value(
int row,
int col)
const;
55 void get_value(
int row, LMatrix4d &mat)
const;
58 virtual void write(std::ostream &out,
int indent_level)
const;
61 virtual void r_transform(
const LMatrix4d &mat,
const LMatrix4d &inv,
62 CoordinateSystem to_cs);
63 virtual void r_mark_coordsys(CoordinateSystem cs);
67 std::string _contents;
68 CoordinateSystem _coordsys;
75 static void init_type() {
76 EggAnimData::init_type();
78 EggAnimData::get_class_type());
81 return get_class_type();
83 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
virtual bool is_anim_matrix() const
Returns true if this node represents a table of animation transformation data, false otherwise.
static const std::string & get_standard_order()
Returns the standard order of matrix component composition.
int get_num_cols() const
Returns the number of columns in the table.
virtual void write(std::ostream &out, int indent_level) const
Writes the data to the indicated output stream in Egg format.
int get_num_rows() const
Returns the number of rows in the table.
double get_value(int row, int col) const
Returns the value at the indicated row.
CoordinateSystem get_coordinate_system() const
Returns the coordinate system this table believes it is defined within.
This corresponds to an <Xfm$Anim_S$> entry, which is a collection of up to nine entries that specify...
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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(),...