geplin2d.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. //
  11. // DESCRIPTION:
  12. //
  13. // This file contains the class AcGePolyline2d - A mathematical entity
  14. // used to represent a different types of spline curves in 3-space.
  15. #ifndef AC_GEPLIN2D_H
  16. #define AC_GEPLIN2D_H
  17. #include "gecurv2d.h"
  18. #include "gekvec.h"
  19. #include "gept2dar.h"
  20. #include "gevec2d.h"
  21. #include "gepnt2d.h"
  22. #include "gesent2d.h"
  23. #pragma pack (push, 8)
  24. class
  25. GE_DLLEXPIMPORT
  26. AcGePolyline2d : public AcGeSplineEnt2d
  27. {
  28. public:
  29. AcGePolyline2d();
  30. AcGePolyline2d(const AcGePolyline2d& src);
  31. AcGePolyline2d(const AcGePoint2dArray&);
  32. AcGePolyline2d(const AcGeKnotVector& knots,
  33. const AcGePoint2dArray& points);
  34. // Approximate curve with polyline
  35. //
  36. AcGePolyline2d(const AcGeCurve2d& crv, double apprEps);
  37. // Interpolation data
  38. //
  39. int numFitPoints () const;
  40. AcGePoint2d fitPointAt (int idx) const;
  41. AcGeSplineEnt2d& setFitPointAt(int idx, const AcGePoint2d& point);
  42. // Assignment operator.
  43. //
  44. AcGePolyline2d& operator = (const AcGePolyline2d& pline);
  45. };
  46. #pragma pack (pop)
  47. #endif