Seamly2D
Code documentation
VFSplinePoint Class Reference

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>

Collaboration diagram for VFSplinePoint:

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 ()
 
VFSplinePointoperator= (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< VFSplinePointDatad
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ VFSplinePoint() [1/3]

VFSplinePoint::VFSplinePoint ( )

VFSplinePoint default constructor.

Definition at line 71 of file vsplinepoint.cpp.

◆ VFSplinePoint() [2/3]

VFSplinePoint::VFSplinePoint ( const VPointF pSpline,
qreal  kAsm1,
qreal  angle1,
qreal  kAsm2,
qreal  angle2 
)

VFSplinePoint constructor.

Parameters
pSplinespline point.
kAsm1coefficient of length first control line.
angle1first angle control line.
kAsm2coefficient of length second control line.
angle2second angle control line.

Definition at line 84 of file vsplinepoint.cpp.

◆ VFSplinePoint() [3/3]

VFSplinePoint::VFSplinePoint ( const VFSplinePoint point)

VFSplinePoint copy constructor.

Parameters
pointpoint

Definition at line 93 of file vsplinepoint.cpp.

◆ ~VFSplinePoint()

VFSplinePoint::~VFSplinePoint ( )

Definition at line 109 of file vsplinepoint.cpp.

Member Function Documentation

◆ Angle1()

qreal VFSplinePoint::Angle1 ( ) const

Angle1 return first angle of spline.

Returns
angle.

Definition at line 167 of file vsplinepoint.cpp.

References d.

Referenced by VSplinePath::VSplinePath().

◆ Angle2()

qreal VFSplinePoint::Angle2 ( ) const

Angle2 return second angle of spline.

Returns
angle.

Definition at line 177 of file vsplinepoint.cpp.

References d.

Referenced by VSplinePath::VSplinePath().

◆ KAsm1()

qreal VFSplinePoint::KAsm1 ( ) const

KAsm1 return coefficient of length first control line.

Returns
coefficient.

Definition at line 187 of file vsplinepoint.cpp.

References d.

Referenced by VSplinePath::VSplinePath().

◆ KAsm2()

qreal VFSplinePoint::KAsm2 ( ) const

KAsm2 return coefficient of length second control line.

Returns
coefficient.

Definition at line 207 of file vsplinepoint.cpp.

References d.

Referenced by VSplinePath::VSplinePath().

◆ operator=()

VFSplinePoint & VFSplinePoint::operator= ( const VFSplinePoint point)

Definition at line 98 of file vsplinepoint.cpp.

References d.

◆ P()

VPointF VFSplinePoint::P ( ) const

P return point.

Returns
point.

Definition at line 147 of file vsplinepoint.cpp.

References d.

Referenced by VSplinePath::VSplinePath().

◆ SetAngle1()

void VFSplinePoint::SetAngle1 ( const qreal &  value)

SetAngle1 set first angle of spline.

Parameters
valueangle.

Definition at line 117 of file vsplinepoint.cpp.

References d.

◆ SetAngle2()

void VFSplinePoint::SetAngle2 ( const qreal &  value)

SetAngle2 set second angle of spline.

Parameters
valueangle.

Definition at line 132 of file vsplinepoint.cpp.

References d.

◆ SetKAsm1()

void VFSplinePoint::SetKAsm1 ( const qreal &  value)

SetKAsm1 set coefficient of length first control line.

Parameters
valuecoefficient.

Definition at line 197 of file vsplinepoint.cpp.

References d.

◆ SetKAsm2()

void VFSplinePoint::SetKAsm2 ( const qreal &  value)

SetKAsm2 set coefficient of length second control line.

Parameters
valuecoefficient.

Definition at line 217 of file vsplinepoint.cpp.

References d.

◆ SetP()

void VFSplinePoint::SetP ( const VPointF value)

SetP set point.

Parameters
valuepoint.

Definition at line 157 of file vsplinepoint.cpp.

References d.

◆ Swap()

void VFSplinePoint::Swap ( VFSplinePoint point)

Definition at line 64 of file vsplinepoint.cpp.

Member Data Documentation

◆ d

QSharedDataPointer<VFSplinePointData> VFSplinePoint::d
protected

The documentation for this class was generated from the following files: