Panda3D
Public Member Functions
EggToDXFLayer Class Reference

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

#include "eggToDXFLayer.h"

List of all members.

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.
void choose_overall_color ()
 After all polygons have been accounted for, chooses the polygon color that occurred most often as the layer color.
void operator= (const EggToDXFLayer &copy)
void write_3d_face (EggPolygon *poly, ostream &out)
 Writes a polygon as a 3DFACE entity.
void write_entities (ostream &out)
 Writes out the "entities", e.g.
void write_layer (ostream &out)
 Writes the layer definition into the table at the beginning of the DXF file.
void write_polyline (EggPolygon *poly, ostream &out)
 Writes a polygon as a POLYLINE entity.

Detailed Description

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

Definition at line 32 of file eggToDXFLayer.h.


Member Function Documentation

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 72 of file eggToDXFLayer.cxx.

After all polygons have been accounted for, chooses the polygon color that occurred most often as the layer color.

Definition at line 95 of file eggToDXFLayer.cxx.

void EggToDXFLayer::write_3d_face ( EggPolygon poly,
ostream &  out 
)

Writes a polygon as a 3DFACE entity.

Definition at line 159 of file eggToDXFLayer.cxx.

References EggVertex::get_pos3(), EggNode::get_vertex_frame(), TypedObject::is_of_type(), and EggPolygon::triangulate_into().

Referenced by write_entities().

void EggToDXFLayer::write_entities ( ostream &  out)

Writes out the "entities", e.g.

polygons, defined for the current layer.

Definition at line 207 of file eggToDXFLayer.cxx.

References TypedObject::is_of_type(), write_3d_face(), and write_polyline().

void EggToDXFLayer::write_layer ( 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 118 of file eggToDXFLayer.cxx.

void EggToDXFLayer::write_polyline ( EggPolygon poly,
ostream &  out 
)

Writes a polygon as a POLYLINE entity.

Definition at line 132 of file eggToDXFLayer.cxx.

References EggAttributes::get_color(), EggVertex::get_pos3(), and EggNode::get_vertex_frame().

Referenced by write_entities().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations