Momentum Scripting v1
Loading...
Searching...
No Matches
Screw1D.h
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 without having a written signed agreement with Algoryx Simulation AB.
9
10Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
11from using this software, unless otherwise stated in written agreements with
12Algoryx Simulation AB.
13*/
14
15#ifndef MOMENTUM_SCREW1D_H
16#define MOMENTUM_SCREW1D_H
17
18#include "momentum_export.h"
19#include "momentum_namespace.h"
20
21#include "macros.h"
22#include "Vec3.h"
23
24#include <memory>
25
26#ifndef SWIG
28namespace agx
29{
30 class ScrewController;
31}
33#endif
34
35namespace MOMENTUM_NAMESPACE
36{
40 class MOMENTUM_EXPORT Screw1D
41 {
42 public:
43#ifndef SWIG
45
49 Screw1D(agx::ScrewController* Screw1D);
50
54 Screw1D();
56#endif
57
58#ifndef AGX_MOMENTUM_ANALYSIS_API
59 void setEnable(bool enable);
60
65 void setLead(double lead);
66#endif
67
68 bool getEnable() const;
69
73 agx::Real getLead() const;
74
75 private:
76#ifndef SWIG
78 agx::ScrewController* m_screw;
80#endif
81 };
82
83 V1_DECLARE_CONTAINER_TYPE(Screw1D);
84} // namespace momentum
85
86
87#endif
The screw joint couples the vertical and rotational movement for the cylinder joint.
Definition: Screw1D.h:41
void setLead(double lead)
Assign lead, i.e., the distance along the screw's axis that is covered by one complete rotation.
agx::Real getLead() const
void setEnable(bool enable)
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29