CProfile Class Reference
[Sail computations library]

#include <sailmould.h>

List of all members.

Public Member Functions

 CProfile (real rDepth=0.05, real rLeech=0.02, real rLuff=1)
CProfileoperator= (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


Detailed Description

Class used to work on sail profiles.

See also:
CSailMould

Definition at line 33 of file sailmould.h.


Constructor & Destructor Documentation

CProfile::CProfile ( real  rDepth = 0.05,
real  rLeech = 0.02,
real  rLuff = 1 
)

The constructor.

Parameters:
rDepth 
rLeech 
rLuff 

Definition at line 41 of file sailmould.cpp.

References calcMax().

Referenced by setDepth(), setLeech(), and setLuff().


Member Function Documentation

CProfile & CProfile::operator= ( const CProfile copy  ) 

Assignment operator.

Definition at line 55 of file sailmould.cpp.

References depth, kleech, kluff, xmax, and zmax.

real CProfile::z ( real  dX  ) 

Compute the depth of the profile at a point located at dX along the cord

Author:
Robert Laine

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

Author:
Robert Laine

Definition at line 118 of file sailmould.cpp.

References depth, kleech, kluff, and zmax.

Referenced by CWidgetProfile::slotChanged().

real CProfile::camber ( real  dX  ) 

Compute the camber of the profile at a point located at dX along the cord

Author:
Robert Laine

Definition at line 157 of file sailmould.cpp.

References depth, kleech, kluff, and zmax.

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]

Accessor for zmax

Definition at line 64 of file sailmould.h.

References zmax.

void CProfile::setDepth ( real  ndepth  )  [inline]

Set the depth

Definition at line 70 of file sailmould.h.

References CProfile(), kleech, and kluff.

void CProfile::setLeech ( real  nkleech  )  [inline]

Set the leech

Definition at line 75 of file sailmould.h.

References CProfile(), depth, and kluff.

void CProfile::setLuff ( real  nkluff  )  [inline]

Set the luff

Definition at line 80 of file sailmould.h.

References CProfile(), depth, and kleech.

void CProfile::calcMax (  )  [protected]

Compute the absiss x of the point of maximum depth of a profile

Author:
Robert Laine

Definition at line 201 of file sailmould.cpp.

References kleech, kluff, xmax, and zmax.

Referenced by CProfile().


Member Data Documentation

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


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