17 #ifndef AGXPOWERLINE_PHYSICAL_DIMENSION_H 18 #define AGXPOWERLINE_PHYSICAL_DIMENSION_H 39 #pragma warning( push ) 40 #pragma warning( disable : 4589 ) // Disable: 4589: Constructor of abstract class 'agx::FrictionModel' ignores initializer for virtual base class 'agxStream::Serializable' 48 class ConnectionOperations;
49 class AbstractDimensionState1Dof;
50 class AbstractDimensionState3Dof;
79 typedef std::pair<agxPowerLine::PhysicalDimension*, agxPowerLine::Side>
DimensionAndSide;
105 virtual void calculateJacobian(
108 const size_t index)
const;
126 virtual void setGradient(
agx::Real value);
127 virtual agx::Real getSecondGradient()
const;
176 bool hasReservedBody()
const;
188 bool isExternalBody()
const;
193 virtual agx::Real getMassProperty()
const;
198 virtual void setMassProperty(
agx::Real massProperty);
232 void setVelocityDamping(
float damping);
233 float getVelocityDamping()
const;
238 virtual void renderDebug();
243 virtual void clear();
245 size_t getNumInputConnections()
const;
246 size_t getNumOutputConnections()
const;
248 size_t getNumConnections()
const;
274 size_t getBodyIndexIn(
const RigidBodyPtrIntHashVector& bodyToIndexTable);
337 virtual std::string getTypeName()
const;
368 static std::string getStaticTypeName();
375 static int getNumberOfPhysicalDimensions();
423 bool removeInputConnection(
Connection* connection );
424 bool removeOutputConnection(
Connection* connection );
429 void addToListOfDimensions();
455 #if defined(_MSC_VER) 456 #pragma warning( pop ) 460 #endif // AGXMODEL_PHYSICAL_DIMENSION_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.
AGXTERRAIN_EXPORT void clear()
AGXCORE_EXPORT Type * getType(const agx::String &name)
const PhysicalDimensionRef ConstPhysicalDimensionRef
Utility class to hold custom implementations of constraints.
agxPowerLine::detail::PhysicalDimensionStateRef m_state
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...
ConnectionRefVector m_inputConnections
agx::SetVector< PhysicalDimension * > PhysicalDimensionPtrSetVector
agx::Vector< PhysicalDimension * > PhysicalDimensionPtrVector
Constraint implementation for constraining a number of physical dimensions of the same type...
agx::Vector< ConnectionPtr > ConnectionPtrVector
agx::observer_ptr< PowerGenerator > PowerGeneratorObserver
Representation of a name string.
agxPowerLine contains a collection of connected components that transport power across a system...
ConnectionRefVector m_outputConnections
Base class providing referencing counted objects.
A DimensionState is the data carrier of a PhysicalDimension.
agx::observer_ptr< Connector > ConnectorObserver
The rigid body class, combining a geometric model and a frame of reference.
agx::Vector< ConstPhysicalDimensionRef > ConstPhysicalDimensionRefVector
Connection * ConnectionPtr
Abstract base class for storing/restoring a line/drums with version control.
agx::Vector< Unit * > UnitPtrVector
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Class for writing serialized data in binary format to a stream.
agx::ref_ptr< Connector > ConnectorRef
agx::HashVector< agx::RigidBody *, int > RigidBodyPtrIntHashVector
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Return a value of y given any value of x.
AGXMODEL_EXPORT agx::RigidBody * createDimensionBody(const agx::Name &name)
#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
agx::ref_ptr< PhysicalDimension > PhysicalDimensionRef
agx::Vector< ConnectionRef > ConnectionRefVector
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation...
agx::Vector< Type > TypeVector
agx::ref_ptr< LookupTable > LookupTableRef
agx::ref_ptr< PowerGenerator > PowerGeneratorRef
agx::Vector< PhysicalDimensionRef > PhysicalDimensionRefVector
Base class for the two one dimensional dimension state classes.
PhysicalDimension::Type m_type
Will generate power by adding a load to a physical dimension.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
agx::ref_ptr< Connection > ConnectionRef
Base class for the two three dimensional dimension state classes.