24 class GenericConstraintComplianceMatrix;
#define AGXPHYSICS_EXPORT
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
The base class for a constraint.
The object defining a frame of reference and providing transformations operations.
Compliance matrix data containing the lower triangle (including the diagonal) of the compliance matri...
const UInt32Vector & getDiagonalUpdates() const
Bool isStaticSize() const
void reset(UInt32 size)
Reset this matrix to zero and resize.
virtual ~GenericConstraintComplianceMatrix()
Reference counted object, protected destructor.
GenericConstraintComplianceMatrix(UInt32 maxSize, Bool isStaticSize)
Construct given maximum size, i.e., when all elementary constraint rows are active and enabled,...
Real get(UInt32 row, UInt32 col) const
void set(UInt32 row, UInt32 col, Real value)
Assign value to given row and column in the matrix.
Generic constraint which by default is empty of elementary constraints.
virtual void removeNotification() override
Called when removed from a simulation.
virtual ~GenericConstraint()
void render(class agxRender::RenderManager *manager, float scale) const override
Inherited method of how to render this constraint into DebugRenderer.
GenericConstraintComplianceMatrix * getComplianceMatrix() const
If this constraint active rows doesn't vary and isStaticSize = true has been flagged when enabling su...
static void onCleanup(const agxSDK::Simulation *simulation)
virtual void onRemoveNotification()
Callback when the constraint has been removed from a simulation.
virtual agx::Bool onPreSolve()
Callback before this constraint reaches the solver (actually preSystemCallback).
GenericConstraint(agx::RigidBody *rb1)
Construct given one rigid body (second is null).
static void onPostSolveCallback(const agxSDK::Simulation *simulation)
agx::Bool setRigidBodies(agx::RigidBody *rb1, agx::RigidBody *rb2)
Assign/update rigid bodies of this constraint.
int getNumDOF() const override
virtual void onPostSolve()
Callback from after the solve and the solutions been pushed to the elementary constraints.
GenericConstraint(agx::RigidBody *rb1, agx::Frame *f1, agx::RigidBody *rb2, agx::Frame *f2)
Construct given two bodies and frames.
GenericConstraint(agx::RigidBody *rb1, agx::RigidBody *rb2)
Construct given two rigid bodies (first has to be != null).
static void onPreSolveCallback(const agxSDK::Simulation *simulation)
virtual void updateComplianceMatrix(GenericConstraintComplianceMatrix *matrix)
Callback to write data.
virtual void addNotification() override
Called when added to a simulation.
void setSupportComplianceMatrix(agx::Bool enable, agx::Bool isStaticSize=false)
Enable/disable updateComplianceMatrix callback with write access to the elements in the compliance ma...
virtual void onAddNotification()
Callback when the constraint has been added to a simulation.
Base class providing referencing counted objects.
The rigid body class, combining a geometric model and a frame of reference.
Smart pointer for handling referenced counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.