#include <sailmould.h>
Public Member Functions | |
| CProfile (real rDepth=0.05, real rLeech=0.02, real rLuff=1) | |
| CProfile & | operator= (const CProfile &) |
| real | z (real dX) |
| real | slope (real dX) |
| real | camber (real dX) |
| real | getDepth () const |
| real | getLeech () const |
| real | getLuff () const |
| real | getMaxPos () const |
| real | getMaxDepth () const |
| void | setDepth (real ndepth) |
| void | setLeech (real nkleech) |
| void | setLuff (real nkluff) |
Protected Member Functions | |
| void | calcMax () |
Protected Attributes | |
| real | depth |
| real | kleech |
| real | kluff |
| real | xmax |
| real | zmax |
Definition at line 33 of file sailmould.h.
| CProfile::CProfile | ( | real | rDepth = 0.05, |
|
| real | rLeech = 0.02, |
|||
| real | rLuff = 1 | |||
| ) |
The constructor.
| rDepth | ||
| rLeech | ||
| rLuff |
Definition at line 41 of file sailmould.cpp.
References calcMax().
Referenced by setDepth(), setLeech(), and setLuff().
| real CProfile::z | ( | real | dX | ) |
Compute the depth of the profile at a point located at dX along the cord
Definition at line 79 of file sailmould.cpp.
References depth, kleech, kluff, and zmax.
Referenced by CLabelProfile::paintEvent(), and CSailWorker::Zpoint().
| real CProfile::slope | ( | real | dX | ) |
Compute the slope of the profile at a point located at dX along the cord
Definition at line 118 of file sailmould.cpp.
References depth, kleech, kluff, and zmax.
Referenced by CWidgetProfile::slotChanged().
| real CProfile::camber | ( | real | dX | ) |
| real CProfile::getDepth | ( | ) | const [inline] |
Accessor for the depth
Definition at line 44 of file sailmould.h.
References depth.
Referenced by CWidgetProfile::CWidgetProfile(), CLabelProfileVert::paintEvent(), and CSailDoc::put().
| real CProfile::getLeech | ( | ) | const [inline] |
Accessor for the leech
Definition at line 49 of file sailmould.h.
References kleech.
Referenced by CWidgetProfile::CWidgetProfile(), and CSailDoc::put().
| real CProfile::getLuff | ( | ) | const [inline] |
Accessor for the luff
Definition at line 54 of file sailmould.h.
References kluff.
Referenced by CWidgetProfile::CWidgetProfile(), and CSailDoc::put().
| real CProfile::getMaxPos | ( | ) | const [inline] |
Accessor for xmax
Definition at line 59 of file sailmould.h.
References xmax.
Referenced by CWidgetProfile::slotChanged().
| real CProfile::getMaxDepth | ( | ) | const [inline] |
| void CProfile::setDepth | ( | real | ndepth | ) | [inline] |
| void CProfile::setLeech | ( | real | nkleech | ) | [inline] |
| void CProfile::setLuff | ( | real | nkluff | ) | [inline] |
| void CProfile::calcMax | ( | ) | [protected] |
Compute the absiss x of the point of maximum depth of a profile
Definition at line 201 of file sailmould.cpp.
References kleech, kluff, xmax, and zmax.
Referenced by CProfile().
real CProfile::depth [protected] |
depth
Definition at line 90 of file sailmould.h.
Referenced by camber(), getDepth(), operator=(), setLeech(), setLuff(), slope(), and z().
real CProfile::kleech [protected] |
leech coefficient
Definition at line 92 of file sailmould.h.
Referenced by calcMax(), camber(), getLeech(), operator=(), setDepth(), setLuff(), slope(), and z().
real CProfile::kluff [protected] |
luff coefficient
Definition at line 94 of file sailmould.h.
Referenced by calcMax(), camber(), getLuff(), operator=(), setDepth(), setLeech(), slope(), and z().
real CProfile::xmax [protected] |
x location of maximum z
Definition at line 96 of file sailmould.h.
Referenced by calcMax(), getMaxPos(), and operator=().
real CProfile::zmax [protected] |
maximum depth z
Definition at line 98 of file sailmould.h.
Referenced by calcMax(), camber(), getMaxDepth(), operator=(), slope(), and z().
1.5.6