#include <sailwriter-carlson.h>

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 |
Definition at line 31 of file sailwriter-carlson.h.
| CSailCarlsonWriter::CSailCarlsonWriter | ( | ) | [inline] |
The constructor.
Definition at line 36 of file sailwriter-carlson.h.
| void CSailCarlsonWriter::write | ( | const CPanelGroup & | sail, | |
| const QString & | filename | |||
| ) | const [virtual] |
Write sail to Carlson plotter format.
| 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
| 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
| 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
| 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
| 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
| 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().
1.5.6