17 #ifndef AGXPOWERLINE_UNIT_H 18 #define AGXPOWERLINE_UNIT_H 83 virtual bool isValid()
const;
113 virtual bool connect(
124 virtual bool connect(
133 void disconnectAll();
163 virtual void getConnectableDimensionTypes(
170 virtual size_t getNumConnectableDimensions(
Side side)
const;
177 void getOwnConnectedUnits(UnitPtrSetVector& unitSet,
bool startFromCleanUnitSet =
true)
const;
178 void getOwnConnectedUnits(UnitPtrSetVector& unitSet,
agxPowerLine::Side side,
bool startFromCleanUnitSet =
true)
const;
207 size_t getNumActiveDimensions()
const;
237 bool hasConnector(
const Connector* connector )
const;
242 size_t getNumConnections()
const;
268 bool getIgnoreForStoreRestoreStream()
const;
285 void spreadRootToGraph();
303 friend class Traverser;
304 friend class GraphTraverser;
312 virtual bool hasValidInputConnection()
const;
336 #endif // AGXMODEL_UNIT_H
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...
Links two connections together.
Utility class to hold custom implementations of constraints.
Inheritance with partial specialization due to bug with ref_ptr containers.
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...
agx::observer_ptr< agx::RigidBody > m_attachBody
PhysicalDimensionRefVector m_dimensions
agxPowerLine::Unit * m_rootUnit
agxPowerLine contains a collection of connected components that transport power across a system...
agx::Vector< Connector * > ConnectorPtrVector
agx::Vector< UnitRef > UnitRefVector
agx::ref_ptr< Unit > UnitRef
agx::Vector< ConnectorRef > ConnectorRefVector
agx::Vector< agx::observer_ptr< Unit > > UnitObsVector
Smart pointer for handling referenced counted objects.
The rigid body class, combining a geometric model and a frame of reference.
Abstract base class for storing/restoring a line/drums with version control.
bool m_ignoreMeForStoreRestoreStream
Class for writing serialized data in binary format to a stream.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
std::pair< agxPowerLine::PhysicalDimension *, agxPowerLine::Side > DimensionAndSide
AGXCORE_EXPORT Component * root()
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation...
agx::SetVector< Unit * > UnitPtrSetVector
agx::Vector< std::pair< agxPowerLine::PhysicalDimension *, agxPowerLine::Side > > DimensionSideVector
agx::HashSet< UnitRef > UnitRefSet
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
agx::SetVector< UnitRef > UnitRefSetVector