A single layer in the DXF file to be written by EggToDXF. More...
#include "eggToDXFLayer.h"
Public Member Functions | |
EggToDXFLayer (EggToDXF *egg2dxf, EggGroupNode *group) | |
EggToDXFLayer (const EggToDXFLayer ©) | |
void | add_color (const LColor &color) |
Records that one polygon is defined using the indicated color. More... | |
void | choose_overall_color () |
After all polygons have been accounted for, chooses the polygon color that occurred most often as the layer color. More... | |
void | operator= (const EggToDXFLayer ©) |
void | write_3d_face (EggPolygon *poly, std::ostream &out) |
Writes a polygon as a 3DFACE entity. More... | |
void | write_entities (std::ostream &out) |
Writes out the "entities", e.g. More... | |
void | write_layer (std::ostream &out) |
Writes the layer definition into the table at the beginning of the DXF file. More... | |
void | write_polyline (EggPolygon *poly, std::ostream &out) |
Writes a polygon as a POLYLINE entity. More... | |
A single layer in the DXF file to be written by EggToDXF.
Definition at line 29 of file eggToDXFLayer.h.
void EggToDXFLayer::add_color | ( | const LColor & | color | ) |
Records that one polygon is defined using the indicated color.
This will get accumulated; the color used by the majority of polygons will become the layer color.
Definition at line 64 of file eggToDXFLayer.cxx.
void EggToDXFLayer::choose_overall_color | ( | ) |
After all polygons have been accounted for, chooses the polygon color that occurred most often as the layer color.
Definition at line 84 of file eggToDXFLayer.cxx.
void EggToDXFLayer::write_3d_face | ( | EggPolygon * | poly, |
std::ostream & | out | ||
) |
Writes a polygon as a 3DFACE entity.
Definition at line 141 of file eggToDXFLayer.cxx.
void EggToDXFLayer::write_entities | ( | std::ostream & | out | ) |
Writes out the "entities", e.g.
polygons, defined for the current layer.
Definition at line 186 of file eggToDXFLayer.cxx.
References TypedObject::is_of_type().
void EggToDXFLayer::write_layer | ( | std::ostream & | out | ) |
Writes the layer definition into the table at the beginning of the DXF file.
This does not write the actual geometry; that gets done later by write_entities().
Definition at line 104 of file eggToDXFLayer.cxx.
void EggToDXFLayer::write_polyline | ( | EggPolygon * | poly, |
std::ostream & | out | ||
) |
Writes a polygon as a POLYLINE entity.
Definition at line 116 of file eggToDXFLayer.cxx.
References EggAttributes::get_color().