openEmbroider  0.1
an open source embroidery software
OE_joincurve.h
1 /*
2  * Copyright (c) 2015 Tricoire Sebastien 3dsman@free.fr
3  *
4  * This software is provided 'as-is', without any express or implied
5  * warranty. In no event will the authors be held liable for any damages
6  * arising from the use of this software.
7  *
8  * Permission is granted to anyone to use this software for any purpose,
9  * including commercial applications, and to alter it and redistribute it
10  * freely, subject to the following restrictions:
11  *
12  * 1. The origin of this software must not be misrepresented; you must not
13  * claim that you wrote the original software. If you use this software
14  * in a product, an acknowledgment in the product documentation would be
15  * appreciated but is not required.
16  * 2. Altered source versions must be plainly marked as such, and must not be
17  * misrepresented as being the original software.
18  * 3. This notice may not be removed or altered from any source distribution.
19  *
20  */
21 
22 #ifndef OE_JOINCURVE_H
23 #define OE_JOINCURVES_H
24 
25 #include "OE_curve.h"
26 #include <stdint.h>
27 #include <list>
28 
29 class OE_joincurve : public OE_curve
30 {
31  public:
32 
34  OE_joincurve(OE_curve* curve1, OE_curve* curve2);
36  virtual ~OE_joincurve();
37 
39  bool check();
40 
42  virtual void refresh();
43 
44  void delDependency(OE_base * object);
45 
46  std::list<OE_curve*> curves;
47 
48 
49  protected:
50 
51  private:
52 
53 };
54 
55 #endif // OE_JOINCURVE_H
Definition: OE_base.h:30
virtual void refresh()
refresh the pts array.
Definition: OE_joincurve.cpp:63
OE_joincurve(OE_curve *curve1, OE_curve *curve2)
Definition: OE_joincurve.cpp:30
Definition: OE_curve.h:30
void delDependency(OE_base *object)
the function called by a reference object when he's deleted
Definition: OE_joincurve.cpp:87
Definition: OE_joincurve.h:29
virtual ~OE_joincurve()
Definition: OE_joincurve.cpp:41
bool check()
check if the curve is valid.
Definition: OE_joincurve.cpp:47