Seamly2D
Code documentation
VSplinePoint Class Reference

The VSplinePoint class keep information about point in spline path. Each point have two angles and two lengths. Point represent at the same time first and last point of a spline. More...

#include <vsplinepoint.h>

Collaboration diagram for VSplinePoint:

Public Member Functions

 VSplinePoint ()
 
 VSplinePoint (const VPointF &pSpline, qreal angle1, const QString &angle1F, qreal angle2, const QString &angle2F, qreal length1, const QString &length1F, qreal length2, const QString &length2F)
 
 VSplinePoint (const VSplinePoint &point)
 
 ~VSplinePoint ()
 
VSplinePointoperator= (const VSplinePoint &point)
 
void Swap (VSplinePoint &point) Q_DECL_NOTHROW
 
VPointF P () const
 
void SetP (const VPointF &value)
 
qreal Angle1 () const
 
QString Angle1Formula () const
 
void SetAngle1 (const qreal &value, const QString &angle1F)
 
qreal Angle2 () const
 
QString Angle2Formula () const
 
void SetAngle2 (const qreal &value, const QString &angle2F)
 
qreal Length1 () const
 
QString Length1Formula () const
 
void SetLength1 (const qreal &value, const QString &length1F)
 
qreal Length2 () const
 
QString Length2Formula () const
 
void SetLength2 (const qreal &value, const QString &length2F)
 
bool IsMovable () const
 

Protected Attributes

QSharedDataPointer< VSplinePointDatad
 

Detailed Description

The VSplinePoint class keep information about point in spline path. Each point have two angles and two lengths. Point represent at the same time first and last point of a spline.

Definition at line 107 of file vsplinepoint.h.

Constructor & Destructor Documentation

◆ VSplinePoint() [1/3]

VSplinePoint::VSplinePoint ( )

Definition at line 231 of file vsplinepoint.cpp.

◆ VSplinePoint() [2/3]

VSplinePoint::VSplinePoint ( const VPointF pSpline,
qreal  angle1,
const QString &  angle1F,
qreal  angle2,
const QString &  angle2F,
qreal  length1,
const QString &  length1F,
qreal  length2,
const QString &  length2F 
)

Definition at line 237 of file vsplinepoint.cpp.

◆ VSplinePoint() [3/3]

VSplinePoint::VSplinePoint ( const VSplinePoint point)

Definition at line 245 of file vsplinepoint.cpp.

◆ ~VSplinePoint()

VSplinePoint::~VSplinePoint ( )

Definition at line 262 of file vsplinepoint.cpp.

Member Function Documentation

◆ Angle1()

qreal VSplinePoint::Angle1 ( ) const

Definition at line 279 of file vsplinepoint.cpp.

References d.

Referenced by VSplinePath::GetFSplinePath(), and VSplinePath::GetSpline().

◆ Angle1Formula()

QString VSplinePoint::Angle1Formula ( ) const

◆ Angle2()

qreal VSplinePoint::Angle2 ( ) const

Definition at line 305 of file vsplinepoint.cpp.

References d.

Referenced by VSplinePath::GetFSplinePath(), and VSplinePath::GetSpline().

◆ Angle2Formula()

QString VSplinePoint::Angle2Formula ( ) const

◆ IsMovable()

bool VSplinePoint::IsMovable ( ) const

Definition at line 369 of file vsplinepoint.cpp.

References d, and qmu::QmuTokenParser::IsSingle().

Referenced by VToolSplinePath::IsMovable().

◆ Length1()

qreal VSplinePoint::Length1 ( ) const

◆ Length1Formula()

QString VSplinePoint::Length1Formula ( ) const

◆ Length2()

qreal VSplinePoint::Length2 ( ) const

◆ Length2Formula()

QString VSplinePoint::Length2Formula ( ) const

◆ operator=()

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

Definition at line 251 of file vsplinepoint.cpp.

References d.

◆ P()

◆ SetAngle1()

void VSplinePoint::SetAngle1 ( const qreal &  value,
const QString &  angle1F 
)

◆ SetAngle2()

void VSplinePoint::SetAngle2 ( const qreal &  value,
const QString &  angle2F 
)

◆ SetLength1()

void VSplinePoint::SetLength1 ( const qreal &  value,
const QString &  length1F 
)

◆ SetLength2()

void VSplinePoint::SetLength2 ( const qreal &  value,
const QString &  length2F 
)

◆ SetP()

void VSplinePoint::SetP ( const VPointF value)

◆ Swap()

void VSplinePoint::Swap ( VSplinePoint point)

Definition at line 228 of file vsplinepoint.cpp.

Member Data Documentation

◆ d


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