Panda3D
Public Member Functions | List of all members
EggToDXFLayer Class Reference

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 &copy)
 
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 &copy)
 
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...
 

Detailed Description

A single layer in the DXF file to be written by EggToDXF.

Definition at line 29 of file eggToDXFLayer.h.

Member Function Documentation

◆ add_color()

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.

◆ choose_overall_color()

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.

◆ write_3d_face()

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.

◆ write_entities()

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().

◆ write_layer()

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.

◆ write_polyline()

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().


The documentation for this class was generated from the following files: