Momentum Scripting v1
Loading...
Searching...
No Matches
AngularRange.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_ANGULARRANGE_H
16#define MOMENTUM_ANGULARRANGE_H
17
18#include "momentum_export.h"
19#include "momentum_namespace.h"
20
21#include "AngularSecondaryJoint.h"
22
23#ifndef SWIG
25namespace agx
26{
27 class RangeController;
28}
30#endif
31
32namespace MOMENTUM_NAMESPACE
33{
37 class MOMENTUM_EXPORT AngularRange : public AngularSecondaryJoint
38 {
39 public:
40#ifndef SWIG
42 AngularRange(agx::RangeController* constraint);
44#endif
45
50 std::pair<double, double> getRange() const;
51
52#ifndef AGX_MOMENTUM_ANALYSIS_API
59 void setRange(std::pair<double, double> range);
60
68 void setRange(double min, double max);
69#endif
70
72 std::string __str__() const;
73 protected:
79
80 private:
81#ifndef SWIG
82 agx::RangeController* getAgxRange() const;
84#endif
85 };
86} // namespace momentum
87
88
89#endif
Angular range will limit the rotation of a rotational joint between min and max range.
Definition: AngularRange.h:38
std::pair< double, double > getRange() const
Get the min and max rotation (unit: radians) of the movement that this range allow.
void setRange(std::pair< double, double > range)
Set the min and max rotation (unit: radians) of the movement that this range allow.
void setRange(double min, double max)
Set the min and max rotation (unit: radians) of the movement that this range allow.
An angular secondary joint operates on the free rotational DOF of angular joints such as HingeJoint a...
Definition: AngularSecondaryJoint.h:38
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29