AGXDynamics  2.35.0.2
VariableUtil.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 #ifndef AGXFMI2_EXPORT_VARIABLEUTIL_H
18 #define AGXFMI2_EXPORT_VARIABLEUTIL_H
19 
21 #include <agx/Constraint.h>
22 #include <agx/ParticleEmitter.h>
23 
24 namespace agxFMI2
25 {
26  namespace Export
27  {
28  namespace Constraint
29  {
30  // Constraint
31  AGXFMI_EXPORT InputVariable_Real *setCompliance(agx::Constraint* constraint);
32  AGXFMI_EXPORT InputVariable_Real *setDamping(agx::Constraint* constraint);
33 
34  // Motor
35  // AGXFMI_EXPORT InputVariable_Bool *enableMotor(agx::Constraint1DOF* constraint);
36  // AGXFMI_EXPORT InputVariable_Bool *enableMotor(agx::Constraint2DOF* constraint, agx::Constraint2DOF::DOF dof);
37 
38  AGXFMI_EXPORT InputVariable_Real *setMotorSpeed(agx::Constraint1DOF* constraint);
39  AGXFMI_EXPORT InputVariable_Real *setMotorSpeed(agx::Constraint2DOF* constraint, agx::Constraint2DOF::DOF dof);
40 
41  AGXFMI_EXPORT InputVariable_Real *setMotorMinForceRange(agx::Constraint1DOF* constraint);
43 
44  AGXFMI_EXPORT InputVariable_Real *setMotorMaxForceRange(agx::Constraint1DOF* constraint);
46 
47  AGXFMI_EXPORT InputVariable_Real *setMotorCompliance(agx::Constraint1DOF* constraint);
49 
50  // Range
51  // AGXFMI_EXPORT InputVariable_Bool *enableRange(agx::Constraint1DOF* constraint);
52  // AGXFMI_EXPORT InputVariable_Bool *enableRange(agx::Constraint2DOF* constraint, agx::Constraint2DOF::DOF dof);
53 
54  AGXFMI_EXPORT InputVariable_Real *setRangeMinRange(agx::Constraint1DOF* constraint);
55  AGXFMI_EXPORT InputVariable_Real *setRangeMinRange(agx::Constraint2DOF* constraint, agx::Constraint2DOF::DOF dof);
56 
57  AGXFMI_EXPORT InputVariable_Real *setRangeMaxRange(agx::Constraint1DOF* constraint);
58  AGXFMI_EXPORT InputVariable_Real *setRangeMaxRange(agx::Constraint2DOF* constraint, agx::Constraint2DOF::DOF dof);
59 
60  AGXFMI_EXPORT InputVariable_Real *setRangeMinForceRange(agx::Constraint1DOF* constraint);
62 
63  AGXFMI_EXPORT InputVariable_Real *setRangeMaxForceRange(agx::Constraint1DOF* constraint);
65 
66  AGXFMI_EXPORT InputVariable_Real *setRangeCompliance(agx::Constraint1DOF* constraint);
68 
69  // Lock
70  // AGXFMI_EXPORT InputVariable_Bool *enableLock(agx::Constraint1DOF* constraint);
71  // AGXFMI_EXPORT InputVariable_Bool *enableLock(agx::Constraint2DOF* constraint, agx::Constraint2DOF::DOF dof);
72 
73  AGXFMI_EXPORT InputVariable_Real *setLockPosition(agx::Constraint1DOF* constraint);
74  AGXFMI_EXPORT InputVariable_Real *setLockPosition(agx::Constraint2DOF* constraint, agx::Constraint2DOF::DOF dof);
75 
76  AGXFMI_EXPORT InputVariable_Real *setLockMinForceRange(agx::Constraint1DOF* constraint);
78 
79  AGXFMI_EXPORT InputVariable_Real *setLockMaxForceRange(agx::Constraint1DOF* constraint);
81 
82  AGXFMI_EXPORT InputVariable_Real *setLockCompliance(agx::Constraint1DOF* constraint);
84 
85  }
86 
87  namespace ParticleEmitter
88  {
89  AGXFMI_EXPORT InputVariable_Real *setEmitterRate(agx::ParticleEmitter* emitter);
90  }
91 
92  }
93 
94 }
95 
96 
97 #endif /* AGXFMI2_EXPORT_VARIABLEUTIL_H */
agx::Constraint2DOF::DOF
DOF
Specifies a selected degree of freedom.
Definition: Constraint.h:771
agxFMI2::Export::Constraint::setRangeMaxRange
AGXFMI_EXPORT InputVariable_Real * setRangeMaxRange(agx::Constraint1DOF *constraint)
agxFMI2::Export::Constraint::setRangeMinRange
AGXFMI_EXPORT InputVariable_Real * setRangeMinRange(agx::Constraint1DOF *constraint)
agx::Constraint1DOF
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
Definition: Constraint.h:676
agxFMI2::Export::Constraint::setMotorMaxForceRange
AGXFMI_EXPORT InputVariable_Real * setMotorMaxForceRange(agx::Constraint1DOF *constraint)
agxFMI2::Export::Constraint::setLockPosition
AGXFMI_EXPORT InputVariable_Real * setLockPosition(agx::Constraint1DOF *constraint)
agxFMI2::Export::Constraint::setMotorMinForceRange
AGXFMI_EXPORT InputVariable_Real * setMotorMinForceRange(agx::Constraint1DOF *constraint)
agx::Constraint2DOF
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
Definition: Constraint.h:761
agxFMI2::Export::ParticleEmitter::setEmitterRate
AGXFMI_EXPORT InputVariable_Real * setEmitterRate(agx::ParticleEmitter *emitter)
Constraint.h
agxFMI2::Export::Constraint::setRangeCompliance
AGXFMI_EXPORT InputVariable_Real * setRangeCompliance(agx::Constraint1DOF *constraint)
agxFMI2::Export::Constraint::setLockMinForceRange
AGXFMI_EXPORT InputVariable_Real * setLockMinForceRange(agx::Constraint1DOF *constraint)
agxFMI2::Export::Constraint::setCompliance
AGXFMI_EXPORT InputVariable_Real * setCompliance(agx::Constraint *constraint)
agxFMI2::Export::Constraint::setMotorCompliance
AGXFMI_EXPORT InputVariable_Real * setMotorCompliance(agx::Constraint1DOF *constraint)
agxFMI2::Export::Constraint::setRangeMaxForceRange
AGXFMI_EXPORT InputVariable_Real * setRangeMaxForceRange(agx::Constraint1DOF *constraint)
agxFMI2
This namespace contains functionality for using AGX together with version 2 of the Functional Mockup ...
agxFMI2::Export::Constraint::setLockCompliance
AGXFMI_EXPORT InputVariable_Real * setLockCompliance(agx::Constraint1DOF *constraint)
agxFMI2::Export::Constraint::setRangeMinForceRange
AGXFMI_EXPORT InputVariable_Real * setRangeMinForceRange(agx::Constraint1DOF *constraint)
Variable.h
AGXFMI_EXPORT
#define AGXFMI_EXPORT
agx::Constraint
The base class for a constraint.
Definition: Constraint.h:88
agxFMI2::Export::Constraint::setDamping
AGXFMI_EXPORT InputVariable_Real * setDamping(agx::Constraint *constraint)
agxFMI2::Export::Constraint::setLockMaxForceRange
AGXFMI_EXPORT InputVariable_Real * setLockMaxForceRange(agx::Constraint1DOF *constraint)
agxFMI2::Export::Constraint::setMotorSpeed
AGXFMI_EXPORT InputVariable_Real * setMotorSpeed(agx::Constraint1DOF *constraint)
agx::ParticleEmitter
Spawns new particles inside a given volume given to the Emitter.
Definition: ParticleEmitter.h:32
ParticleEmitter.h