25 #pragma warning( push ) 26 #pragma warning( disable : 4589 ) // Disable: 4589: Constructor of abstract class 'agx::FrictionModel' ignores initializer for virtual base class 'agxStream::Serializable' 45 class ConstraintImplementation;
46 class DebugRendererCache;
49 class RigidBodyAttachment;
51 class RegularizationParameters;
96 DIRECT_AND_ITERATIVE = (DIRECT | ITERATIVE)
144 virtual void setElasticity(
agx::Real elasticity);
262 virtual void setEnable(
agx::Bool enable );
277 virtual int getNumDOF()
const = 0;
311 void setEnableDebugRendering(
agx::Bool enable );
316 bool getEnableDebugRendering()
const;
324 void setEnableComputeForces(
agx::Bool enable );
329 agx::Bool getEnableComputeForces()
const;
426 void setEnableLinearization(
bool enable);
432 bool getEnableLinearization()
const;
507 agx::UInt getNumElementaryConstraints()
const;
512 agx::UInt getNumSecondaryConstraints()
const;
520 agx::UInt calculateNumActiveRows()
const;
586 template<
typename T >
598 template<
typename T >
602 template<
typename T >
606 template<
typename T >
630 virtual void addNotification()
override;
631 virtual void removeNotification()
override;
658 agx::
Bool m_debugRenderingEnable;
750 virtual ~Constraint1DOF();
859 virtual ~ConstraintFrame();
861 Vec3& operator [] (
const unsigned int& i );
862 const Vec3& operator [] (
const unsigned int& i )
const;
864 void setTranslate(
const Vec3& translate );
865 const Vec3& getTranslate()
const;
874 return m_implementation;
879 return m_implementation;
882 template<
typename T >
887 Constraint::calculateFramesFromWorld( worldPoint, worldAxis, rb1, f1, rb2, f2 );
892 template<
typename T >
897 Constraint::calculateFramesFromBody( bodyPoint, bodyAxis, rb1, f1, rb2, f2 );
903 template<
typename T >
906 return dynamic_cast<T*
>(
this);
910 template<
typename T >
911 const T *Constraint::as()
const 913 return dynamic_cast<const T*
>(
this);
918 #if defined(_MSC_VER) 919 #pragma warning( pop )
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...
AGXFMI_EXPORT InputVariable_Real * setCompliance(agx::Constraint *constraint)
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...
Elementary constraint base class with interface and global constraint functionality.
Implementation of a electric motor controller.
Specialization for constraints that have two degree of freedom such as Cylindrical.
#define AGXPHYSICS_EXPORT
The base class for a constraint.
#define AGX_DECLARE_POINTER_TYPES(type)
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic...
Namespace containing classes for handling debug rendering of collision geometries, constraints, contacts and rigid bodies.
Constraint attachment class for agx::RigidBody.
Representation of a name string.
Translational or rotational friction controller for Hinge, Prismatic and CylindricalJoint.
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc...
Base class providing referencing counted objects.
The base class for interactions.
Elementary secondary constraint to keep constraint angle at a given target position.
Constraint attachment pair class.
virtual void setSystem(agx::DynamicsSystem *)
Constraint attachment base class for any type of frame.
Elementary secondary constraint to keep constraint angle within two given values. ...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
DOF
Specifies a selected degree of freedom.
Smart pointer for handling referenced counted objects.
The rigid body class, combining a geometric model and a frame of reference.
Internal data for any object, ObjT, with methods: agx::Referenced* ObjT::getInternalData() const; voi...
The complete physical system with bodies, interactions, data layout, time stepper, and solver.
Abstract base class for storing/restoring a line/drums with version control.
agx::ConstraintImplementation * m_implementation
All ghost variables have compliance and damping attributes.
SolveType
Specifies in what solvers the constraint will be solved.
The object defining a frame of reference and providing transformations operations.
AGXFMI_EXPORT InputVariable_Real * setDamping(agx::Constraint *constraint)
Elementary secondary constraint to drive something given target speed (translational or rotational)...
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...
#define AGX_DECLARE_VECTOR_TYPES(type)
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Real getAngle(const Vec3 &a, const Vec3 &b, const Vec3 &c)
a and b should be orthogonal
#define DOXYGEN_END_INTERNAL_BLOCK()
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
#define DOXYGEN_START_INTERNAL_BLOCK()
agx::SetVector< ref_ptr< Constraint > > ConstraintRefSetVector