AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
SplineJoint.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
19#include <agx/Constraint.h>
20
21namespace agxUtil
22{
23 class Spline;
24}
25
26namespace agx
27{
28
35 {
36 public:
37
42 enum DOF
43 {
44 ALL_DOF = -1,
45 ROTATIONAL_1 = 0,
46 ROTATIONAL_2 = 1,
47 TRANSLATIONAL_1 = 2,
48 TRANSLATIONAL_2 = 3,
49 NUM_DOF = 4
50 };
51
52
59 SplineJoint(RigidBody* rb, Frame* rbAttachmentFrame, agxUtil::Spline* spline);
60
65 virtual int getNumDOF() const override;
66 virtual void render(class agxRender::RenderManager * mgr, float scale = 1.0f) const override;
67
69
70 protected:
71
72 // For restore only
74
75 virtual ~SplineJoint();
76
77 private:
78 class SplineJointImplementation* m_implementation;
79 };
80
82
83
84} // namespace agx
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
#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
#define AGXPHYSICS_EXPORT
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
Base class for splines.
Definition: Spline.h:32
Specialization for constraints that have two degree of freedom such as Cylindrical.
Definition: Constraint.h:798
The object defining a frame of reference and providing transformations operations.
Definition: agx/Frame.h:68
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:49
A SplineJoint is a constraint with a motor/range/lock for translation/rotation that will restrict a b...
Definition: SplineJoint.h:35
SplineJoint(RigidBody *rb, Frame *rbAttachmentFrame, agxUtil::Spline *spline)
Create SplineJoint given one rigid body with corresponding attachment frame.
virtual void render(class agxRender::RenderManager *mgr, float scale=1.0f) const override
Inherited method of how to render this constraint into DebugRenderer.
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
Definition: SplineJoint.h:43
virtual int getNumDOF() const override
virtual ~SplineJoint()
The agxUtil namespace contain classes and methods for utility functionality.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.