AGX Dynamics  2.35.0.1
AngularLockJoint.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 #ifndef AGX_ANGULARLOCKJOINT_H
18 #define AGX_ANGULARLOCKJOINT_H
19 
20 #include <agx/Constraint.h>
21 
22 namespace agx
23 {
24 
30  {
31  public:
38 
47  AngularLockJoint( RigidBody* rb1, Frame* rb1AttachmentFrame, RigidBody* rb2 = nullptr, Frame* rb2AttachmentFrame = nullptr );
48 
53  enum DOF
54  {
55  ALL_DOF=-1,
56  ROTATIONAL_1=0,
57  ROTATIONAL_2=1,
58  ROTATIONAL_3=2,
59  NUM_DOF=3
60  };
61 
65  virtual int getNumDOF() const override
66  {
67  return NUM_DOF;
68  }
69 
71 
72  virtual void render(class agxRender::RenderManager *, float /*scale = 1.0f*/ ) const override
73  {}
74 
75  protected:
77  virtual ~AngularLockJoint();
78 
79  private:
80  class AngularLockJointImplementation *m_implementation;
81  };
82 
84 }
85 
86 #endif
87 
#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.
Constraint that removes 3 DOF (rotational degrees of freedom) between two bodies, or one body and the...
AngularLockJoint(RigidBody *rb1, Frame *rb1AttachmentFrame, RigidBody *rb2=nullptr, Frame *rb2AttachmentFrame=nullptr)
Create Angular lock joint given one or two rigid bodies with corresponding attachment frames.
AngularLockJoint(RigidBody *rb1, RigidBody *rb2=0)
Create Angular lock joint given one or two rigid bodies.
virtual int getNumDOF() const override
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
virtual void render(class agxRender::RenderManager *, float) const override
Inherited method of how to render this constraint into DebugRenderer.
virtual ~AngularLockJoint()
The base class for a constraint.
Definition: Constraint.h:89
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
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:30
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
ref_ptr< AngularLockJoint > AngularLockJointRef