12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- //////////////////////////////////////////////////////////////////////////////
- //
- // Copyright 2015 Autodesk, Inc. All rights reserved.
- //
- // Use of this software is subject to the terms of the Autodesk license
- // agreement provided at the time of installation or download, or which
- // otherwise accompanies this software in either electronic or hard copy form.
- //
- //////////////////////////////////////////////////////////////////////////////
- //
- // DESCRIPTION:
- //
- // This file contains the class AcGePolyline2d - A mathematical entity
- // used to represent a different types of spline curves in 3-space.
- #ifndef AC_GEPLIN2D_H
- #define AC_GEPLIN2D_H
- #include "gecurv2d.h"
- #include "gekvec.h"
- #include "gept2dar.h"
- #include "gevec2d.h"
- #include "gepnt2d.h"
- #include "gesent2d.h"
- #pragma pack (push, 8)
- class
- GE_DLLEXPIMPORT
- AcGePolyline2d : public AcGeSplineEnt2d
- {
- public:
- AcGePolyline2d();
- AcGePolyline2d(const AcGePolyline2d& src);
- AcGePolyline2d(const AcGePoint2dArray&);
- AcGePolyline2d(const AcGeKnotVector& knots,
- const AcGePoint2dArray& points);
- // Approximate curve with polyline
- //
- AcGePolyline2d(const AcGeCurve2d& crv, double apprEps);
- // Interpolation data
- //
- int numFitPoints () const;
- AcGePoint2d fitPointAt (int idx) const;
- AcGeSplineEnt2d& setFitPointAt(int idx, const AcGePoint2d& point);
- // Assignment operator.
- //
- AcGePolyline2d& operator = (const AcGePolyline2d& pline);
- };
- #pragma pack (pop)
- #endif
|