AGX Dynamics
2.38.0.2
SpoolValveConnectionInfo.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2024. 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 AGXHYDRAULICS_DETAIL_SPOOL_VALVE_CONNECTION_INFO_H
19
#define AGXHYDRAULICS_DETAIL_SPOOL_VALVE_CONNECTION_INFO_H
20
21
#include <
agxHydraulics/FlowUnit.h
>
22
#include <
agxPowerLine/Sides.h
>
23
#include <
agx/Referenced.h
>
24
#include <
agxStream/Serializable.h
>
25
26
namespace
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
62
agxHydraulics::FlowConnector
* currentConnector(
agxHydraulics::FlowUnit
* pipe);
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
Referenced.h
agxPowerLine::Side
Side
Definition:
Sides.h:28
agxStream::Serializable
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition:
Serializable.h:44
AGXSTREAM_DECLARE_SERIALIZABLE
#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
AGXHYDRAULICS_EXPORT
#define AGXHYDRAULICS_EXPORT
Definition:
agxHydraulics/export.h:39
agx::ref_ptr< FlowUnit >
Serializable.h
agxHydraulics::FlowConnector
A FlowConnector is a junction of a set of FlowUnits.
Definition:
FlowConnector.h:39
agxHydraulics
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
Definition:
Accumulator.h:27
agxHydraulics::FlowUnit
FlowUnit is the base class for Units that contains a FlowDimension.
Definition:
FlowUnit.h:66
Sides.h
FlowUnit.h
include
agxHydraulics
detail
SpoolValveConnectionInfo.h
Generated on Sun Sep 1 2024 11:18:57 for AGX Dynamics by
1.8.17