Documentation for VSplinePoint class.

--HG--
branch : develop
This commit is contained in:
dismine 2014-01-21 20:44:01 +02:00
parent 311be1cd9c
commit 52aa68d31b
2 changed files with 33 additions and 32 deletions

View file

@ -48,8 +48,8 @@ public:
* @param data container with data * @param data container with data
* @param parent parent widget * @param parent parent widget
*/ */
explicit DialogUnionDetails(const VContainer *data, QWidget *parent = 0); DialogUnionDetails(const VContainer *data, QWidget *parent = 0);
~DialogUnionDetails(); ~DialogUnionDetails();
/** /**
* @brief getD1 return id first detail * @brief getD1 return id first detail
* @return id * @return id

View file

@ -33,88 +33,89 @@
#include "vpointf.h" #include "vpointf.h"
/** /**
* @brief The VSplinePoint клас, що містить у собі інформацію про точки сплайну. * @brief The VSplinePoint class keep information about point in spline path. Each point have two angles and two
* coefficient. Point represent at the same time first and last point of spline.
*/ */
class VSplinePoint class VSplinePoint
{ {
public: public:
/** /**
* @brief VSplinePoint конструктор по замповчуванню. * @brief VSplinePoint default constructor.
*/ */
VSplinePoint(); VSplinePoint();
/** /**
* @brief VSplinePoint конструктор. * @brief VSplinePoint constructor.
* @param pSpline точка сплайну. * @param pSpline spline point.
* @param angle кут дотичної сплайна. * @param angle second angle control line.
* @param factor коефіцієнт довжини дотичної. * @param factor coefficient of length second control line.
*/ */
VSplinePoint(VPointF pSpline, qreal kAsm1, qreal angle, qreal kAsm2); VSplinePoint(VPointF pSpline, qreal kAsm1, qreal angle, qreal kAsm2);
/** /**
* @brief VSplinePoint * @brief VSplinePoint copy constructor
* @param point * @param point point
*/ */
VSplinePoint(const VSplinePoint &point); VSplinePoint(const VSplinePoint &point);
~VSplinePoint() {} ~VSplinePoint() {}
/** /**
* @brief P повертає точку. * @brief P return point.
* @return точка. * @return point.
*/ */
inline VPointF P() const {return pSpline;} inline VPointF P() const {return pSpline;}
/** /**
* @brief SetP * @brief SetP set point.
* @param value * @param value point.
*/ */
inline void SetP(const VPointF &value) {pSpline = value;} inline void SetP(const VPointF &value) {pSpline = value;}
/** /**
* @brief Angle1 повертає кут дотичної сплайна. * @brief Angle1 return first angle of spline.
* @return кут в градусах. * @return angle.
*/ */
inline qreal Angle1() const {return angle+180;} inline qreal Angle1() const {return angle+180;}
/** /**
* @brief SetAngle * @brief SetAngle set first angle of spline.
* @param value * @param value angle.
*/ */
inline void SetAngle(const qreal &value) {angle = value;} inline void SetAngle(const qreal &value) {angle = value;}
/** /**
* @brief Angle2 повертає кут дотичної сплайна. * @brief Angle2 return second angle of spline.
* @return кут в градусах. * @return angle.
*/ */
inline qreal Angle2() const {return angle;} inline qreal Angle2() const {return angle;}
/** /**
* @brief KAsm1 повертає коефіцієнт довжини дотичної. * @brief KAsm1 return coefficient of length first control line.
* @return коефіцієнт. * @return coefficient.
*/ */
inline qreal KAsm1() const {return kAsm1;} inline qreal KAsm1() const {return kAsm1;}
/** /**
* @brief SetKAsm1 * @brief SetKAsm1 set coefficient of length first control line.
* @param value * @param value coefficient.
*/ */
inline void SetKAsm1(const qreal &value) {kAsm1 = value;} inline void SetKAsm1(const qreal &value) {kAsm1 = value;}
/** /**
* @brief KAsm2 повертає коефіцієнт довжини дотичної. * @brief KAsm2 return coefficient of length second control line.
* @return коефіцієнт. * @return coefficient.
*/ */
inline qreal KAsm2() const {return kAsm2;} inline qreal KAsm2() const {return kAsm2;}
/** /**
* @brief SetKAsm2 * @brief SetKAsm2 set coefficient of length second control line.
* @param value * @param value coefficient.
*/ */
inline void SetKAsm2(const qreal &value) {kAsm2 = value;} inline void SetKAsm2(const qreal &value) {kAsm2 = value;}
protected: protected:
/** /**
* @brief pSpline точка сплайну. * @brief pSpline point.
*/ */
VPointF pSpline; VPointF pSpline;
/** /**
* @brief angle кут дотичної сплайну. * @brief angle first angle spline.
*/ */
qreal angle; qreal angle;
/** /**
* @brief kAsm1 коефіцієнт довжини дотичної сплайну. * @brief kAsm1 coefficient of length first control line.
*/ */
qreal kAsm1; qreal kAsm1;
/** /**
* @brief kAsm2 коефіцієнт довжини дотичної сплайну. * @brief kAsm2 coefficient of length second control line.
*/ */
qreal kAsm2; qreal kAsm2;
}; };