The VFSplinePoint 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 a spline. More...
#include <vsplinepoint.h>
Public Member Functions | |
VFSplinePoint () | |
VFSplinePoint default constructor. More... | |
VFSplinePoint (const VPointF &pSpline, qreal kAsm1, qreal angle1, qreal kAsm2, qreal angle2) | |
VFSplinePoint constructor. More... | |
VFSplinePoint (const VFSplinePoint &point) | |
VFSplinePoint copy constructor. More... | |
~VFSplinePoint () | |
VFSplinePoint & | operator= (const VFSplinePoint &point) |
void | Swap (VFSplinePoint &point) Q_DECL_NOTHROW |
VPointF | P () const |
P return point. More... | |
void | SetP (const VPointF &value) |
SetP set point. More... | |
qreal | Angle1 () const |
Angle1 return first angle of spline. More... | |
void | SetAngle1 (const qreal &value) |
SetAngle1 set first angle of spline. More... | |
void | SetAngle2 (const qreal &value) |
SetAngle2 set second angle of spline. More... | |
qreal | Angle2 () const |
Angle2 return second angle of spline. More... | |
qreal | KAsm1 () const |
KAsm1 return coefficient of length first control line. More... | |
void | SetKAsm1 (const qreal &value) |
SetKAsm1 set coefficient of length first control line. More... | |
qreal | KAsm2 () const |
KAsm2 return coefficient of length second control line. More... | |
void | SetKAsm2 (const qreal &value) |
SetKAsm2 set coefficient of length second control line. More... | |
Protected Attributes | |
QSharedDataPointer< VFSplinePointData > | d |
The VFSplinePoint 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 a spline.
Definition at line 69 of file vsplinepoint.h.
VFSplinePoint::VFSplinePoint | ( | ) |
VFSplinePoint default constructor.
Definition at line 71 of file vsplinepoint.cpp.
VFSplinePoint::VFSplinePoint | ( | const VPointF & | pSpline, |
qreal | kAsm1, | ||
qreal | angle1, | ||
qreal | kAsm2, | ||
qreal | angle2 | ||
) |
VFSplinePoint constructor.
pSpline | spline point. |
kAsm1 | coefficient of length first control line. |
angle1 | first angle control line. |
kAsm2 | coefficient of length second control line. |
angle2 | second angle control line. |
Definition at line 84 of file vsplinepoint.cpp.
VFSplinePoint::VFSplinePoint | ( | const VFSplinePoint & | point | ) |
VFSplinePoint copy constructor.
point | point |
Definition at line 93 of file vsplinepoint.cpp.
VFSplinePoint::~VFSplinePoint | ( | ) |
Definition at line 109 of file vsplinepoint.cpp.
qreal VFSplinePoint::Angle1 | ( | ) | const |
Angle1 return first angle of spline.
Definition at line 167 of file vsplinepoint.cpp.
References d.
Referenced by VSplinePath::VSplinePath().
qreal VFSplinePoint::Angle2 | ( | ) | const |
Angle2 return second angle of spline.
Definition at line 177 of file vsplinepoint.cpp.
References d.
Referenced by VSplinePath::VSplinePath().
qreal VFSplinePoint::KAsm1 | ( | ) | const |
KAsm1 return coefficient of length first control line.
Definition at line 187 of file vsplinepoint.cpp.
References d.
Referenced by VSplinePath::VSplinePath().
qreal VFSplinePoint::KAsm2 | ( | ) | const |
KAsm2 return coefficient of length second control line.
Definition at line 207 of file vsplinepoint.cpp.
References d.
Referenced by VSplinePath::VSplinePath().
VFSplinePoint & VFSplinePoint::operator= | ( | const VFSplinePoint & | point | ) |
Definition at line 98 of file vsplinepoint.cpp.
References d.
VPointF VFSplinePoint::P | ( | ) | const |
P return point.
Definition at line 147 of file vsplinepoint.cpp.
References d.
Referenced by VSplinePath::VSplinePath().
void VFSplinePoint::SetAngle1 | ( | const qreal & | value | ) |
SetAngle1 set first angle of spline.
value | angle. |
Definition at line 117 of file vsplinepoint.cpp.
References d.
void VFSplinePoint::SetAngle2 | ( | const qreal & | value | ) |
SetAngle2 set second angle of spline.
value | angle. |
Definition at line 132 of file vsplinepoint.cpp.
References d.
void VFSplinePoint::SetKAsm1 | ( | const qreal & | value | ) |
SetKAsm1 set coefficient of length first control line.
value | coefficient. |
Definition at line 197 of file vsplinepoint.cpp.
References d.
void VFSplinePoint::SetKAsm2 | ( | const qreal & | value | ) |
SetKAsm2 set coefficient of length second control line.
value | coefficient. |
Definition at line 217 of file vsplinepoint.cpp.
References d.
void VFSplinePoint::SetP | ( | const VPointF & | value | ) |
SetP set point.
value | point. |
Definition at line 157 of file vsplinepoint.cpp.
References d.
void VFSplinePoint::Swap | ( | VFSplinePoint & | point | ) |
Definition at line 64 of file vsplinepoint.cpp.
|
protected |
Definition at line 95 of file vsplinepoint.h.
Referenced by Angle1(), Angle2(), KAsm1(), KAsm2(), operator=(), P(), SetAngle1(), SetAngle2(), SetKAsm1(), SetKAsm2(), and SetP().