AGX Dynamics
2.37.3.2
PlaneJoint.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_PLANEJOINT_H
18
#define AGX_PLANEJOINT_H
19
20
#include <
agx/Constraint.h
>
21
22
namespace
agx
23
{
24
class
AGXPHYSICS_EXPORT
PlaneJoint
:
public
agx::Constraint
25
{
26
public
:
35
PlaneJoint
(
agx::RigidBody
* rb1,
agx::Frame
* rb1AttachmentFrame,
agx::RigidBody
* rb2 =
nullptr
,
agx::Frame
* rb2AttachmentFrame =
nullptr
);
36
37
enum
DOF
38
{
39
ALL_DOF = -1,
40
TRANSLATIONAL_1 = 0,
41
NUM_DOF = 1
42
};
43
44
virtual
int
getNumDOF
()
const override
45
{
46
return
NUM_DOF;
47
}
48
49
AGXSTREAM_DECLARE_SERIALIZABLE
(
agx::PlaneJoint
);
50
51
virtual
void
render
(
class
agxRender::RenderManager
*,
float
/*scale = 1.0f*/
)
const override
52
{}
53
54
55
protected
:
56
PlaneJoint
();
57
virtual
~
PlaneJoint
();
58
59
private
:
60
class
PlaneJointImplementation* m_implementation;
61
};
62
63
typedef
agx::ref_ptr< agx::PlaneJoint >
PlaneJointRef
;
64
}
//namespace agx
65
66
#endif
agx::PlaneJoint::getNumDOF
virtual int getNumDOF() const override
Definition:
PlaneJoint.h:44
agx::PlaneJointRef
agx::ref_ptr< agx::PlaneJoint > PlaneJointRef
Definition:
PlaneJoint.h:63
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agx::Constraint
The base class for a constraint.
Definition:
Constraint.h:88
agx::PlaneJoint
Definition:
PlaneJoint.h:24
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::PlaneJoint::render
virtual void render(class agxRender::RenderManager *, float) const override
Inherited method of how to render this constraint into DebugRenderer.
Definition:
PlaneJoint.h:51
agx::PlaneJoint::DOF
DOF
Definition:
PlaneJoint.h:37
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: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
include
agx
PlaneJoint.h
Generated on Fri Apr 12 2024 12:40:25 for AGX Dynamics by
1.8.13