#include <formsaildef.h>
Public Member Functions | |
| CFormSailDef (QWidget *, CSailDef *) | |
| bool | check () |
| void | compute () |
| void | displayData (QString &txt0, QString &txt1, QString &txt2, QString &txt3, QString &txt4) |
| enumSailCut | getSailCut () |
| enumSailType | getSailType () |
| void | setSailCut (enumSailCut) |
| void | setSailType (enumSailType) |
| virtual void | accept () |
Protected Slots | |
| void | slotSailCut () |
| void | slotSailType () |
| void | slotCompute () |
Protected Attributes | |
| CSailDef * | saildef |
Definition at line 34 of file formsaildef.h.
| CFormSailDef::CFormSailDef | ( | QWidget * | parent, | |
| CSailDef * | sailptr | |||
| ) |
The constructor.
| parent | the parent window | |
| sailptr | pointer to the CSailDef |
Write all the sail data to the screen dimensions of sail.
Create button group for sail type.
Create button group for sail cut.
Set signals and slots connections
Activate "compute" to calculate sail area and diagonal and display them.
Definition at line 39 of file formsaildef.cpp.
References accept(), CSailDef::clothW, compute(), CSailDef::dihedralDeg, CSailDef::footHemW, CSailDef::footL, CSailDef::footR, CSailDef::foreI, CSailDef::foreJ, CSailDef::gaffDeg, CSailDef::gaffL, CSailDef::gaffR, CSailDef::hemsW, CSailDef::leechHemW, CSailDef::leechL, CSailDef::leechR, CSailDef::leechRP, CSailDef::LOA, CSailDef::luffL, CSailDef::luffR, CSailDef::luffRP, CSailDef::mould, CSailDef::nbGores, CSailDef::nbLuffGores, CSailDef::nbSections, CSailMould::profile, CSailDef::rake, CSailDef::sailCut, saildef, CSailDef::sailID, CSailDef::sailType, CSailDef::seamW, setSailCut(), setSailType(), CSailDef::sheetDeg, slotCompute(), slotSailCut(), slotSailType(), CSailDef::tackX, CSailDef::tackY, and CSailDef::twistDeg.
| bool CFormSailDef::check | ( | ) |
Check all dimensions entered in order to make sure that the sail is possible and reasonable
Create four palettes for levels of warning.
Get sail type and cut.
Get and the sail ID text length.
Get and check length of boat.
Get and check foretriangle base against boat length.
Get and check foretriangle hoist against boat length
Check tack position function of boat length.
Get length and round data of the 4 sides of sail.
Check rake.
Check luff length and round, gaff length.
Check main sail gaff length.
Check main sail gaff round.
Check jib gaff length.
For a wing set gaff length to minimum.
Check leech length.
Check leech round.
Check foot length.
Check foot round value.
Get cloth, seams and hems width.
Check cloth width.
Check seams width function of cloth width.
Check leech hem width function of cloth width.
Check foot hem width function of cloth width.
Check other luff and gaff hem width function of cloth width.
Get the mould data.
Get and check dihedral angle for a wing.
Get and check twist of the sail.
Get and check sheeting angle of the sail.
Get and check radial sections and gores number.
Definition at line 318 of file formsaildef.cpp.
References CSailDef::clothW, CSailDef::dihedralDeg, CSailDef::footHemW, CSailDef::footL, CSailDef::footR, CSailDef::footRP, CSailDef::foreI, CSailDef::foreJ, CSailDef::gaffDeg, CSailDef::gaffL, CSailDef::gaffR, getSailCut(), getSailType(), CSailDef::hemsW, CSailDef::leechHemW, CSailDef::leechL, CSailDef::leechR, CSailDef::leechRP, CSailDef::LOA, CSailDef::luffL, CSailDef::luffR, CSailDef::luffRP, CSailDef::mould, CSailDef::nbGores, CSailDef::nbLuffGores, CSailDef::nbSections, CSailMould::profile, CSailDef::rake, CSailDef::sailCut, saildef, CSailDef::sailID, CSailDef::sailType, CSailDef::seamW, CSailDef::sheetDeg, CSailDef::tackX, CSailDef::tackY, and CSailDef::twistDeg.
Referenced by accept(), and slotCompute().
| void CFormSailDef::compute | ( | ) |
Compute and Display ancillary data of the sail computation
Definition at line 130 of file formsaildef.cpp.
References CSailWorker::Area(), CSailWorker::Diagonal(), and saildef.
Referenced by CFormSailDef(), and slotCompute().
| void CFormSailDef::displayData | ( | QString & | txt0, | |
| QString & | txt1, | |||
| QString & | txt2, | |||
| QString & | txt3, | |||
| QString & | txt4 | |||
| ) |
Display ancillary data in a message box
Definition at line 1182 of file formsaildef.cpp.
Referenced by slotCompute().
| enumSailCut CFormSailDef::getSailCut | ( | ) |
Returns the sail cut layout from the form.
Definition at line 141 of file formsaildef.cpp.
Referenced by check(), and slotSailCut().
| enumSailType CFormSailDef::getSailType | ( | ) |
Returns the sail type from the form.
Definition at line 164 of file formsaildef.cpp.
Referenced by check(), and slotSailType().
| void CFormSailDef::setSailCut | ( | enumSailCut | cut | ) |
Enables or disables appropriate controls depending on the sail cut.
Definition at line 180 of file formsaildef.cpp.
Referenced by CFormSailDef(), and slotSailCut().
| void CFormSailDef::setSailType | ( | enumSailType | type | ) |
Enables or disables appropriate controls depending on the sail type.
Definition at line 213 of file formsaildef.cpp.
Referenced by CFormSailDef(), and slotSailType().
| void CFormSailDef::accept | ( | ) | [virtual] |
Saves the parameters entered by the user in the CSailDef. Slot connected to OK button
Return data if everything is OK.
Definition at line 306 of file formsaildef.cpp.
References check().
Referenced by CFormSailDef().
| void CFormSailDef::slotSailCut | ( | ) | [protected, slot] |
Enable/disable appropriate controls when the user changes the sail cut.
Definition at line 1117 of file formsaildef.cpp.
References getSailCut(), and setSailCut().
Referenced by CFormSailDef().
| void CFormSailDef::slotSailType | ( | ) | [protected, slot] |
Enable/disable appropriate controls when the user changes the sail type.
Definition at line 1198 of file formsaildef.cpp.
References getSailType(), and setSailType().
Referenced by CFormSailDef().
| void CFormSailDef::slotCompute | ( | ) | [protected, slot] |
Saves the parameters entered by the user in the CSailDef. compute and display ancillary sail data
slot connected to Compute button
Definition at line 1130 of file formsaildef.cpp.
References check(), CSailWorker::clew, compute(), displayData(), CSailWorker::head, CSailWorker::IRCwidth(), CSailWorker::peak, saildef, CSailWorker::SailLP(), CSailWorker::SailWidth(), CSailWorker::tack, CVector3d::x(), and CVector3d::y().
Referenced by CFormSailDef().
CSailDef* CFormSailDef::saildef [protected] |
A pointer to the sail definion
Definition at line 59 of file formsaildef.h.
Referenced by CFormSailDef(), check(), compute(), and slotCompute().
1.5.6