AGXDynamics  2.35.0.3
ActuatorConnector.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 
18 #ifndef AGXPOWERLINE_ACTUATOR_CONNECTOR_H
19 #define AGXPOWERLINE_ACTUATOR_CONNECTOR_H
20 
21 #include <agxPowerLine/Actuator.h>
24 
25 namespace agx
26 {
27  class RigidBody;
28 }
29 
30 namespace agxPowerLine
31 {
32  class PhysicalDimension;
33 }
34 
35 namespace agxPowerLine
36 {
37 
39 
41  {
42  public:
44 
45  agxPowerLine::Actuator* getActuator();
46  const agxPowerLine::Actuator* getActuator() const;
47 
48  // The Actuator could connect its two units in normal or reversed order
49  // This function is to find if this specific connector is connected in reversed order
50  virtual bool getReverseOrder() const = 0;
51 
52  Side getRelativeIndex( Side index ) const;
53 
54  ActuatorConstraintImplementation* getActuatorConstraint();
55 
59  virtual bool store(agxStream::StorageStream& str) const override;
60 
64  virtual bool restore(agxStream::StorageStream& str) override;
65 
67  void store(agxStream::OutputArchive& out) const override;
68  void restore(agxStream::InputArchive& in) override;
69 
70  protected:
72  virtual ~ActuatorConnector();
73 
74  protected:
76  };
77 }
78 
79 #endif
agxPowerLine::ActuatorConstraintImplementation
Definition: ActuatorConstraints.h:39
agxPowerLine::Actuator
Definition: Actuator.h:49
agxPowerLine::Side
Side
Definition: Sides.h:30
agxStream::out
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.
Definition: OutputArchive.h:412
ActuatorConstraints.h
PowerLineUtils.h
agxStream::StorageStream
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:48
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
Definition: Serializable.h:221
agx::observer_ptr< agxPowerLine::Actuator >
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition: AddedMassInteraction.h:22
agxStream::in
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
agxPowerLine::ActuatorConnector
Definition: ActuatorConnector.h:40
agxStream::OutputArchive
Class for writing serialized data in binary format to a stream.
Definition: OutputArchive.h:56
agxStream::InputArchive
Class for reading a binary stream of serialized data.
Definition: InputArchive.h:51
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
agxPowerLine
agxPowerLine contains a collection of connected components that transport power across a system.
Definition: MotorUnit.h:23
Actuator.h
agxPowerLine::Connector
Links two connections together.
Definition: Connector.h:53
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition: agxModel/export.h:42
agxPowerLine::ActuatorConnector::m_actuator
agx::observer_ptr< agxPowerLine::Actuator > m_actuator
Definition: ActuatorConnector.h:75