40 write(std::ostream &out,
int indent_level)
const {
44 indent(out, indent_level + 2)
45 <<
"<Scalar> thick { " <<
get_thick() <<
" }\n";
48 write_body(out, indent_level + 2);
49 indent(out, indent_level) <<
"}\n";
58 get_num_lead_vertices()
const {
void write_header(std::ostream &out, int indent_level, const char *egg_keyword) const
Writes the first line of the egg object, e.g.
A line segment, or a series of connected line segments, defined by a <Line> entry.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void clear()
Removes all of the vertices from the primitive.
virtual EggLine * make_copy() const override
Makes a copy of this object.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
double get_thick() const
Returns the thickness set on this particular line.
TypeHandle is the identifier used to differentiate C++ class types.
virtual void write(std::ostream &out, int indent_level) const override
Writes the point to the indicated output stream in Egg format.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.