Panda3D
|
The specialization of DXFLayer used by DXFToEggConverter. More...
#include "dxfToEggLayer.h"
Public Member Functions | |
DXFToEggLayer (const string &name, EggGroupNode *parent) | |
void | add_line (const DXFToEggConverter *entity) |
Similar to add_polygon(), but adds a set of point lights instead. | |
void | add_polygon (const DXFToEggConverter *entity) |
Given that done_entity() has just been called and that the current entity represents a polygon, adds the corresponding polygon to the layer's EggGroup and vertex pool. | |
EggVertex * | add_vertex (const DXFVertex &vertex) |
Adds a unique vertex to the layer's vertex pool and returns it. | |
PT (EggGroup) _group | |
PT (EggVertexPool) _vpool |
The specialization of DXFLayer used by DXFToEggConverter.
It contains a pointer to an EggGroup and a vertex pool; these are used to build up polygons grouped by layer in the egg file as each polygon is read from the DXF file.
Definition at line 38 of file dxfToEggLayer.h.
void DXFToEggLayer::add_line | ( | const DXFToEggConverter * | entity | ) |
Similar to add_polygon(), but adds a set of point lights instead.
Definition at line 82 of file dxfToEggLayer.cxx.
References add_vertex(), EggPrimitive::add_vertex(), and DXFFile::get_color().
void DXFToEggLayer::add_polygon | ( | const DXFToEggConverter * | entity | ) |
Given that done_entity() has just been called and that the current entity represents a polygon, adds the corresponding polygon to the layer's EggGroup and vertex pool.
Definition at line 49 of file dxfToEggLayer.cxx.
References add_vertex(), EggPrimitive::add_vertex(), EggPolygon::cleanup(), and DXFFile::get_color().
Adds a unique vertex to the layer's vertex pool and returns it.
If the vertex was already defined previously, returns the original definition. This is designed to share the common vertices within a layer.
Definition at line 107 of file dxfToEggLayer.cxx.
References EggVertex::set_pos().
Referenced by add_line(), and add_polygon().