AGX Dynamics  2.35.0.1
SplineJoint.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #pragma once
18 
19 #include <agx/Constraint.h>
20 
21 namespace agxUtil
22 {
23  class Spline;
24 }
25 
26 namespace agx
27 {
28 
35  {
36  public:
37 
42  enum DOF
43  {
44  ALL_DOF = -1,
45  ROTATIONAL_1 = 0,
46  ROTATIONAL_2 = 1,
47  TRANSLATIONAL_1 = 2,
48  TRANSLATIONAL_2 = 3,
49  NUM_DOF = 4
50  };
51 
52 
59  SplineJoint(RigidBody* rb, Frame* rbAttachmentFrame, agxUtil::Spline* spline);
60 
65  virtual int getNumDOF() const override;
66  virtual void render(class agxRender::RenderManager * mgr, float scale = 1.0f) const override;
67 
69 
70  protected:
71 
72  // For restore only
74 
75  virtual ~SplineJoint();
76 
77  private:
78  class SplineJointImplementation* m_implementation;
79  };
80 
82 
83 
84 } // namespace agx
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:207
#define AGXPHYSICS_EXPORT
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
Definition: Constraint.h:762
DOF
Specifies a selected degree of freedom.
Definition: Constraint.h:772
The object defining a frame of reference and providing transformations operations.
Definition: agx/Frame.h:68
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:55
A SplineJoint is a constraint with a motor/range/lock for translation/rotation that will restrict a b...
Definition: SplineJoint.h:35
SplineJoint(RigidBody *rb, Frame *rbAttachmentFrame, agxUtil::Spline *spline)
Create SplineJoint given one rigid body with corresponding attachment frame.
virtual void render(class agxRender::RenderManager *mgr, float scale=1.0f) const override
Inherited method of how to render this constraint into DebugRenderer.
virtual int getNumDOF() const override
virtual ~SplineJoint()
The agxUtil namespace contain classes and methods for utility functionality.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.