AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
SpoolValveConnectionInfo.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. 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 AGXHYDRAULICS_DETAIL_SPOOL_VALVE_CONNECTION_INFO_H
19#define AGXHYDRAULICS_DETAIL_SPOOL_VALVE_CONNECTION_INFO_H
20
22#include <agxPowerLine/Sides.h>
23#include <agx/Referenced.h>
25
26namespace agxHydraulics
27{
29 namespace detail
30 {
31
38 struct AGXHYDRAULICS_EXPORT SpoolValveConnectionInfo : public agxStream::Serializable
39 {
40 public:
46 SpoolValveConnectionInfo(
47 FlowUnit* staticFlowUnit,
48 agxPowerLine::Side pipeSide,
49 agxPowerLine::Side staticPipeSide
50 );
51
53 SpoolValveConnectionInfo();
54
56 bool isValid() const;
57
63 const agxHydraulics::FlowConnector* currentConnector(const agxHydraulics::FlowUnit* pipe) const;
64
65 AGXSTREAM_DECLARE_SERIALIZABLE(agxHydraulics::detail::SpoolValveConnectionInfo);
66
67 public:
68 // A static FlowUnit that the external FlowUnit is connected to when not linked with another external FlowUnit.
69 agxHydraulics::FlowUnitRef staticFlowUnit;
70
71 // The side of the external FlowUnit that is connected to the SpoolValve. The SpoolValve may only manipulate this side.
72 agxPowerLine::Side pipeSide;
73
74 // The side of the static FlowUnit that the external FlowUnit should be connected to when not linked.
75 agxPowerLine::Side staticPipeSide;
76 };
77 }
79}
80
81#endif
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXHYDRAULICS_EXPORT
A FlowConnector is a junction of a set of FlowUnits.
FlowUnit is the base class for Units that contains a FlowDimension.
Definition FlowUnit.h:67
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
Definition Accumulator.h:28