TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
PhysicsFrameSpline.h
Go to the documentation of this file.
1 
6 #ifndef G3D_PhysicsFrameSpline_h
7 #define G3D_PhysicsFrameSpline_h
8 
9 #include "G3D/platform.h"
10 #include "G3D/PhysicsFrame.h"
11 #include "G3D/Spline.h"
12 
13 namespace G3D {
14 
21 class PhysicsFrameSpline : public Spline<PhysicsFrame> {
22 public:
23 
25 
27  PhysicsFrameSpline(const Any& any);
28 
29  bool operator==(const PhysicsFrameSpline& a) const;
30 
31  bool operator!=(const PhysicsFrameSpline& a) const {
32  return ! ((*this) == a);
33  }
34 
36  void scaleControlPoints(float scaleFactor);
37 
38  virtual void correct(PhysicsFrame& frame) const;
39  virtual void ensureShortestPath(PhysicsFrame* A, int N) const;
40 
41  virtual Any toAny(const std::string& myName) const override {
42  return Spline<PhysicsFrame>::toAny(myName);
43  }
44 
45  Any toAny() const {
46  return toAny("PFrameSpline");
47  }
48 };
49 
50 }
51 
52 #endif
void scaleControlPoints(float scaleFactor)
Definition: PhysicsFrameSpline.cpp:63
Definition: Spline.h:115
virtual void ensureShortestPath(PhysicsFrame *A, int N) const
Definition: PhysicsFrameSpline.cpp:69
Any toAny() const
Definition: PhysicsFrameSpline.h:45
Definition: PhysicsFrame.h:30
virtual Any toAny(const std::string &myName) const
Definition: Spline.h:331
Definition: AABox.h:25
bool any(float x)
Definition: g3dmath.h:424
bool operator==(const PhysicsFrameSpline &a) const
Definition: PhysicsFrameSpline.cpp:34
Definition: PhysicsFrameSpline.h:21
Easy loading and saving of human-readable configuration files.
Definition: Any.h:184
virtual void correct(PhysicsFrame &frame) const
Definition: PhysicsFrameSpline.cpp:59
virtual Any toAny(const std::string &myName) const override
Definition: PhysicsFrameSpline.h:41
PhysicsFrameSpline()
Definition: PhysicsFrameSpline.cpp:13
bool operator!=(const PhysicsFrameSpline &a) const
Definition: PhysicsFrameSpline.h:31