15 #include "eggSAnimData.h"
16 #include "eggMiscFuncs.h"
17 #include "eggParameters.h"
36 if (fabs(
get_value(row) - value) > egg_parameters->_table_threshold) {
44 _data.v().erase(_data.v().begin() + 1, _data.v().end());
56 write(ostream &out,
int indent_level)
const {
62 indent(out, indent_level) <<
"<S$Anim> ";
64 enquote_string(out, get_name()) <<
" {";
70 out <<
" <Scalar> fps { " <<
get_fps() <<
" }";
88 indent(out, indent_level + 2)
89 <<
"<Scalar> fps { " <<
get_fps() <<
" }\n";
91 indent(out, indent_level + 2) <<
"<V> {\n";
92 write_long_list(out, indent_level + 4, _data.begin(), _data.end(),
94 indent(out, indent_level + 2) <<
"}\n";
95 indent(out, indent_level) <<
"}\n";
void optimize()
Optimizes the data by collapsing a long table of duplicate values into a single value.
void write_header(ostream &out, int indent_level, const char *egg_keyword) const
Writes the first line of the egg object, e.g.
virtual void write(ostream &out, int indent_level) const
Writes the data to the indicated output stream in Egg format.
double get_fps() const
This is only valid if has_fps() returns true.
bool has_name() const
Returns true if the Namable has a nonempty name set, false if the name is empty.
int get_num_rows() const
Returns the number of rows in the table.
TypeHandle is the identifier used to differentiate C++ class types.
double get_value(int row) const
Returns the value at the indicated row.