Made contourFlag private and added accessor function
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
diff --git a/include/FTVectoriser.h b/include/FTVectoriser.h
index 1f336d9..9e6cdc3 100644
--- a/include/FTVectoriser.h
+++ b/include/FTVectoriser.h
@@ -15,10 +15,12 @@ class ftPoint
{
public:
ftPoint()
- : x(0), y(0), z(0){}
+ : x(0), y(0), z(0)
+ {}
ftPoint( const float X, const float Y, const float Z)
- : x(X), y(Y), z(Z){}
+ : x(X), y(Y), z(Z)
+ {}
friend bool operator == (const ftPoint &a, const ftPoint &b)
{
@@ -71,9 +73,9 @@ class FTVectoriser
int points();
int contours() const { return contourList.size();}
int contourSize( int c) const { return contourList[c]->size();}
+ int ContourFlag() const { return contourFlag;}
// attributes
- int contourFlag;
private:
// methods
@@ -86,6 +88,7 @@ class FTVectoriser
vector< const FTContour*> contourList;
FTContour* contour;
+ int contourFlag;
FT_Outline ftOutline;