Momentum Scripting v1
Loading...
Searching...
No Matches
LinearRange.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_LINEARRANGE_H
16#define MOMENTUM_LINEARRANGE_H
17
18#include "momentum_namespace.h"
19#include "momentum_export.h"
20
21#include "LinearSecondaryJoint.h"
22
23#ifndef SWIG
25namespace agx
26{
27 class RangeController;
28}
30#endif
31
32namespace MOMENTUM_NAMESPACE
33{
37 class MOMENTUM_EXPORT LinearRange : public LinearSecondaryJoint
38 {
39 public:
40#ifndef SWIG
42
45 LinearRange(agx::RangeController* constraint);
46
52#endif
53
58 std::pair<double,double> getRange() const;
59
60#ifndef AGX_MOMENTUM_ANALYSIS_API
67 void setRange(std::pair<double, double> range);
68
76 void setRange(double min, double max);
77
78#endif
79
81 std::string __str__() const;
83 private:
84#ifndef SWIG
85 agx::RangeController* getAgxRange() const;
86#endif
87 };
88} // namespace momentum
89
90
91#endif
Linear range will limit the motion between min and max range.
Definition: LinearRange.h:38
std::pair< double, double > getRange() const
Get the min and max position (unit: meter) of the movement that this range allow.
void setRange(std::pair< double, double > range)
Set the min and max position (unit: meter) of the movement that this range allow.
void setRange(double min, double max)
Set the min and max position (unit: meter) of the movement that this range allow.
A base class for motors, springs and ranges on linear constraints.
Definition: LinearSecondaryJoint.h:38
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29