diff options
| author | Bryan Galdrikian <[email protected]> | 2017-08-23 11:24:32 -0700 |
|---|---|---|
| committer | Bryan Galdrikian <[email protected]> | 2017-08-23 11:24:32 -0700 |
| commit | f1e539cadfb085cedc32f9773cfb9d14bfcdf138 (patch) | |
| tree | 7ca74e06a4386dd22fd850a8417a31a85d282a30 /tools/CurveEditor/source/Internal/Curve/Spline.h | |
| parent | Updated to CL 22661993: (diff) | |
| download | blast-f1e539cadfb085cedc32f9773cfb9d14bfcdf138.tar.xz blast-f1e539cadfb085cedc32f9773cfb9d14bfcdf138.zip | |
Removing ArtistTools and CurveEditor projects
Diffstat (limited to 'tools/CurveEditor/source/Internal/Curve/Spline.h')
| -rw-r--r-- | tools/CurveEditor/source/Internal/Curve/Spline.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/tools/CurveEditor/source/Internal/Curve/Spline.h b/tools/CurveEditor/source/Internal/Curve/Spline.h deleted file mode 100644 index fc111a7..0000000 --- a/tools/CurveEditor/source/Internal/Curve/Spline.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef Spline_h__ -#define Spline_h__ -#include <vector> -#include <QtCore/QPointF> - -namespace nvidia { -namespace CurveEditor { - -class Spline -{ -public: - Spline(long segmentCount = 100); - virtual ~Spline(void) = 0; - - // return the point which lies on the polyline after sample. - // percent: the length between the returned point and the begin point along the polyline after sample - // ������������������������������������������������������������������������������������������ - // the length between the end point and the begin point along the polyline after sample - // [0.0, 1.0] - bool getPercentPoint(float percent, QPointF& point); - - bool getPointByX(float x, QPointF& point); - - void setSegmentCount(long segmentCount); - - std::vector<QPointF> getSamplePoints(); - -protected: - void _sample(); - virtual void _doSample() = 0; - -protected: - bool _needSample; - long _segmentCount; - std::vector<QPointF> _samplePoints; - std::vector<float> _edgeLengths; // the number of edges + 1 == the number of sample points - float _totolLength;// the total length of all edges -}; - -} // namespace CurveEditor -} // namespace nvidia - -#endif // Spline_h__ |