Spline.pkg 772 B

12345678910111213141516171819202122232425262728293031
  1. $#include "Spline.h"
  2. enum InterpolationMode
  3. {
  4. BEZIER_CURVE
  5. };
  6. class Spline
  7. {
  8. Spline();
  9. Spline(InterpolationMode mode);
  10. Spline(const Spline& rhs);
  11. // When export constructor, the destructor must export also. otherwise Lua will not collect the oject.
  12. ~Spline();
  13. void operator = (const Spline& rhs);
  14. bool operator == (const Spline& rhs) const;
  15. Variant GetPoint(float f) const;
  16. Variant GetKnot(unsigned index) const;
  17. void SetKnot(const Variant& knot, unsigned);
  18. void AddKnot(const Variant& knot);
  19. void AddKnot(const Variant& knot, unsigned index);
  20. void RemoveKnot();
  21. void RemoveKnot(unsigned index);
  22. void Clear();
  23. tolua_property__get_set InterpolationMode interpolationMode;
  24. };