AGX Dynamics 2.40.0.0
Loading...
Searching...
No Matches
ActuatorConnector.h
Go to the documentation of this file.
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 unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17
18#ifndef AGXPOWERLINE_ACTUATOR_CONNECTOR_H
19#define AGXPOWERLINE_ACTUATOR_CONNECTOR_H
20
24
25namespace agx
26{
27 class RigidBody;
28}
29
30namespace agxPowerLine
31{
32 class PhysicalDimension;
33}
34
35namespace agxPowerLine
36{
37
39
41 {
42 public:
44
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
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:
73
74 protected:
76 };
77}
78
79#endif
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
#define AGXMODEL_EXPORT
const agxPowerLine::Actuator * getActuator() const
agxPowerLine::Actuator * getActuator()
virtual bool getReverseOrder() const =0
Side getRelativeIndex(Side index) const
void store(agxStream::OutputArchive &out) const override
agx::observer_ptr< agxPowerLine::Actuator > m_actuator
void restore(agxStream::InputArchive &in) override
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
ActuatorConnector(agxPowerLine::Actuator *actuator)
ActuatorConstraintImplementation * getActuatorConstraint()
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agxPowerLine::ActuatorConnector)
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
Abstract base class for connecting a agxPowerLine::Unit to an ordinary constraint such as a Hinge or ...
Definition: Actuator.h:47
Links two connections together.
Definition: Connector.h:53
Class for reading a binary stream of serialized data.
Definition: InputArchive.h:51
Class for writing serialized data in binary format to a stream.
Definition: OutputArchive.h:57
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
The agx namespace contains the dynamics/math part of the AGX Dynamics API.