CPolyPt constructors

This commit is contained in:
Dick Hollenbeck 2012-06-10 04:48:42 -05:00
parent b34d8e2150
commit d3f9554841
1 changed files with 14 additions and 2 deletions

View File

@ -88,8 +88,20 @@ public:
class CPolyPt : public wxPoint
{
public:
CPolyPt( int qx = 0, int qy = 0, bool qf = false, int aUtility = 0 )
{ x = qx; y = qy; end_contour = qf; utility = aUtility; };
CPolyPt( int aX = 0, int aY = 0, bool aEnd = false, int aUtility = 0 ) :
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;
int utility;