AGX Dynamics
2.37.2.0
SlackPrismaticJoint.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/Prismatic.h
>
20
21
namespace
agx
22
{
23
29
class
CALLABLE
AGXPHYSICS_EXPORT
SlackPrismaticJoint
:
public
Constraint1DOF
30
{
31
public
:
39
SlackPrismaticJoint
(
const
PrismaticFrame
& pf,
RigidBody
* rb1,
RigidBody
* rb2 = 0 );
40
49
SlackPrismaticJoint
(
RigidBody
* rb1,
Frame
* rb1AttachmentFrame,
RigidBody
* rb2 =
nullptr
,
Frame
* rb2AttachmentFrame =
nullptr
);
50
57
SlackPrismaticJoint
(
const
Vec3
& axis,
RigidBody
* rb1,
RigidBody
* rb2 =
nullptr
);
58
63
enum
DOF
{
64
ALL_DOF = -1,
65
ROTATIONAL_1 = 0,
66
ROTATIONAL_2 = 1,
67
ROTATIONAL_3 = 2,
68
TRANSLATIONAL_1 = 3,
69
TRANSLATIONAL_2 = 4,
70
NUM_DOF = 5
71
};
72
76
virtual
int
getNumDOF()
const override
;
77
91
bool
setSlackParameters(
agx::Vec2
pos_uv,
agx::Real
rot );
92
93
98
bool
getSlackParameters(
agx::Vec2
& pos_uv,
agx::Real
& rot )
const
;
99
100
AGXSTREAM_DECLARE_SERIALIZABLE
(
agx::SlackPrismaticJoint
);
101
102
protected
:
103
SlackPrismaticJoint
();
104
virtual
~
SlackPrismaticJoint
();
105
109
virtual
void
render(
agxRender::RenderManager
* mgr,
float
scale )
const override
;
110
111
private
:
112
class
SlackPrismaticJointImplementation* m_implementation;
113
};
114
115
typedef
SlackPrismaticJoint
SlackPrismatic
;
// Normal Prismatic does not have Joint in name.
116
typedef
ref_ptr<SlackPrismaticJoint>
SlackPrismaticJointRef
;
117
118
119
120
}
// namespace agx
121
Prismatic.h
agx::SlackPrismaticJoint::DOF
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
Definition:
SlackPrismaticJoint.h:63
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agx::Constraint1DOF
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic...
Definition:
Constraint.h:673
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::ref_ptr
Smart pointer for handling referenced counted objects.
Definition:
ref_ptr.h:29
agx::SlackPrismaticJoint
A constraint that is equal to the.
Definition:
SlackPrismaticJoint.h:29
agx::SlackPrismatic
SlackPrismaticJoint SlackPrismatic
Definition:
SlackPrismaticJoint.h:115
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::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:207
agx::PrismaticFrame
Helper function to define the reference frame used by the prismatic constraint.
Definition:
Prismatic.h:27
agx::Real
double Real
Definition:
Real.h:42
agx::SlackPrismaticJointRef
ref_ptr< SlackPrismaticJoint > SlackPrismaticJointRef
Definition:
SlackPrismaticJoint.h:116
include
agx
SlackPrismaticJoint.h
Generated on Sun Jan 28 2024 11:19:34 for AGX Dynamics by
1.8.13