#include <panelgroup.h>

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 |
| CPanelGroup & | operator= (const CPanelGroup &) |
| CPanelGroup | operator+ (const CVector3d &) const |
Public Attributes | |
| string | title |
| vector< CPanelGroup > | child |
| enumPanelGroupType | type |
Friends | |
| ostream & | operator<< (ostream &, const CPanelGroup &) |
Definition at line 32 of file panelgroup.h.
| 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 | ) |
| CPanelGroup::CPanelGroup | ( | const CPanel & | p | ) |
Construct a panel group from a single panel.
Definition at line 46 of file panelgroup.cpp.
| CRect3d CPanelGroup::boundingRect | ( | ) | const |
rectangle containing all panels
Returns the smallest 3D box that contains all the panels.
Definition at line 55 of file panelgroup.cpp.
References child, and CRect3d::join().
Referenced by CSailWorker::Layout0(), CSailWorker::LayoutMitre(), CSailWorker::LayoutMitre2(), CSailWorker::LayoutRadial(), CSailWorker::LayoutTriRadial(), CSailWorker::LayoutTwist(), CSailWorker::LayoutVertical(), CSailDrawingPrinter::print(), CSailDevelPrinter::print(), and CSailDisp::setObject().
| 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.
| 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.
| ostream& operator<< | ( | ostream & | , | |
| const CPanelGroup & | ||||
| ) | [friend] |
Outputs a CPanelGroup to a stream.
Definition at line 163 of file panelgroup.cpp.
| string CPanelGroup::title |
title of this panel group
Definition at line 40 of file panelgroup.h.
Referenced by CPanelGroup(), CSailDoc::get(), CHullWorker::makeHull(), CRigWorker::makeRig(), CSailWorker::makeSail(), operator=(), CSailDoc::put(), CBoatElementWidget::setElement(), CBoatElementWidget::slotUpdate(), CSailTxtWriter::write(), and CSailHandWriter::write().
| vector<CPanelGroup> CPanelGroup::child |
children of this group
Definition at line 43 of file panelgroup.h.
Referenced by boundingRect(), CPanelGroup(), CSailPainter::draw(), CSailPainter::drawLabels(), CSailDoc::get(), CBoatDef::makePanelGroup(), operator+(), operator=(), CSailDoc::put(), and rotate().
| 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().
1.5.6