30class EXPCL_PANDA_EGG EggAnimData :
public EggNode {
32 INLINE
explicit EggAnimData(
const std::string &name =
"");
33 INLINE EggAnimData(
const EggAnimData ©);
34 INLINE EggAnimData &operator = (
const EggAnimData ©);
36 INLINE
void set_fps(
double type);
37 INLINE
void clear_fps();
38 INLINE
bool has_fps()
const;
48 INLINE
void set_data(
const PTA_double &data);
66 static void init_type() {
69 EggNode::get_class_type());
72 return get_class_type();
74 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
void quantize(double quantum)
Rounds each element of the table to the nearest multiple of quantum.
void set_data(const PTA_double &data)
Replaces the entire table of data.
double get_fps() const
This is only valid if has_fps() returns true.
int get_size() const
Returns the number of elements in the table.
void add_data(double value)
Adds a single element to the table.
PTA_double get_data() const
Returns the entire table of data.
void clear_data()
Removes all data and empties the table.
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.
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(),...