22 #ifndef OE_CONTROLLER_H
23 #define OE_CONTROLLER_H
25 #include "OE_display.h"
26 #include "OE_document.h"
27 #include "curves/OE_joincurve.h"
28 #include "curves/OE_subcurve.h"
29 #include "curves/OE_pointcurve.h"
31 #include "stitchs/OE_linestitch.h"
32 #include "stitchs/OE_birailstitch.h"
33 #include "stitchs/OE_linkstitch.h"
35 #include "instructions/OE_waitcolor.h"
36 #include "instructions/OE_start.h"
37 #include "../comm/master.hpp"
49 bool testOpenEmbroider();
65 bool addCurve( std::vector<vector_2d> points,
bool closed);
82 bool addThread(
unsigned char r,
unsigned char g,
unsigned char b,
float width );
84 bool selectCurve(
OE_curve* curve,
bool add);
85 bool selectStitch(
OE_stitchs* stitch,
bool add);
87 bool refreshStitchs();
89 bool setStitchMaxLen(
unsigned index,
float maxLen);
91 bool setLineStitchMotif(
unsigned index,
unsigned motif);
92 bool setLineStitchCurve(
unsigned index,
OE_curve* curve);
93 bool setLineStitchSize(
unsigned index,
float len,
float width);
94 bool setLineStitchSizeReverse(
unsigned index,
bool reverse);
96 bool setBirailStitchCurves(
unsigned index,
OE_curve* curve1,
OE_curve* curve2);
98 bool setBirailStitchSize(
unsigned index,
float len,
float offset1,
float offset2);
102 bool setStitchThread(
unsigned index,
OE_thread * thread);
104 bool setThreadColor(
unsigned index,
unsigned char r,
unsigned char g,
unsigned char b );
105 bool setThreadWidth(
unsigned index,
float width );
107 bool setsubcurvePos(
unsigned index,
float start,
float end);
109 bool generateInstructions();
110 void sendInstPoint();
120 #endif // OE_CONTROLLER_H
bool addLinkStitch(OE_stitchs *stitchStart, OE_stitchs *stitchEnd)
to create a new linkstitch.
Definition: OE_linestitch.h:40
Definition: OE_subcurve.h:29
bool addLineStitch(OE_curve *curve)
to create a new linestitch.
Definition: OE_controller.cpp:458
bool testLogo2()
to create a new curve.
Definition: OE_controller.cpp:40
bool addBirailStitch()
to create a new birailstitch.
Definition: OE_pointcurve.h:30
Definition: OE_thread.h:26
OE_controller(OE_display *display, OE_document *document)
Definition: OE_controller.cpp:28
bool addThread()
to create a new thread.
Definition: OE_controller.cpp:481
virtual ~OE_controller()
Definition: OE_controller.cpp:36
Definition: OE_display.h:34
OE_stitchs * getStitch(unsigned index)
return linestitch if the index is pointing on a linestitch, else return null
Definition: OE_controller.cpp:370
Definition: OE_stitchs.h:31
Definition: OE_linkstitch.h:27
Definition: OE_curve.h:30
Definition: master.hpp:118
Definition: OE_controller.h:39
Definition: OE_document.h:32
Definition: OE_birailstitch.h:28
bool addCurve(std::vector< vector_2d > points, bool closed)
to create a new curve.
Definition: OE_controller.cpp:440
Definition: OE_joincurve.h:29