106 agx::GWriteState::Enum )
override;
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Links two connections together.
An elementary gear constraint constrains the velocity of the rotational dimensions of a number bodies...
ElementaryGearConstraint()
virtual ~ElementaryGearConstraint()
An elementary gear constraint constrains the velocity of the rotational dimensions of a number bodies...
ElementaryHolonomicGearConstraint()
virtual bool isValid() const override
Check if the dimensions of the constraint are legit.
virtual bool isValid() const
Check if the dimensions of the constraint are legit.
Connector * getConnector()
ElementaryPhysicalDimensionConstraint()
Constructor for pure virtual function.
const Connector * getConnector() const
virtual size_t getJacobian(agx::Jacobian6DOFElement *, const RigidBodyPtrIntHashVector &, const agx::ConstraintRigidBodyContainer &, const PhysicalDimensionPtrIntTable &, const agx::Real)=0
getJacobian must be implemented for all classes that inherits from this.
virtual void getJacobian(const agxPowerLine::PhysicalDimension *dimension, agx::Jacobian6DOFElement &G) const =0
AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(agxPowerLine::ElementaryPhysicalDimensionConstraint)
virtual agx::UInt getViolation(agx::Real *, agx::UInt) override
virtual ~ElementaryPhysicalDimensionConstraint()
destructor.
virtual agx::UInt getJacobian(agx::Jacobian6DOFElement *, agx::UInt, agx::UInt, agx::GWriteState::Enum) override
Forced inheritance from agx::ElementaryConstraint.
virtual void store(agxStream::OutputArchive &out) const override
Store this object to stream.
virtual void restore(agxStream::InputArchive &in) override
Restore this object from stream.
void setConnector(Connector *connector)
Set a pointer to the connector that will define this constraint.
Elementary constraint for constraining an arbitrary number of ONE specific PhysicalDimension::Type.
virtual ~ElementaryPhysicalDimensionMultiBodyConstraint()
virtual void getJacobian(const agxPowerLine::PhysicalDimension *dimension, agx::Jacobian6DOFElement &G) const override
virtual size_t getJacobian(agx::Jacobian6DOFElement *G, const RigidBodyPtrIntHashVector &bodyToIndexTable, const agx::ConstraintRigidBodyContainer &bodies, const PhysicalDimensionPtrIntTable &dimensions, const agx::Real dt) override
Implementation of getJacobian for a multi body constraint for the power line, where all dimensions ha...
ElementaryPhysicalDimensionMultiBodyConstraint()
Constructor.
virtual ~ElementaryTranslationalConstraint()
ElementaryTranslationalConstraint()
Constraint implementation that constrains the velocity of the rotational dimensions of a number bodie...
virtual ~GearConstraintImplementation()
GearConstraintImplementation()
Constraint implementation that constrains the velocity of the rotational dimensions of a number bodie...
HolonomicGearConstraintImplementation()
Constraint implementation for constraining a number of physical dimensions of the same type.
virtual void preSystemCallback(agx::DynamicsSystem *system) override
Prepare system before solve.
void setCompliance(agx::Real compliance)
Set the compliance of the constraint.
~PhysicalDimensionMultiBodyConstraintImplementation()
virtual size_t updateJacobian(agx::Jacobian6DOFElement *jacobians) override
Update the jacobians of the included dimensions.
virtual void postSystemCallback(agx::DynamicsSystem *system) override
Prepare system after solve.
PhysicalDimensionMultiBodyConstraintImplementation(ElementaryPhysicalDimensionConstraint *elementaryConstraint)
virtual void prepareDimensions()
RigidBodyPtrIntHashVector m_bodyToIndexTable
agx::Real getCurrentForce() const
ElementaryPhysicalDimensionConstraint * m_elementaryConstraint
virtual bool updateValid() override
Test if the constraint is still valid.
virtual void restoreLightData(agxStream::StorageStream &str) override
virtual void storeLightData(agxStream::StorageStream &str) const override
void add(PhysicalDimension *dimension)
Add a physical dimension to the constraint.
void setConnector(agxPowerLine::Connector *connector)
ElementaryPhysicalDimensionConstraint * getElementaryConstraint() const
PhysicalDimensionMultiBodyConstraintImplementation()
Constructor.
agx::Vector< agx::observer_ptr< agx::RigidBody > > m_observedBodies
PhysicalDimensionPtrIntTable m_dimensionToIndexTable
agx::Real getCompliance() const
TranslationalConstraintImplementation()
virtual ~TranslationalConstraintImplementation()
Class for writing serialized data in binary format to a stream.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Abstract base class for storing/restoring a line/drums with version control.
virtual agx::ElementaryConstraint * getElementaryConstraint(const agx::UInt index) const
The complete physical system with bodies, interactions, data layout, time stepper,...
Helper class to hold data that is general for elementary constraints.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Smart pointer for handling referenced counted objects.
agxPowerLine contains a collection of connected components that transport power across a system.
agx::ref_ptr< ElementaryGearConstraint > GearConstraintRef
agx::HashVector< PhysicalDimension *, int > PhysicalDimensionPtrIntTable
agx::ref_ptr< ElementaryHolonomicGearConstraint > HolonomicGearConstraintRef