CPolyPt constructors
This commit is contained in:
parent
b34d8e2150
commit
d3f9554841
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue