14#ifndef EGGXFMANIMDATA_H
15#define EGGXFMANIMDATA_H
32 CoordinateSystem cs = CS_default);
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;
42 INLINE
static const std::string &get_standard_order();
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;
49 INLINE CoordinateSystem get_coordinate_system()
const;
51 INLINE
int get_num_rows()
const;
52 INLINE
int get_num_cols()
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();}
A base class for EggSAnimData and EggXfmAnimData, which contain rows and columns of numbers.
virtual bool is_anim_matrix() const
Returns true if this node represents a table of animation transformation data, false otherwise.
Corresponding to an <Xfm$Anim> entry, this stores a two-dimensional table with up to nine columns,...
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(),...