AGXDynamics
2.31.1.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
LockJoint.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2021. 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_LOCKJOINT_H
18
#define AGX_LOCKJOINT_H
19
20
#include <
agx/Constraint.h
>
21
22
namespace
agx
23
{
28
class
CALLABLE
AGXPHYSICS_EXPORT
LockJoint
:
public
Constraint
29
{
30
public
:
37
LockJoint
(
agx::RigidBody
* rb1,
RigidBody
* rb2 =
nullptr
);
38
47
LockJoint
(
agx::RigidBody
* rb1,
agx::Frame
* rb1AttachmentFrame,
agx::RigidBody
* rb2 =
nullptr
,
agx::Frame
* rb2AttachmentFrame =
nullptr
);
48
55
LockJoint
(
agx::RigidBody
* rb1,
agx::RigidBody
* rb2,
const
agx::Vec3
& worldAnchorPoint );
56
62
LockJoint
(
agx::RigidBody
* rb1,
const
agx::Vec3
& localAnchorPoint );
63
68
enum
DOF
69
{
70
ALL_DOF=-1,
71
TRANSLATIONAL_1=0,
72
TRANSLATIONAL_2=1,
73
TRANSLATIONAL_3=2,
74
ROTATIONAL_1=3,
75
ROTATIONAL_2=4,
76
ROTATIONAL_3=5,
77
NUM_DOF=6
78
};
79
83
virtual
int
getNumDOF()
const override
;
84
85
AGXSTREAM_DECLARE_SERIALIZABLE
(
agx::LockJoint
);
86
87
protected
:
88
LockJoint
();
89
virtual
~
LockJoint
();
90
94
virtual
void
render(
agxRender::RenderManager
*mgr,
float
scale )
const override
;
95
96
private
:
97
98
class
LockJointImplementation *m_implementation;
99
100
};
101
102
typedef
ref_ptr<LockJoint>
LockJointRef
;
103
104
}
105
106
#endif
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agx::Constraint
The base class for a constraint.
Definition:
Constraint.h:86
agxRender::RenderManager
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc...
Definition:
RenderManager.h:110
agx::LockJoint
Constraint that removes all 6 DOF between two bodies, or one body and the world.
Definition:
LockJoint.h:28
agx::ref_ptr
Smart pointer for handling referenced counted objects.
Definition:
ref_ptr.h:29
Constraint.h
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition:
RigidBody.h:52
CALLABLE
#define CALLABLE
Definition:
Object.h:76
agx::Vec3T< Real >
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:206
agx::LockJoint::DOF
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
Definition:
LockJoint.h:68
agx::LockJointRef
ref_ptr< LockJoint > LockJointRef
Definition:
LockJoint.h:102
include
agx
LockJoint.h
Generated on Mon Mar 21 2022 11:53:03 for AGXDynamics by
1.8.5