#include <formrigdef.h>
Public Member Functions | |
| CFormRigDef (QWidget *, CRigDef *) | |
| bool | check () |
| virtual void | accept () |
Protected Slots | |
| virtual void | languageChange () |
| void | slotChanged () |
Protected Attributes | |
| CRigDef * | rigdef |
Definition at line 32 of file formrigdef.h.
| CFormRigDef::CFormRigDef | ( | QWidget * | parent, | |
| CRigDef * | rigptr | |||
| ) |
The constructor.
| parent | the parent window | |
| rigptr | pointer to the CRigDef |
Definition at line 36 of file formrigdef.cpp.
References accept(), CRigDef::BAD, CRigDef::CSB, CRigDef::CSH, CRigDef::foreI, CRigDef::foreJ, CRigDef::HAD, CRigDef::LSB, CRigDef::MCord, CRigDef::MHeight, CRigDef::MRakeD, CRigDef::MRakeM, CRigDef::MRnd, CRigDef::MRndPos, CRigDef::MWidth, rigdef, CRigDef::rigID, slotChanged(), CRigDef::SPH, CRigDef::SPNB, and CRigDef::SPW.
| bool CFormRigDef::check | ( | ) |
Check all dimensions entered in order to make sure that the rig is possible and reasonable. This will also trigger ancillary data computation for mainsail luff parameters.
create four palettes
check the rig ID text
checking fore triangle
checking mast height
checking mast cord
checking mast width
checking mast rake
computing mast rake in degree
computing mast base distance to stem
checking mast round
checking mainsail tack height
checking mainsail head height
computing and display main sail tack and luff data
reading number of spreaders
checking shrouds height and shroud base width
checking spreaders
Definition at line 165 of file formrigdef.cpp.
References CRigDef::BAD, CRigDef::CSB, CRigDef::CSH, CRigDef::foreI, CRigDef::foreJ, CRigDef::HAD, CRigDef::LSB, CRigWorker::mastCenter(), CRigDef::MBase, CRigDef::MCord, CRigDef::MHeight, CRigDef::MRakeD, CRigDef::MRakeM, CRigDef::MRnd, CRigDef::MRndPos, CRigDef::MShead, CRigDef::MStack, CRigDef::MWidth, CVector::norm(), rigdef, CRigDef::rigID, CRigDef::SPH, CRigDef::SPNB, CRigDef::SPW, CVector3d::x(), and CVector3d::y().
Referenced by accept(), and slotChanged().
| void CFormRigDef::accept | ( | ) | [virtual] |
Save the parameters entered by the user in the CRigDef. slot connected to OK button
Definition at line 101 of file formrigdef.cpp.
References check().
Referenced by CFormRigDef().
| void CFormRigDef::languageChange | ( | ) | [protected, virtual, slot] |
Sets the strings of the subwidgets using the current language.
Definition at line 112 of file formrigdef.cpp.
| void CFormRigDef::slotChanged | ( | ) | [protected, slot] |
Called when one of the values changes. it triggers a check of all data
Definition at line 148 of file formrigdef.cpp.
References check().
Referenced by CFormRigDef().
CRigDef* CFormRigDef::rigdef [protected] |
a pointer to the rig definion
Definition at line 48 of file formrigdef.h.
Referenced by CFormRigDef(), and check().
1.5.6