CSailDrawingPrinter Class Reference

#include <sailprinter.h>

Inheritance diagram for CSailDrawingPrinter:

CPrinter

List of all members.

Public Member Functions

 CSailDrawingPrinter (const CPanelGroup &obj, bool show_labels=true)
int pages () const
void print (CTextPainter *painter, int, real fontsize) const

Protected Attributes

const CPanelGroup sail
bool showLabels


Detailed Description

A class for printing a sail.

All the panels are printed on a single page.

Definition at line 99 of file sailprinter.h.


Constructor & Destructor Documentation

CSailDrawingPrinter::CSailDrawingPrinter ( const CPanelGroup obj,
bool  show_labels = true 
) [inline]

The constructor.

Parameters:
obj the sail to print
show_labels should labels be printed?

Definition at line 107 of file sailprinter.h.


Member Function Documentation

int CSailDrawingPrinter::pages (  )  const [inline, virtual]

Return the number of pages, must be overriden.

Implements CPrinter.

Definition at line 109 of file sailprinter.h.

void CSailDrawingPrinter::print ( CTextPainter painter,
int  ,
real  fontsize 
) const [virtual]

Print the drawing of a sail.

Parameters:
painter 
fontsize 

Implements CPrinter.

Definition at line 193 of file sailprinter.cpp.

References CPanelGroup::boundingRect(), CRect3d::center(), CSailPainter::draw(), CSailPainter::drawLabels(), sail, CSailPainter::setFontSize(), CSailPainter::setWindow(), showLabels, and CSailPainter::viewRect().


Member Data Documentation

the sail to print

Definition at line 117 of file sailprinter.h.

Referenced by print().

should the labels be printed?

Definition at line 119 of file sailprinter.h.

Referenced by print().


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