AGX Dynamics
2.37.3.2
SlackCylindricalJoint.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/CylindricalJoint.h
>
20
21
namespace
agx
22
{
23
29
class
CALLABLE
AGXPHYSICS_EXPORT
SlackCylindricalJoint
:
public
Constraint2DOF
30
{
31
public
:
38
SlackCylindricalJoint
(
const
CylindricalJointFrame
& cf,
RigidBody
* rb1,
RigidBody
* rb2 = 0 );
39
47
SlackCylindricalJoint
(
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
TRANSLATIONAL_1=2,
59
TRANSLATIONAL_2=3,
60
NUM_DOF=4
61
};
62
66
virtual
int
getNumDOF()
const override
;
67
68
82
bool
setSlackParameters(
agx::Vec2
pos_uv,
agx::Real
rot );
83
84
89
bool
getSlackParameters(
agx::Vec2
& pos_uv,
agx::Real
& rot )
const
;
90
91
92
AGXSTREAM_DECLARE_SERIALIZABLE
(
agx::SlackCylindricalJoint
);
93
94
protected
:
95
SlackCylindricalJoint
();
96
virtual
~
SlackCylindricalJoint
();
97
101
virtual
void
render(
agxRender::RenderManager
*mgr,
float
scale )
const override
;
102
103
private
:
104
class
SlackCylindricalJointImplementation* m_implementation;
105
};
106
107
typedef
ref_ptr<SlackCylindricalJoint>
SlackCylindricalJointRef
;
108
109
110
}
// namespace agx
111
agx::SlackCylindricalJoint
A constraint that is equal to the.
Definition:
SlackCylindricalJoint.h:29
agx::SlackCylindricalJointRef
ref_ptr< SlackCylindricalJoint > SlackCylindricalJointRef
Definition:
SlackCylindricalJoint.h:107
agx::CylindricalJointFrame
Helper function to define the reference frame used by the prismatic constraint.
Definition:
CylindricalJoint.h:32
agx::Constraint2DOF
Specialization for constraints that have two degree of freedom such as Cylindrical.
Definition:
Constraint.h:761
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxRender::RenderManager
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc...
Definition:
RenderManager.h:106
agx::Vec2T< Real >
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition:
AddedMassInteraction.h:22
agx::Constraint2DOF::DOF
DOF
Specifies a selected degree of freedom.
Definition:
Constraint.h:771
CylindricalJoint.h
agx::ref_ptr
Smart pointer for handling referenced counted objects.
Definition:
ref_ptr.h:29
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition:
RigidBody.h:54
CALLABLE
#define CALLABLE
Definition:
Object.h:73
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::Real
double Real
Definition:
Real.h:42
include
agx
SlackCylindricalJoint.h
Generated on Fri Apr 12 2024 12:40:26 for AGX Dynamics by
1.8.13