openEmbroider  0.1
an open source embroidery software
OE_controller Class Reference

Public Member Functions

 OE_controller (OE_display *display, OE_document *document)
 
virtual ~OE_controller ()
 
bool testLogo2 ()
 to create a new curve.
 
bool testOpenEmbroider ()
 
bool setDefault ()
 
OE_curvegetCurve (unsigned index)
 
OE_pointcurvegetPointcurve (unsigned index)
 
OE_subcurvegetSubcurve (unsigned index)
 
OE_joincurvegetJoincurve (unsigned index)
 
OE_stitchsgetStitch (unsigned index)
 return linestitch if the index is pointing on a linestitch, else return null
 
OE_linestitchgetLineStitch (unsigned index)
 
OE_birailstitchgetBirailStitch (unsigned index)
 
OE_linkstitchgetLinkStitch (unsigned index)
 
OE_threadgetThread (unsigned index)
 
bool addCurve (std::vector< vector_2d > points, bool closed)
 to create a new curve.
 
bool addCurve (OE_curve *curve)
 
bool addStitch (OE_stitchs *stitch)
 
bool addLineStitch (OE_curve *curve)
 to create a new linestitch.
 
bool addLineStitch (OE_curve *curve, float len, float width, unsigned motif, float offset)
 
bool addBirailStitch ()
 to create a new birailstitch.
 
bool addBirailStitch (OE_curve *curve1, OE_curve *curve2, bool reverse1, bool reverse2, float offset1, float offset2, float len)
 
bool addLinkStitch (OE_stitchs *stitchStart, OE_stitchs *stitchEnd)
 to create a new linkstitch.
 
bool addThread ()
 to create a new thread.
 
bool addThread (unsigned char r, unsigned char g, unsigned char b, float width)
 
bool selectCurve (OE_curve *curve, bool add)
 
bool selectStitch (OE_stitchs *stitch, bool add)
 
bool refreshStitchs ()
 
bool setStitchMaxLen (unsigned index, float maxLen)
 
bool setLineStitchMotif (unsigned index, unsigned motif)
 
bool setLineStitchCurve (unsigned index, OE_curve *curve)
 
bool setLineStitchSize (unsigned index, float len, float width)
 
bool setLineStitchSizeReverse (unsigned index, bool reverse)
 
bool setBirailStitchCurves (unsigned index, OE_curve *curve1, OE_curve *curve2)
 
bool setBirailStitchSize (unsigned index, float len, float offset1, float offset2)
 
bool setLinkStitchStitch (unsigned index, OE_stitchs *stitchStart, OE_stitchs *stitchEnd)
 
bool setStitchThread (unsigned index, OE_thread *thread)
 
bool setThreadColor (unsigned index, unsigned char r, unsigned char g, unsigned char b)
 
bool setThreadWidth (unsigned index, float width)
 
bool setsubcurvePos (unsigned index, float start, float end)
 
bool generateInstructions ()
 
void sendInstPoint ()
 

Protected Attributes

OE_displaydisplay = nullptr
 
OE_documentdocument = nullptr
 
CommMaster comm
 

Constructor & Destructor Documentation

OE_controller::OE_controller ( OE_display display,
OE_document document 
)

Default constructor

OE_controller::~OE_controller ( )
virtual

Default destructor


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