Commit d3f95548 authored by Dick Hollenbeck's avatar Dick Hollenbeck

CPolyPt constructors

parent b34d8e21
...@@ -88,8 +88,20 @@ public: ...@@ -88,8 +88,20 @@ public:
class CPolyPt : public wxPoint class CPolyPt : public wxPoint
{ {
public: public:
CPolyPt( int qx = 0, int qy = 0, bool qf = false, int aUtility = 0 ) CPolyPt( int aX = 0, int aY = 0, bool aEnd = false, int aUtility = 0 ) :
{ x = qx; y = qy; end_contour = qf; utility = aUtility; }; wxPoint( aX, aY ), end_contour( aEnd ), utility( aUtility )
{}
/// Pure copy constructor is here to dis-ambiguate from the
/// specialized CPolyPt( const wxPoint& ) constructor version below.
CPolyPt( const CPolyPt& aPt ) :
wxPoint( aPt.x, aPt.y ), end_contour( aPt.end_contour ), utility( aPt.utility )
{}
CPolyPt( const wxPoint& aPoint ) :
wxPoint( aPoint ), end_contour( false ), utility( 0 )
{}
bool end_contour; bool end_contour;
int utility; int utility;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment