AGX Dynamics  2.37.2.0
PlaneJoint.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 #ifndef AGX_PLANEJOINT_H
18 #define AGX_PLANEJOINT_H
19 
20 #include <agx/Constraint.h>
21 
22 namespace agx
23 {
25  {
26  public:
35  PlaneJoint( agx::RigidBody* rb1, agx::Frame* rb1AttachmentFrame, agx::RigidBody* rb2 = nullptr, agx::Frame* rb2AttachmentFrame = nullptr );
36 
37  enum DOF
38  {
39  ALL_DOF = -1,
40  TRANSLATIONAL_1 = 0,
41  NUM_DOF = 1
42  };
43 
44  virtual int getNumDOF() const override
45  {
46  return NUM_DOF;
47  }
48 
50 
51  virtual void render(class agxRender::RenderManager *, float /*scale = 1.0f*/ ) const override
52  {}
53 
54 
55  protected:
56  PlaneJoint();
57  virtual ~PlaneJoint();
58 
59  private:
60  class PlaneJointImplementation* m_implementation;
61  };
62 
64 } //namespace agx
65 
66 #endif
virtual int getNumDOF() const override
Definition: PlaneJoint.h:44
agx::ref_ptr< agx::PlaneJoint > PlaneJointRef
Definition: PlaneJoint.h:63
#define AGXPHYSICS_EXPORT
The base class for a constraint.
Definition: Constraint.h:88
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
virtual void render(class agxRender::RenderManager *, float) const override
Inherited method of how to render this constraint into DebugRenderer.
Definition: PlaneJoint.h:51
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:29
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:54
The object defining a frame of reference and providing transformations operations.
Definition: Frame.h:67
#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