33 if (fabs(
get_value(row) - value) > egg_parameters->_table_threshold) {
42 _data.v().erase(_data.v().begin() + 1, _data.v().end());
51 write(std::ostream &out,
int indent_level)
const {
57 indent(out, indent_level) <<
"<S$Anim> ";
65 out <<
" <Scalar> fps { " <<
get_fps() <<
" }";
83 indent(out, indent_level + 2)
84 <<
"<Scalar> fps { " <<
get_fps() <<
" }\n";
86 indent(out, indent_level + 2) <<
"<V> {\n";
89 indent(out, indent_level + 2) <<
"}\n";
90 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(std::ostream &out, int indent_level, const char *egg_keyword) const
Writes the first line of the egg object, e.g.
ostream & enquote_string(ostream &out, const string &str, int indent_level, bool always_quote)
Writes the string to the indicated output stream.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
double get_value(int row) const
Returns the value at the indicated row.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write(std::ostream &out, int indent_level) const
Writes the data to the indicated output stream in Egg format.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
double get_fps() const
This is only valid if has_fps() returns true.
void write_long_list(std::ostream &out, int indent_level, InputIterator ifirst, InputIterator ilast, std::string first_prefix="", std::string later_prefix="", int max_col=72)
Writes a list of things to the indicated output stream, with a space separating each item.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int get_num_rows() const
Returns the number of rows in the table.
bool has_name() const
Returns true if the Namable has a nonempty name set, false if the name is empty.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.