AGX Dynamics  2.35.0.1
RotationalActuatorConnector.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 AGXPOWERLINE_ROTATIONAL_ACTUATOR_CONNECTOR_H
18 #define AGXPOWERLINE_ROTATIONAL_ACTUATOR_CONNECTOR_H
19 
21 
23 
24 namespace agxPowerLine
25 {
26  class RotationalActuator;
27 
28  namespace detail
29  {
30  AGX_DECLARE_POINTER_TYPES(RotationalActuatorConnector);
31 
36  class AGXMODEL_EXPORT RotationalActuatorConnector : public agxPowerLine::ActuatorConnector
37  {
38  public:
39  RotationalActuatorConnector(agxPowerLine::RotationalActuator* actuator);
40 
41  virtual bool getReverseOrder() const override;
42 
43  AGXSTREAM_DECLARE_SERIALIZABLE(agxPowerLine::detail::RotationalActuatorConnector);
44 
45 
46  // Methods called by the rest of the PowerLine framework.
47  public:
48  virtual agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation* createConstraint() override;
49 
50  virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping(
51  const agx::Real timeStep, agx::Real& compliance, agx::Real& damping) override;
52 
53  virtual bool store(agxStream::StorageStream& out) const override;
54  virtual bool restore(agxStream::StorageStream& in) override;
55 
56  protected:
57  RotationalActuatorConnector();
58  virtual ~RotationalActuatorConnector() {}
59 
60  private:
62  };
63  }
64 }
65 
67 
68 #endif
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
#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
#define AGXMODEL_EXPORT
Constraint implementation for constraining a number of physical dimensions of the same type.
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:49
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
Definition: observer_ptr.h:61
agxPowerLine contains a collection of connected components that transport power across a system.
Definition: MotorUnit.h:24
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
Definition: InputArchive.h:400
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive.
double Real
Definition: Real.h:42