15 #include "dxfToEggLayer.h"
16 #include "dxfToEggConverter.h"
20 #include "eggPolygon.h"
22 #include "eggVertex.h"
23 #include "eggVertexPool.h"
36 _group->add_child(_vpool);
51 _group->add_child(poly);
54 poly->set_color(
LColor(color.r, color.g, color.b, 1.0));
64 DXFVertices::const_iterator vi;
65 for (vi = entity->_verts.begin();
66 vi != entity->_verts.end();
84 _group->add_child(line);
87 line->set_color(
LColor(color.r, color.g, color.b, 1.0));
89 DXFVertices::const_iterator vi;
90 for (vi = entity->_verts.begin();
91 vi != entity->_verts.end();
111 return _vpool->create_unique_vertex(egg_vert);
void add_line(const DXFToEggConverter *entity)
Similar to add_polygon(), but adds a set of point lights instead.
This represents a "layer" as read from the DXF file.
A line segment, or a series of connected line segments, defined by a <Line> entry.
void set_pos(double pos)
Sets the vertex position.
A base class for nodes in the hierarchy that are not leaf nodes.
EggVertex * add_vertex(const DXFVertex &vertex)
Adds a unique vertex to the layer's vertex pool and returns it.
void add_polygon(const DXFToEggConverter *entity)
Given that done_entity() has just been called and that the current entity represents a polygon...
virtual bool cleanup()
Cleans up modeling errors in whatever context this makes sense.
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
Any one-, two-, three-, or four-component vertex, possibly with attributes such as a normal...
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 is the base class for all three-component vectors and points.
EggNode * add_child(EggNode *node)
Adds the indicated child to the group and returns it.
Stored within DXFFile, this is the basic Vertex data of a DXF file.
A collection of vertices.
EggVertex * add_vertex(EggVertex *vertex)
Adds the indicated vertex to the end of the primitive's list of vertices, and returns it...
This class supervises the construction of an EggData structure from a DXF file.