AGXDynamics  2.35.0.3
ConstraintMergeSplitThresholds.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. 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 #pragma once
18 
20 
21 namespace agxSDK
22 {
24 
29  {
30  public:
32  {
34  NUM_MERGE_THRESHOLDS
35  };
36 
38  {
39  DESIRED_SPEED_DIFF = NUM_MERGE_THRESHOLDS,
43  NUM_THRESHOLDS
44  };
45 
46  public:
51 
57  void setMaxRelativeSpeed( agx::Real value );
58 
63  agx::Real getMaxRelativeSpeed() const;
64 
69  void setMaxDesiredSpeedDiff( agx::Real value );
70 
75  agx::Real getMaxDesiredSpeedDiff() const;
76 
81  void setMaxDesiredLockAngleDiff( agx::Real value );
82 
87  agx::Real getMaxDesiredLockAngleDiff() const;
88 
93  void setMaxDesiredRangeAngleDiff( agx::Real value );
94 
99  agx::Real getMaxDesiredRangeAngleDiff() const;
100 
105  void setMaxDesiredForceRangeDiff( agx::Real value );
106 
111  agx::Real getMaxDesiredForceRangeDiff() const;
112 
113  public:
115 
119  virtual agx::ICloneableRef clone( agx::ICloneable* child = nullptr ) override;
120 
124  virtual void resetToDefault() override;
125 
126  protected:
131  };
132 
134  {
135  return get( MAX_RELATIVE_SPEED );
136  }
137 
139  {
140  return get( DESIRED_SPEED_DIFF );
141  }
142 
144  {
145  return get( DESIRED_LOCK_ANGLE_DIFF );
146  }
147 
149  {
150  return get( DESIRED_RANGE_ANGLE_DIFF );
151  }
152 
154  {
155  return get( DESIRED_FORCE_RANGE_DIFF );
156  }
157 }
MergeSplitThresholds.h
agxSDK::ConstraintMergeSplitThresholds::MergeThresholds
MergeThresholds
Definition: ConstraintMergeSplitThresholds.h:31
agx::Real
double Real
Definition: Real.h:42
agxSDK::ConstraintMergeSplitThresholds::getMaxDesiredLockAngleDiff
agx::Real getMaxDesiredLockAngleDiff() const
Definition: ConstraintMergeSplitThresholds.h:143
agxSDK::ConstraintMergeSplitThresholds::DESIRED_RANGE_ANGLE_DIFF
@ DESIRED_RANGE_ANGLE_DIFF
Definition: ConstraintMergeSplitThresholds.h:41
agx::ICloneable
Interface class for a cloneable reference counted object.
Definition: ICloneable.h:29
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
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxSDK::ConstraintMergeSplitThresholds::DESIRED_SPEED_DIFF
@ DESIRED_SPEED_DIFF
Definition: ConstraintMergeSplitThresholds.h:39
agxSDK::MergeSplitThresholds
Base class for thresholds/constants/values used in agxSDK::MergeSplitAlgorithm.
Definition: MergeSplitThresholds.h:33
agx::ref_ptr
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:29
agxSDK::ConstraintMergeSplitThresholds::DESIRED_FORCE_RANGE_DIFF
@ DESIRED_FORCE_RANGE_DIFF
Definition: ConstraintMergeSplitThresholds.h:42
agxSDK::MergeSplitThresholds::get
agx::Real get(const agx::UInt index) const
Definition: MergeSplitThresholds.h:133
agxSDK::ConstraintMergeSplitThresholds
Specific thresholds used to split and merge objects given constraints.
Definition: ConstraintMergeSplitThresholds.h:28
agxSDK::ConstraintMergeSplitThresholds::MAX_RELATIVE_SPEED
@ MAX_RELATIVE_SPEED
Definition: ConstraintMergeSplitThresholds.h:33
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
agx::UInt
uint32_t UInt
Definition: Integer.h:34
agxSDK::ConstraintMergeSplitThresholds::DESIRED_LOCK_ANGLE_DIFF
@ DESIRED_LOCK_ANGLE_DIFF
Definition: ConstraintMergeSplitThresholds.h:40
agxSDK::ConstraintMergeSplitThresholds::SplitThresholds
SplitThresholds
Definition: ConstraintMergeSplitThresholds.h:37
agxSDK
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30
agxSDK::ConstraintMergeSplitThresholds::getMaxDesiredForceRangeDiff
agx::Real getMaxDesiredForceRangeDiff() const
Definition: ConstraintMergeSplitThresholds.h:153
agxSDK::ConstraintMergeSplitThresholds::getMaxDesiredRangeAngleDiff
agx::Real getMaxDesiredRangeAngleDiff() const
Definition: ConstraintMergeSplitThresholds.h:148
agxSDK::ConstraintMergeSplitThresholds::getMaxDesiredSpeedDiff
agx::Real getMaxDesiredSpeedDiff() const
Definition: ConstraintMergeSplitThresholds.h:138
agxSDK::ConstraintMergeSplitThresholds::getMaxRelativeSpeed
agx::Real getMaxRelativeSpeed() const
When the relative motion between the objects is less than this threshold, the objects may merge.
Definition: ConstraintMergeSplitThresholds.h:133