CFormRigDef Class Reference

#include <formrigdef.h>

List of all members.

Public Member Functions

 CFormRigDef (QWidget *, CRigDef *)
bool check ()
virtual void accept ()

Protected Slots

virtual void languageChange ()
void slotChanged ()

Protected Attributes

CRigDefrigdef


Detailed Description

The rig definition dialog, where the user enters the parameters of the rig.

See also:
CRigDef default values

Definition at line 32 of file formrigdef.h.


Constructor & Destructor Documentation

CFormRigDef::CFormRigDef ( QWidget *  parent,
CRigDef rigptr 
)


Member Function Documentation

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().


Member Data Documentation

a pointer to the rig definion

Definition at line 48 of file formrigdef.h.

Referenced by CFormRigDef(), and check().


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