AGX Dynamics  2.38.0.2
SplineJoint.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. 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
73  SplineJoint();
74 
75  virtual ~SplineJoint();
76 
77  private:
78  class SplineJointImplementation* m_implementation;
79  };
80 
82 
83 
84 } // namespace agx
agx::SplineJoint
A SplineJoint is a constraint with a motor/range/lock for translation/rotation that will restrict a b...
Definition: SplineJoint.h:34
agx::Constraint2DOF::DOF
DOF
Specifies a selected degree of freedom.
Definition: Constraint.h:771
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:51
agx::Constraint2DOF
Specialization for constraints that have two degree of freedom such as Cylindrical.
Definition: Constraint.h:761
agxRender::RenderManager
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
Definition: RenderManager.h:106
Constraint.h
AGXSTREAM_DECLARE_SERIALIZABLE
#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
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition: AddedMassInteraction.h:22
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxUtil::Spline
Base class for splines.
Definition: Spline.h:31
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
agx::Frame
The object defining a frame of reference and providing transformations operations.
Definition: Frame.h:67
agxUtil
The agxUtil namespace contain classes and methods for utility functionality.
Definition: CylindricalJoint.h:20