diff options
Diffstat (limited to 'dep/g3dlite/include/G3D/PhysicsFrameSpline.h')
-rw-r--r-- | dep/g3dlite/include/G3D/PhysicsFrameSpline.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/dep/g3dlite/include/G3D/PhysicsFrameSpline.h b/dep/g3dlite/include/G3D/PhysicsFrameSpline.h index 4a21503df35..75d3fea8039 100644 --- a/dep/g3dlite/include/G3D/PhysicsFrameSpline.h +++ b/dep/g3dlite/include/G3D/PhysicsFrameSpline.h @@ -20,16 +20,31 @@ namespace G3D { */ class PhysicsFrameSpline : public Spline<PhysicsFrame> { public: + PhysicsFrameSpline(); /** Accepts a table of properties, or any valid PhysicsFrame specification for a single control*/ PhysicsFrameSpline(const Any& any); - /** Clear and then reset all values from the any */ - PhysicsFrameSpline& operator=(const Any& any); + bool operator==(const PhysicsFrameSpline& a) const; + + bool operator!=(const PhysicsFrameSpline& a) const { + return ! ((*this) == a); + } + + /** Mutates all underlying PhysicsFrames by scaling their translation by \param scaleFactor */ + void scaleControlPoints(float scaleFactor); virtual void correct(PhysicsFrame& frame) const; virtual void ensureShortestPath(PhysicsFrame* A, int N) const; + + virtual Any toAny(const std::string& myName) const override { + return Spline<PhysicsFrame>::toAny(myName); + } + + Any toAny() const { + return toAny("PFrameSpline"); + } }; } |