27 #include "OE_thread.h"
43 bool getPoint(uint16_t nb,
float* x,
float* y);
56 bool setPoint(uint16_t nb,
float x,
float y);
69 std::vector<vector_2d>
stitchMaxLen(std::vector<vector_2d> ptsArray,
float maxlen);
74 virtual void getBound(
float* xMin,
float* yMin,
float* xMax,
float* yMax);
80 virtual void refresh();
82 static float defaultMaxlen;
93 std::vector<vector_2d>
pts;
107 #endif // OE_STITCHS_H
std::vector< vector_2d > getPoints()
return a copy of the array of points
Definition: OE_stitchs.cpp:65
int getNpts()
return the number of points in the stitch (control points, without handles)
Definition: OE_stitchs.cpp:72
bool setThread(OE_thread *thread)
to set the thread.
Definition: OE_stitchs.cpp:87
OE_stitchs()
Definition: OE_stitchs.cpp:32
Definition: OE_thread.h:26
OE_thread * thread
Tight bounding box of the shape [minx,miny,maxx,maxy].
Definition: OE_stitchs.h:90
bool setMaxLen(float maxLen)
set the max len of a segment
Definition: OE_stitchs.cpp:106
Definition: OE_stitchs.h:31
std::vector< vector_2d > pts
the array of stitch points
Definition: OE_stitchs.h:93
OE_thread * getThread()
to get the thread.
Definition: OE_stitchs.cpp:74
std::vector< vector_2d > stitchMaxLen(std::vector< vector_2d > ptsArray, float maxlen)
return an array of point splited to respect the maxLen distance
Definition: OE_stitchs.cpp:143
virtual void getBound(float *xMin, float *yMin, float *xMax, float *yMax)
calculate the curve bounding box
Definition: OE_stitchs.cpp:116
bool addPoint(float x, float y)
to add a point at the end of the stitch.
Definition: OE_stitchs.cpp:94
bool getPoint(uint16_t nb, float *x, float *y)
to get a point in the stitch.
Definition: OE_stitchs.cpp:44
Definition: OE_utils.h:28
virtual bool check()
check if the stitch is valid.
Definition: OE_stitchs.cpp:139
virtual ~OE_stitchs()
Definition: OE_stitchs.cpp:36
bool setPoint(uint16_t nb, float x, float y)
to set a point in the stitch.
Definition: OE_stitchs.cpp:76