CSailDxfWriter3d Class Reference
[File input and output]

#include <sailwriter-dxf.h>

Inheritance diagram for CSailDxfWriter3d:

CSailDxfWriter CFileWriter< CPanelGroup >

List of all members.

Public Types

enum  Dxf3dType { NORMAL, SPLIT }

Public Member Functions

 CSailDxfWriter3d (enum Dxf3dType format)
void write (const CPanelGroup &sail, const QString &filename) const

Protected Member Functions

void writePanel (ofstream &out, const CPanel &panel, unsigned int layer) const
void writeNormal (const CPanelGroup &sail, const QString &filename) const
void writeSplit (const CPanelGroup &sail, const QString &filename) const

Protected Attributes

Dxf3dType type


Detailed Description

A class used to write a CPanelGroup to a 3D DXF file.

Definition at line 81 of file sailwriter-dxf.h.


Member Function Documentation

void CSailDxfWriter3d::write ( const CPanelGroup sail,
const QString &  filename 
) const [virtual]

Writes a 3D CPanelGroup to a 3D DXF file.

Parameters:
sail the sail to write
filename the file to write to

Implements CFileWriter< CPanelGroup >.

Definition at line 504 of file sailwriter-dxf.cpp.

References writeNormal(), and writeSplit().

void CSailDxfWriter3d::writePanel ( ofstream &  out,
const CPanel panel,
unsigned int  layer 
) const [protected]

Write a single 3D DXF panel to the file output stream.

Parameters:
out the output stream
panel the number of the panel to be written
layer the layer on which the panel is written

Definition at line 559 of file sailwriter-dxf.cpp.

References CPanel::bottom, CPanel::left, CPanel::right, CPanel::top, and CSailDxfWriter::writeFace().

Referenced by writeNormal(), and writeSplit().

void CSailDxfWriter3d::writeNormal ( const CPanelGroup sail,
const QString &  filename 
) const [protected]

Writes a 3D CPanelGroup to a 3D DXF file with one panel per layer.

Parameters:
sail the sail to write
filename the file to write to

Definition at line 522 of file sailwriter-dxf.cpp.

References CSailDxfWriter::writeAtom(), CSailDxfWriter::writeBegin(), CSailDxfWriter::writeEnd(), CSailDxfWriter::writeLayer(), and writePanel().

Referenced by write().

void CSailDxfWriter3d::writeSplit ( const CPanelGroup sail,
const QString &  basename 
) const [protected]

Writes a 3D CPanelGroup to a 3D DXF file with one file per panel.

Parameters:
sail the sail to write
filename the file to write to

Definition at line 594 of file sailwriter-dxf.cpp.

References CSailDxfWriter::writeAtom(), CSailDxfWriter::writeBegin(), CSailDxfWriter::writeEnd(), CSailDxfWriter::writeLayer(), and writePanel().

Referenced by write().


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

Generated on Sun Mar 22 21:38:32 2009 for Sailcut CAD by  doxygen 1.5.6