geoffc2d.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. //////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Copyright 2015 Autodesk, Inc. All rights reserved.
  5. //
  6. // Use of this software is subject to the terms of the Autodesk license
  7. // agreement provided at the time of installation or download, or which
  8. // otherwise accompanies this software in either electronic or hard copy form.
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11. //
  12. // DESCRIPTION:
  13. //
  14. // This file contains the class AcGeOffsetCurve2d - A mathematical
  15. // entity used to represent an exact offset of a 2d curve.
  16. #ifndef AC_GEOFFC2D_H
  17. #define AC_GEOFFC2D_H
  18. #include "gecurv2d.h"
  19. #pragma pack (push, 8)
  20. class
  21. GE_DLLEXPIMPORT
  22. AcGeOffsetCurve2d : public AcGeCurve2d
  23. {
  24. public:
  25. // Constructors
  26. //
  27. AcGeOffsetCurve2d (const AcGeCurve2d& baseCurve, double offsetDistance);
  28. AcGeOffsetCurve2d (const AcGeOffsetCurve2d& offsetCurve);
  29. // Query methods
  30. //
  31. const AcGeCurve2d* curve () const;
  32. double offsetDistance () const;
  33. Adesk::Boolean paramDirection () const;
  34. AcGeMatrix2d transformation () const;
  35. // Set methods
  36. //
  37. AcGeOffsetCurve2d& setCurve (const AcGeCurve2d& baseCurve);
  38. AcGeOffsetCurve2d& setOffsetDistance (double distance);
  39. // Assignment operator.
  40. //
  41. AcGeOffsetCurve2d& operator = (const AcGeOffsetCurve2d& offsetCurve);
  42. };
  43. #pragma pack (pop)
  44. #endif