CPanelGroup Class Reference
[Sail computations library]

#include <panelgroup.h>

Inheritance diagram for CPanelGroup:

CBoatElement

List of all members.

Public Member Functions

 CPanelGroup (unsigned int=0)
 CPanelGroup (const CPanelGroup &)
 CPanelGroup (const CPanel &)
CRect3d boundingRect () const
void placeLabels ()
void plotLabels ()
CPanelGroup rotate (const CPoint3d &, const CMatrix &) const
CPanelGroupoperator= (const CPanelGroup &)
CPanelGroup operator+ (const CVector3d &) const

Public Attributes

string title
vector< CPanelGroupchild
enumPanelGroupType type

Friends

ostream & operator<< (ostream &, const CPanelGroup &)


Detailed Description

This class holds a collection of panels, for instance to represent a 3D or a developed sail.

Definition at line 32 of file panelgroup.h.


Constructor & Destructor Documentation

CPanelGroup::CPanelGroup ( unsigned int  nbpanels = 0  ) 

Constructs a panel group with the specified number of panels.

Definition at line 26 of file panelgroup.cpp.

References type.

CPanelGroup::CPanelGroup ( const CPanelGroup s  ) 

Copy constructor.

Definition at line 35 of file panelgroup.cpp.

References child, title, and type.

CPanelGroup::CPanelGroup ( const CPanel p  ) 

Construct a panel group from a single panel.

Definition at line 46 of file panelgroup.cpp.


Member Function Documentation

CRect3d CPanelGroup::boundingRect (  )  const

void CPanelGroup::placeLabels (  ) 

function to place the labels on a displayed panel group

Positions each of the display Sail's panels' label. The font size is defined in void CSailDispLabel::drawLabels()

Definition at line 86 of file panelgroup.cpp.

Referenced by CSailWorker::makeSail().

void CPanelGroup::plotLabels (  ) 

function to place the labels on a plotted panel group

Positions each of the plotted Sail's panels' label. The font size is default 5 mm

Definition at line 101 of file panelgroup.cpp.

Referenced by CSailWorker::makeSail().

CPanelGroup CPanelGroup::rotate ( const CPoint3d p,
const CMatrix m 
) const

function for rotating all panels

Rotates a sail around a point.

Definition at line 119 of file panelgroup.cpp.

References child, and rotate().

Referenced by CSailWorker::Layout0(), CSailWorker::LayoutTwist(), CSailWorker::LayoutWing(), and rotate().

CPanelGroup & CPanelGroup::operator= ( const CPanelGroup s  ) 

Performs an assignment.

Definition at line 133 of file panelgroup.cpp.

References child, title, and type.

CPanelGroup CPanelGroup::operator+ ( const CVector3d transl  )  const

Performs a 3D translation of the sail by a given vector.

Definition at line 149 of file panelgroup.cpp.

References child.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  ,
const CPanelGroup  
) [friend]

Outputs a CPanelGroup to a stream.

Definition at line 163 of file panelgroup.cpp.


Member Data Documentation

enumPanelGroupType CPanelGroup::type

type of boat object

Reimplemented in CBoatElement.

Definition at line 46 of file panelgroup.h.

Referenced by CPanelGroup(), CSailPainter::draw(), CSailDoc::get(), CHullWorker::makeHull(), CRigWorker::makeRig(), operator=(), and CSailDoc::put().


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