#include <vcontour.h>
Public Member Functions | |
VContour () | |
VContour (int height, int width) | |
VContour (const VContour &contour) | |
~VContour () | |
VContour & | operator= (const VContour &contour) |
void | Swap (VContour &contour) Q_DECL_NOTHROW |
void | SetContour (const QVector< QPointF > &contour) |
QVector< QPointF > | GetContour () const |
quint32 | GetShift () const |
void | SetShift (quint32 shift) |
int | GetHeight () const |
void | SetHeight (int height) |
int | GetWidth () const |
void | SetWidth (int width) |
QSizeF | GetSize () const |
QVector< QPointF > | UniteWithContour (const VLayoutPiece &detail, int globalI, int detJ, BestFrom type) const |
QLineF | EmptySheetEdge () const |
int | GlobalEdgesCount () const |
QLineF | GlobalEdge (int i) const |
QVector< QPointF > | CutEdge (const QLineF &edge) const |
QVector< QPointF > | CutEmptySheetEdge () const |
const QPointF & | at (int i) const |
QRectF | BoundingRect () const |
QPainterPath | ContourPath () const |
Private Member Functions | |
void | AppendWhole (QVector< QPointF > &contour, const VLayoutPiece &detail, int detJ) const |
Private Attributes | |
QSharedDataPointer< VContourData > | d |
Definition at line 70 of file vcontour.h.
VContour::VContour | ( | ) |
Definition at line 74 of file vcontour.cpp.
VContour::VContour | ( | int | height, |
int | width | ||
) |
Definition at line 79 of file vcontour.cpp.
VContour::VContour | ( | const VContour & | contour | ) |
Definition at line 84 of file vcontour.cpp.
VContour::~VContour | ( | ) |
Definition at line 100 of file vcontour.cpp.
|
private |
Definition at line 366 of file vcontour.cpp.
References CutEdge(), VLayoutPiece::LayoutEdge(), and VLayoutPiece::LayoutEdgesCount().
Referenced by UniteWithContour().
const QPointF & VContour::at | ( | int | i | ) | const |
Definition at line 331 of file vcontour.cpp.
References d.
QRectF VContour::BoundingRect | ( | ) | const |
Definition at line 337 of file vcontour.cpp.
References GetContour().
Referenced by VPosition::Crossing().
QPainterPath VContour::ContourPath | ( | ) | const |
Definition at line 349 of file vcontour.cpp.
References GetContour().
Referenced by VPosition::Crossing().
QVector< QPointF > VContour::CutEdge | ( | const QLineF & | edge | ) | const |
Definition at line 285 of file vcontour.cpp.
References d.
Referenced by AppendWhole(), and UniteWithContour().
QVector< QPointF > VContour::CutEmptySheetEdge | ( | ) | const |
Definition at line 317 of file vcontour.cpp.
References EmptySheetEdge(), and GlobalEdgesCount().
Referenced by VPosition::DrawDebug().
QLineF VContour::EmptySheetEdge | ( | ) | const |
Definition at line 388 of file vcontour.cpp.
References d.
Referenced by CutEmptySheetEdge(), and GlobalEdge().
QVector< QPointF > VContour::GetContour | ( | ) | const |
Definition at line 110 of file vcontour.cpp.
References d.
Referenced by BoundingRect(), VPosition::CheckCombineEdges(), VPosition::CombineEdges(), ContourPath(), VPosition::DrawDebug(), VPosition::RotateEdges(), and VPosition::run().
int VContour::GetHeight | ( | ) | const |
Definition at line 128 of file vcontour.cpp.
References d.
Referenced by VPosition::DrawDebug(), and VPosition::SheetContains().
quint32 VContour::GetShift | ( | ) | const |
Definition at line 116 of file vcontour.cpp.
References d.
QSizeF VContour::GetSize | ( | ) | const |
Definition at line 152 of file vcontour.cpp.
References d.
int VContour::GetWidth | ( | ) | const |
Definition at line 140 of file vcontour.cpp.
References d.
Referenced by VPosition::DrawDebug(), and VPosition::SheetContains().
QLineF VContour::GlobalEdge | ( | int | i | ) | const |
Definition at line 252 of file vcontour.cpp.
References d, EmptySheetEdge(), and GlobalEdgesCount().
Referenced by VPosition::CheckCombineEdges(), and VPosition::CheckRotationEdges().
int VContour::GlobalEdgesCount | ( | ) | const |
Definition at line 239 of file vcontour.cpp.
References d.
Referenced by CutEmptySheetEdge(), GlobalEdge(), and UniteWithContour().
Definition at line 89 of file vcontour.cpp.
References d.
void VContour::SetContour | ( | const QVector< QPointF > & | contour | ) |
Definition at line 104 of file vcontour.cpp.
References d.
void VContour::SetHeight | ( | int | height | ) |
Definition at line 134 of file vcontour.cpp.
References d.
void VContour::SetShift | ( | quint32 | shift | ) |
Definition at line 122 of file vcontour.cpp.
References d.
void VContour::SetWidth | ( | int | width | ) |
Definition at line 146 of file vcontour.cpp.
References d.
void VContour::Swap | ( | VContour & | contour | ) |
Definition at line 70 of file vcontour.cpp.
QVector< QPointF > VContour::UniteWithContour | ( | const VLayoutPiece & | detail, |
int | globalI, | ||
int | detJ, | ||
BestFrom | type | ||
) | const |
Definition at line 158 of file vcontour.cpp.
References AppendWhole(), CutEdge(), d, GlobalEdgesCount(), VLayoutPiece::LayoutEdge(), VLayoutPiece::LayoutEdgesCount(), and Rotation.
Referenced by VPosition::SaveCandidate().
|
private |
Definition at line 115 of file vcontour.h.
Referenced by at(), CutEdge(), EmptySheetEdge(), GetContour(), GetHeight(), GetShift(), GetSize(), GetWidth(), GlobalEdge(), GlobalEdgesCount(), operator=(), SetContour(), SetHeight(), SetShift(), SetWidth(), and UniteWithContour().