CSailCarlsonWriter Class Reference
[File input and output]

#include <sailwriter-carlson.h>

Inheritance diagram for CSailCarlsonWriter:

CFileWriter< CPanelGroup >

List of all members.

Public Member Functions

 CSailCarlsonWriter ()
void write (const CPanelGroup &sail, const QString &filename) const
void writePanel (ofstream &out, const CPanel &panel) const
void writePanelHeader (ofstream &out, const CPanel &panel) const
void writeDraw (ofstream &out, unsigned int ct) const
void writeCut (ofstream &out, unsigned int ct) const
void writePoint (ofstream &out, CPoint3d p0) const


Detailed Description

A class for writing to Carlson plotter files.

Definition at line 31 of file sailwriter-carlson.h.


Constructor & Destructor Documentation

CSailCarlsonWriter::CSailCarlsonWriter (  )  [inline]

The constructor.

Definition at line 36 of file sailwriter-carlson.h.


Member Function Documentation

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

Write sail to Carlson plotter format.

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

Implements CFileWriter< CPanelGroup >.

Definition at line 92 of file sailwriter-carlson.cpp.

References writePanel().

void CSailCarlsonWriter::writePanel ( ofstream &  out,
const CPanel panel 
) const

Write panel to Carlson plotter format

Parameters:
out the output stream
panel the number of the panel to write

Definition at line 117 of file sailwriter-carlson.cpp.

References CPanel::bottom, CPanel::cutBottom, CPanel::cutLeft, CPanel::cutRight, CPanel::cutTop, CPanel::left, CPanel::right, CPanel::top, writeCut(), writeDraw(), writePanelHeader(), and writePoint().

Referenced by write().

void CSailCarlsonWriter::writePanelHeader ( ofstream &  out,
const CPanel panel 
) const

Write panel header to Carlson plotter format

Parameters:
out the output stream
panel the number of the panel to write

Definition at line 72 of file sailwriter-carlson.cpp.

References CPanelLabel::color, CPanelLabel::height, CPanel::label, CPanelLabel::name, CPanelLabel::origin, CVector3d::x(), and CVector3d::y().

Referenced by writePanel().

void CSailCarlsonWriter::writeDraw ( ofstream &  out,
unsigned int  ct 
) const

Write the draw message

Parameters:
out the output stream
ct number of points to be written

Definition at line 31 of file sailwriter-carlson.cpp.

Referenced by writePanel().

void CSailCarlsonWriter::writeCut ( ofstream &  out,
unsigned int  ct 
) const

Write the cut message

Parameters:
out the output stream
ct number of points to be written

Definition at line 43 of file sailwriter-carlson.cpp.

Referenced by writePanel().

void CSailCarlsonWriter::writePoint ( ofstream &  out,
CPoint3d  p0 
) const

Write a point

Parameters:
out the output stream
p0 3d point to be written

Definition at line 55 of file sailwriter-carlson.cpp.

References CVector3d::x(), and CVector3d::y().

Referenced by writePanel().


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