Seamly2D
Code documentation
VGrainlineData Class Reference

The VGrainlineData class holds information about a grainline like position, size, rotation and visibility. More...

#include <vgrainlinedata.h>

Inheritance diagram for VGrainlineData:
Collaboration diagram for VGrainlineData:

Public Member Functions

 VGrainlineData ()
 
 VGrainlineData (const VGrainlineData &data)
 
virtual ~VGrainlineData ()
 
VGrainlineDataoperator= (const VGrainlineData &data)
 
void Swap (VGrainlineData &data) Q_DECL_NOTHROW
 
QString GetLength () const
 
void SetLength (const QString &qsLen)
 
QString GetRotation () const
 
void SetRotation (const QString &qsRot)
 
ArrowType GetArrowType () const
 
void SetArrowType (ArrowType eAT)
 
quint32 centerAnchorPoint () const
 
void setCenterAnchorPoint (quint32 centerAnchor)
 
quint32 topAnchorPoint () const
 
void setTopAnchorPoint (quint32 topAnchorPoint)
 
quint32 bottomAnchorPoint () const
 
void setBottomAnchorPoint (quint32 bottomAnchorPoint)
 
- Public Member Functions inherited from VAbstractFloatItemData
 VAbstractFloatItemData ()
 
 VAbstractFloatItemData (const VAbstractFloatItemData &data)
 
virtual ~VAbstractFloatItemData ()
 
VAbstractFloatItemDataoperator= (const VAbstractFloatItemData &data)
 
void Swap (VAbstractFloatItemData &data) Q_DECL_NOTHROW
 
QPointF GetPos () const
 
void SetPos (const QPointF &ptPos)
 
bool IsVisible () const
 
void SetVisible (bool bVisible)
 

Private Attributes

QSharedDataPointer< VGrainlineDataPrivated
 

Detailed Description

The VGrainlineData class holds information about a grainline like position, size, rotation and visibility.

Definition at line 44 of file vgrainlinedata.h.

Constructor & Destructor Documentation

◆ VGrainlineData() [1/2]

VGrainlineData::VGrainlineData ( )

Definition at line 42 of file vgrainlinedata.cpp.

◆ VGrainlineData() [2/2]

VGrainlineData::VGrainlineData ( const VGrainlineData data)

Definition at line 48 of file vgrainlinedata.cpp.

◆ ~VGrainlineData()

VGrainlineData::~VGrainlineData ( )
virtual

Definition at line 66 of file vgrainlinedata.cpp.

Member Function Documentation

◆ bottomAnchorPoint()

quint32 VGrainlineData::bottomAnchorPoint ( ) const

◆ centerAnchorPoint()

quint32 VGrainlineData::centerAnchorPoint ( ) const

◆ GetArrowType()

ArrowType VGrainlineData::GetArrowType ( ) const

Definition at line 94 of file vgrainlinedata.cpp.

References d.

Referenced by VLayoutPiece::setGrainline(), and PatternPieceDialog::SetPiece().

◆ GetLength()

QString VGrainlineData::GetLength ( ) const

◆ GetRotation()

QString VGrainlineData::GetRotation ( ) const

◆ operator=()

VGrainlineData & VGrainlineData::operator= ( const VGrainlineData data)

Definition at line 54 of file vgrainlinedata.cpp.

References d, and VAbstractFloatItemData::operator=().

◆ SetArrowType()

void VGrainlineData::SetArrowType ( ArrowType  eAT)

Definition at line 100 of file vgrainlinedata.cpp.

References d.

Referenced by PatternPieceDialog::CreatePiece(), and VPattern::ParsePieceGrainline().

◆ setBottomAnchorPoint()

void VGrainlineData::setBottomAnchorPoint ( quint32  bottomAnchorPoint)

Definition at line 136 of file vgrainlinedata.cpp.

References bottomAnchorPoint(), and d.

Referenced by PatternPieceDialog::CreatePiece(), and VPattern::ParsePieceGrainline().

◆ setCenterAnchorPoint()

void VGrainlineData::setCenterAnchorPoint ( quint32  centerAnchor)

Definition at line 112 of file vgrainlinedata.cpp.

References d.

Referenced by PatternPieceDialog::CreatePiece(), and VPattern::ParsePieceGrainline().

◆ SetLength()

void VGrainlineData::SetLength ( const QString &  qsLen)

◆ SetRotation()

void VGrainlineData::SetRotation ( const QString &  qsRot)

◆ setTopAnchorPoint()

void VGrainlineData::setTopAnchorPoint ( quint32  topAnchorPoint)

Definition at line 124 of file vgrainlinedata.cpp.

References d, and topAnchorPoint().

Referenced by PatternPieceDialog::CreatePiece(), and VPattern::ParsePieceGrainline().

◆ Swap()

void VGrainlineData::Swap ( VGrainlineData data)

Definition at line 38 of file vgrainlinedata.cpp.

References VAbstractFloatItemData::Swap().

◆ topAnchorPoint()

quint32 VGrainlineData::topAnchorPoint ( ) const

Member Data Documentation

◆ d


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