AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
GenericManyBodyConstraint.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
21
22namespace agx
23{
89 {
90 public:
96
97 public:
101 virtual void onAddNotification() override;
102
106 virtual void onRemoveNotification() override;
107
114 virtual agx::Bool onPreSolve() override;
115
120 virtual void onWriteData( agx::GenericConstraintData* constraintData );
121
125 virtual void onPostSolve() override;
126
133
134 protected:
135 virtual ~GenericManyBodyConstraint() = default;
136 };
137}
#define AGXPHYSICS_EXPORT
Compliance matrix data containing the lower triangle (including the diagonal) of the compliance matri...
Constraint data used with GenericElementaryConstraint containing data such as; constraint violation,...
Generic many-body constraint with callbacks for writing Jacobian and constraint data.
virtual ~GenericManyBodyConstraint()=default
virtual void onPostSolve() override
Callback from after the solve and the solutions been pushed to the elementary constraints.
virtual agx::Bool onPreSolve() override
Callback before this constraint reaches the solver (actually preSystemCallback).
virtual void onAddNotification() override
Callback when the constraint has been added to a simulation.
virtual void updateComplianceMatrix(GenericConstraintComplianceMatrix *matrix) override
Callback to write data.
virtual void onWriteData(agx::GenericConstraintData *constraintData)
Callback when to write Jacobian and constraint data if this constraint is active.
GenericManyBodyConstraint(agx::UInt numRows)
Construct given number of rows.
virtual void onRemoveNotification() override
Callback when the constraint has been removed from a simulation.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
bool Bool
Definition Integer.h:40
uint64_t UInt
Definition Integer.h:27