 |
AGX Dynamics
2.38.0.2
|
Go to the documentation of this file.
98 bool addPhysicalDimension(std::string name);
124 std::string getDimensionTypeName(
size_t id);
137 void setStoredPhysicalDimensionId(
int currentId,
int previousId);
147 bool hasStoredDimensionsMappings()
const;
157 int getStoredPhysicalDimensionId(
int currentId);
169 int getCurrentPhysicalDimensionId(
int storedId);
175 void clearStoredPhysicalDimensionIds();
178 void registerDefaultConnector(
212 void replaceIndexWhenRestoring(std::string name,
int index);
213 DimensionNameIdTable::iterator findIndex(
int index);
228 SINGLETON_CLASSNAME_METHOD()
agx::HashTable< std::string, int > DimensionNameIdTable
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a)
Derive from this class to implement a listener for simulation step events.
agx::ref_ptr< PowerLinesHandler > PowerLinesHandlerRef
agx::HashVector< int, int > m_storeRestoreIdTranslator
ConnectorFactoryTable m_connectorFactories
agx::SymmetricPair< agxPowerLine::PhysicalDimension::Type > DimTypePair
SimulationPowerLinesHash m_powerLinesInSimulation
void addPowerLine(agxPowerLine::PowerLine *powerLine)
Called from the PowerLine's addNotification, via the PowerLineController, when a PowerLine has been a...
A PowerLinesHandler is a collection of PowerLines that are part of the same agxSDK::Simulation.
Vector containing 'raw' data.
DimensionNameIdTable m_nameIdTable
Smart pointer for handling referenced counted objects.
bool AGXPHYSICS_EXPORT isInitialized()
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
void AGXPHYSICS_EXPORT shutdown()
Shutdown of the AGX Dynamics API will be done when the number of shutdown matches the number of calls...
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...
virtual void post(const agx::TimeStamp &time) override
Called after a step is taken in the simulation Implement this method in the derived class to get call...
void removePowerLine(agxPowerLine::PowerLine *powerLine)
Called from the PowerLine's removeNotification, via the PowerLineController, when a PowerLine has bee...
Inheritance with partial specialization due to bug with ref_ptr containers.
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation.
agx::HashTable< agxSDK::Simulation *, PowerLinesHandlerRef > SimulationPowerLinesHash
const agxPowerLine::PowerLineRefVector & getPowerLines()
Provides read access to the list of PowerLines that are part of this PowerLinesHandler.
agxPowerLine contains a collection of connected components that transport power across a system.
Links two connections together.
std::function< Connector *()> ConnectorFactory
Each type of physical dimension handled by the power line has to have a unique name.
AGXMODEL_EXPORT agxPowerLine::PhysicalDimension::Type getDimensionType(const std::string &dimensionName)
agx::HashTable< DimTypePair, ConnectorFactory > ConnectorFactoryTable
virtual void pre(const agx::TimeStamp &time) override
Called before a step is taken in the simulation Implement this method in the derived class to get cal...