33 _group->add_child(_vpool);
45 _group->add_child(poly);
48 poly->set_color(LColor(color.r, color.g, color.b, 1.0));
57 DXFVertices::const_iterator vi;
58 for (vi = entity->_verts.begin();
59 vi != entity->_verts.end();
74 _group->add_child(line);
77 line->set_color(LColor(color.r, color.g, color.b, 1.0));
79 DXFVertices::const_iterator vi;
80 for (vi = entity->_verts.begin();
81 vi != entity->_verts.end();
98 return _vpool->create_unique_vertex(egg_vert);
const Color & get_color() const
This is a convenience function to return the r,g,b color of the current entity (at the time of done_e...
This represents a "layer" as read from the DXF file.
This class supervises the construction of an EggData structure from a DXF file.
void add_polygon(const DXFToEggConverter *entity)
Given that done_entity() has just been called and that the current entity represents a polygon,...
EggVertex * add_vertex(const DXFVertex &vertex)
Adds a unique vertex to the layer's vertex pool and returns it.
void add_line(const DXFToEggConverter *entity)
Similar to add_polygon(), but adds a set of point lights instead.
Stored within DXFFile, this is the basic Vertex data of a DXF file.
A base class for nodes in the hierarchy that are not leaf nodes.
EggNode * add_child(EggNode *node)
Adds the indicated child to the group and returns it.
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
A line segment, or a series of connected line segments, defined by a <Line> entry.
virtual bool cleanup() override
Cleans up modeling errors in whatever context this makes sense.
EggVertex * add_vertex(EggVertex *vertex)
Adds the indicated vertex to the end of the primitive's list of vertices, and returns it.
A collection of vertices.
Any one-, two-, three-, or four-component vertex, possibly with attributes such as a normal.
void set_pos(double pos)
Sets the vertex position.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.