The VNodeDetail class keep information about detail node. More...
#include <vnodedetail.h>
Public Member Functions | |
VNodeDetail () | |
VNodeDetail default constructor. More... | |
VNodeDetail (quint32 id, Tool typeTool, NodeDetail typeNode, qreal mx=0, qreal my=0, bool reverse=false) | |
VNodeDetail constructor. More... | |
VNodeDetail (const VNodeDetail &node) | |
VNodeDetail copy constructor. More... | |
~VNodeDetail () | |
VNodeDetail & | operator= (const VNodeDetail &node) |
operator = assignment operator More... | |
void | Swap (VNodeDetail &node) Q_DECL_NOTHROW |
quint32 | getId () const |
getId return object id. More... | |
void | setId (const quint32 &value) |
setId set object id. More... | |
Tool | getTypeTool () const |
getTypeTool return tool type. More... | |
void | setTypeTool (const Tool &value) |
setTypeTool set tool type. More... | |
NodeDetail | getTypeNode () const |
getTypeNode return node type. More... | |
void | setTypeNode (const NodeDetail &value) |
setTypeNode set node type. More... | |
qreal | getMx () const |
getMx return object bias x axis. More... | |
void | setMx (const qreal &value) |
setMx set object bias x axis. More... | |
qreal | getMy () const |
getMy return object bias y axis. More... | |
void | setMy (const qreal &value) |
setMy set object bias y axis. More... | |
bool | getReverse () const |
void | setReverse (bool reverse) |
Static Public Member Functions | |
static QVector< VPieceNode > | Convert (const VContainer *data, const QVector< VNodeDetail > &nodes, qreal width, bool closed) |
Private Attributes | |
QSharedDataPointer< VNodeDetailData > | d |
The VNodeDetail class keep information about detail node.
Definition at line 69 of file vnodedetail.h.
VNodeDetail::VNodeDetail | ( | ) |
VNodeDetail default constructor.
Definition at line 131 of file vnodedetail.cpp.
VNodeDetail::VNodeDetail | ( | quint32 | id, |
Tool | typeTool, | ||
NodeDetail | typeNode, | ||
qreal | mx = 0 , |
||
qreal | my = 0 , |
||
bool | reverse = false |
||
) |
VNodeDetail constructor.
id | object id |
typeTool | type tool |
typeNode | type node |
mx | object bias x axis |
my | object bias y axis |
Definition at line 136 of file vnodedetail.cpp.
VNodeDetail::VNodeDetail | ( | const VNodeDetail & | node | ) |
VNodeDetail::~VNodeDetail | ( | ) |
Definition at line 157 of file vnodedetail.cpp.
|
static |
Definition at line 249 of file vnodedetail.cpp.
References VPiecePath::Append(), anonymous_namespace{vnodedetail.cpp}::ConvertAfter(), anonymous_namespace{vnodedetail.cpp}::ConvertBefore(), VPiecePath::CountNodes(), VContainer::GeometricObject(), getId(), getMx(), getMy(), VPiecePath::GetNodes(), getReverse(), getTypeTool(), VPiecePath::NodeNextPoint(), NodePoint, VPiecePath::NodePreviousPoint(), and VPiecePath::PathPoints().
Referenced by VPattern::parsePieceNodes().
quint32 VNodeDetail::getId | ( | ) | const |
getId return object id.
Definition at line 161 of file vnodedetail.cpp.
References d.
Referenced by Convert().
qreal VNodeDetail::getMx | ( | ) | const |
getMx return object bias x axis.
Definition at line 199 of file vnodedetail.cpp.
References d.
Referenced by Convert().
qreal VNodeDetail::getMy | ( | ) | const |
getMy return object bias y axis.
Definition at line 211 of file vnodedetail.cpp.
References d.
Referenced by Convert().
bool VNodeDetail::getReverse | ( | ) | const |
Definition at line 223 of file vnodedetail.cpp.
References d, getTypeTool(), and NodePoint.
Referenced by Convert().
NodeDetail VNodeDetail::getTypeNode | ( | ) | const |
getTypeNode return node type.
Definition at line 186 of file vnodedetail.cpp.
References d.
Tool VNodeDetail::getTypeTool | ( | ) | const |
getTypeTool return tool type.
Definition at line 173 of file vnodedetail.cpp.
References d.
Referenced by Convert(), getReverse(), and setReverse().
VNodeDetail & VNodeDetail::operator= | ( | const VNodeDetail & | node | ) |
operator = assignment operator
node | node |
Definition at line 146 of file vnodedetail.cpp.
References d.
void VNodeDetail::setId | ( | const quint32 & | value | ) |
setId set object id.
value | object id. |
Definition at line 167 of file vnodedetail.cpp.
References d.
void VNodeDetail::setMx | ( | const qreal & | value | ) |
setMx set object bias x axis.
value | bias x axis. |
Definition at line 205 of file vnodedetail.cpp.
References d.
void VNodeDetail::setMy | ( | const qreal & | value | ) |
setMy set object bias y axis.
value | bias y axis. |
Definition at line 217 of file vnodedetail.cpp.
References d.
void VNodeDetail::setReverse | ( | bool | reverse | ) |
Definition at line 236 of file vnodedetail.cpp.
References d, getTypeTool(), and NodePoint.
void VNodeDetail::setTypeNode | ( | const NodeDetail & | value | ) |
setTypeNode set node type.
value | node type. |
Definition at line 193 of file vnodedetail.cpp.
References d.
void VNodeDetail::setTypeTool | ( | const Tool & | value | ) |
setTypeTool set tool type.
value | tool type. |
Definition at line 180 of file vnodedetail.cpp.
References d.
void VNodeDetail::Swap | ( | VNodeDetail & | node | ) |
Definition at line 127 of file vnodedetail.cpp.
|
private |
Definition at line 162 of file vnodedetail.h.
Referenced by getId(), getMx(), getMy(), getReverse(), getTypeNode(), getTypeTool(), operator=(), setId(), setMx(), setMy(), setReverse(), setTypeNode(), and setTypeTool().