 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
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;
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 >
892 template<
typename T >
903 template<
typename T >
906 return dynamic_cast<T*
>(
this);
910 template<
typename T >
913 return dynamic_cast<const T*
>(
this);
918 #if defined(_MSC_VER)
919 #pragma warning( pop )
DOF
Specifies a selected degree of freedom.
All ghost variables have compliance and damping attributes.
Elementary constraint base class with interface and global constraint functionality.
Constraint attachment class for agx::RigidBody.
Translational or rotational friction controller for Hinge, Prismatic and CylindricalJoint.
Namespace containing classes for handling debug rendering of collision geometries,...
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.
static agx::ref_ptr< T > createFromBody(agx::Vec3 bodyPoint, agx::Vec3 bodyAxis, agx::RigidBody *rb1, agx::RigidBody *rb2=nullptr)
Creates a constraint given a point and an axis in rb1 model frame.
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
The rigid body class, combining a geometric model and a frame of reference.
static agx::Bool calculateFramesFromBody(agx::Vec3 bodyPoint, agx::Vec3 bodyAxis, const agx::RigidBody *body, agx::Frame *bodyFrame, const agx::RigidBody *otherBody, agx::Frame *otherFrame)
Calculates the constraint attachment frames given point and axis in body coordinates of body.
Specialization for constraints that have only one degree of freedom such as Hinge and Prismatic.
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
#define DOXYGEN_END_INTERNAL_BLOCK()
agx::SetVector< ref_ptr< Constraint > > ConstraintRefSetVector
#define DOXYGEN_START_INTERNAL_BLOCK()
Elementary secondary constraint to drive something given target speed (translational or rotational).
AGXFMI_EXPORT InputVariable_Real * setCompliance(agx::Constraint *constraint)
Abstract base class for storing/restoring a line/drums with version control.
Elementary secondary constraint to keep constraint angle at a given target position.
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
Constraint attachment pair class.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGXPHYSICS_EXPORT
agx::ConstraintImplementation * getRep()
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...
Internal data for any object, ObjT, with methods: agx::Referenced* ObjT::getInternalData() const; voi...
#define AGX_DECLARE_VECTOR_TYPES(type)
static agx::Bool calculateFramesFromWorld(agx::Vec3 worldPoint, agx::Vec3 worldAxis, const agx::RigidBody *rb1, agx::Frame *rb1Frame, const agx::RigidBody *rb2, agx::Frame *rb2Frame)
Given a point and an axis in world, this function calculates each local attachment frame for one or t...
Smart pointer for handling referenced counted objects.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
Elementary secondary constraint to keep constraint angle within two given values.
Representation of a name string.
Class for writing serialized data in binary format to a stream.
virtual void setSystem(agx::DynamicsSystem *)
Implementation of a electric motor controller.
The base class for interactions.
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
Real getAngle(const Vec3 &a, const Vec3 &b, const Vec3 &c)
a and b should be orthogonal
static agx::ref_ptr< T > createFromWorld(agx::Vec3 worldPoint, agx::Vec3 worldAxis, agx::RigidBody *rb1, agx::RigidBody *rb2=nullptr)
Creates a constraint given a point and an axis in world frame.
The base class for a constraint.
agx::ConstraintImplementation * m_implementation
Constraint attachment base class for any type of frame.
AGXFMI_EXPORT InputVariable_Real * setDamping(agx::Constraint *constraint)
SolveType
Specifies in what solvers the constraint will be solved.
T * as()
Try to do dynamic_cast on the constraint and return a pointer to the casted constraint.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
The complete physical system with bodies, interactions, data layout, time stepper,...
The object defining a frame of reference and providing transformations operations.