AGX Dynamics
2.38.0.2
SlackLockJoint.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
agx
22
{
23
29
class
CALLABLE
AGXPHYSICS_EXPORT
SlackLockJoint
:
public
Constraint
30
{
31
public
:
38
SlackLockJoint
(
agx::RigidBody
* rb1,
RigidBody
* rb2 =
nullptr
);
39
48
SlackLockJoint
(
agx::RigidBody
* rb1,
agx::Frame
* rb1AttachmentFrame,
agx::RigidBody
* rb2 =
nullptr
,
agx::Frame
* rb2AttachmentFrame =
nullptr
);
49
56
SlackLockJoint
(
agx::RigidBody
* rb1,
agx::RigidBody
* rb2,
const
agx::Vec3
& worldAnchorPoint );
57
63
SlackLockJoint
(
agx::RigidBody
* rb1,
const
agx::Vec3
& localAnchorPoint );
64
69
enum
DOF
70
{
71
ALL_DOF=-1,
72
TRANSLATIONAL_1=0,
73
TRANSLATIONAL_2=1,
74
TRANSLATIONAL_3=2,
75
ROTATIONAL_1=3,
76
ROTATIONAL_2=4,
77
ROTATIONAL_3=5,
78
NUM_DOF=6
79
};
80
84
virtual
int
getNumDOF()
const override
;
85
86
100
bool
setSlackParameters(
agx::Vec3
pos_uvn,
agx::Real
rot );
101
102
107
bool
getSlackParameters(
agx::Vec3
& pos_uvn,
agx::Real
& rot )
const
;
108
109
AGXSTREAM_DECLARE_SERIALIZABLE
(
agx::SlackLockJoint
);
110
111
protected
:
112
SlackLockJoint
();
113
virtual
~
SlackLockJoint
();
114
118
virtual
void
render(
agxRender::RenderManager
*mgr,
float
scale )
const override
;
119
120
private
:
121
122
class
SlackLockJointImplementation *m_implementation;
123
124
};
125
126
typedef
ref_ptr<SlackLockJoint>
SlackLockJointRef
;
127
128
}
129
agx::Real
double Real
Definition:
Real.h:42
agx::SlackLockJoint::DOF
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
Definition:
SlackLockJoint.h:69
agx::SlackLockJointRef
ref_ptr< SlackLockJoint > SlackLockJointRef
Definition:
SlackLockJoint.h:126
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition:
RigidBody.h:51
CALLABLE
#define CALLABLE
Definition:
macros.h:72
agxRender::RenderManager
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
Definition:
RenderManager.h:106
Constraint.h
agx::SlackLockJoint
A constraint that is equal to the.
Definition:
SlackLockJoint.h:29
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
agx::ref_ptr
Smart pointer for handling referenced counted objects.
Definition:
ref_ptr.h:29
agx::Constraint
The base class for a constraint.
Definition:
Constraint.h:88
agx::Vec3T< Real >
agx::Frame
The object defining a frame of reference and providing transformations operations.
Definition:
Frame.h:67
include
agx
SlackLockJoint.h
Generated on Sun Sep 1 2024 11:18:56 for AGX Dynamics by
1.8.17