AGX Dynamics
2.37.3.2
AngularLockJoint.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_ANGULARLOCKJOINT_H
18
#define AGX_ANGULARLOCKJOINT_H
19
20
#include <
agx/Constraint.h
>
21
22
namespace
agx
23
{
24
29
class
AGXPHYSICS_EXPORT
AngularLockJoint
:
public
Constraint
30
{
31
public
:
37
AngularLockJoint
(
RigidBody
* rb1,
RigidBody
* rb2 = 0);
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
70
AGXSTREAM_DECLARE_SERIALIZABLE
(
agx::AngularLockJoint
);
71
72
virtual
void
render
(
class
agxRender::RenderManager
*,
float
/*scale = 1.0f*/
)
const override
73
{}
74
75
protected
:
76
AngularLockJoint
();
77
virtual
~
AngularLockJoint
();
78
79
private
:
80
class
AngularLockJointImplementation *m_implementation;
81
};
82
83
typedef
ref_ptr< AngularLockJoint >
AngularLockJointRef
;
84
}
85
86
#endif
87
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agx::Constraint
The base class for a constraint.
Definition:
Constraint.h:88
agxRender::RenderManager
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc...
Definition:
RenderManager.h:106
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition:
AddedMassInteraction.h:22
agx::ref_ptr
Smart pointer for handling referenced counted objects.
Definition:
ref_ptr.h:29
agx::AngularLockJoint::DOF
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
Definition:
AngularLockJoint.h:53
agx::AngularLockJoint
Constraint that removes 3 DOF (rotational degrees of freedom) between two bodies, or one body and the...
Definition:
AngularLockJoint.h:29
Constraint.h
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition:
RigidBody.h:54
agx::Frame
The object defining a frame of reference and providing transformations operations.
Definition:
Frame.h:67
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::AngularLockJoint::getNumDOF
virtual int getNumDOF() const override
Definition:
AngularLockJoint.h:65
agx::AngularLockJointRef
ref_ptr< AngularLockJoint > AngularLockJointRef
Definition:
AngularLockJoint.h:83
agx::AngularLockJoint::render
virtual void render(class agxRender::RenderManager *, float) const override
Inherited method of how to render this constraint into DebugRenderer.
Definition:
AngularLockJoint.h:72
include
agx
AngularLockJoint.h
Generated on Fri Apr 12 2024 12:40:20 for AGX Dynamics by
1.8.13