AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
StrongInteractionConstraint.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#ifndef AGX_STRONGINTERACTIONCONSTRAINT_H
18#define AGX_STRONGINTERACTIONCONSTRAINT_H
19
21#include <agx/Constraint.h>
23
24namespace agx
25{
27
32 {
33 public:
39
40 public:
44 virtual agx::RigidBody* getRigidBody1() const override;
45
49 virtual agx::RigidBody* getRigidBody2() const override;
50
52
53 protected:
58
63
67 virtual void render( agxRender::RenderManager* mgr, float scale ) override;
68
72 virtual void prepare() override;
73
79 agx::StrongInteraction::MatrixData offDiagonalBlock ) override;
80
85 agx::Real* rb1Rhs,
87 agx::Real* rb2Rhs,
88 agx::Bool isRestingSolve ) override;
89
90 protected:
93 };
94}
95
96#endif
#define AGX_DECLARE_POINTER_TYPES(type)
Definition Referenced.h:254
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
The base class for a constraint.
Definition Constraint.h:89
Pointer to a entity instance of type Physics.RigidBody.
The rigid body class, combining a geometric model and a frame of reference.
Definition RigidBody.h:52
virtual agx::RigidBody * getRigidBody2() const override
virtual agx::RigidBody * getRigidBody1() const override
StrongInteractionConstraint()
Default constructor used by serialization.
virtual void writeMatrixData(agx::StrongInteraction::MatrixData rb1DiagonalBlock, agx::StrongInteraction::MatrixData rb2DiagonalBlock, agx::StrongInteraction::MatrixData offDiagonalBlock) override
Write data for dynamic bodies.
virtual void prepare() override
Prepares for solve.
virtual ~StrongInteractionConstraint()
Reference counted object, protected destructor.
StrongInteractionConstraint(agx::Constraint *constraint)
Construct given constraint.
virtual void writeRhs(agx::Physics::RigidBodyPtr rb1, agx::Real *rb1Rhs, agx::Physics::RigidBodyPtr rb2, agx::Real *rb2Rhs, agx::Bool isRestingSolve) override
Write data to the right hand side, for dynamic bodies.
virtual void render(agxRender::RenderManager *mgr, float scale) override
Render the interaction.
Base class for a strong interaction concept where there interaction is defined in the mass matrix par...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
bool Bool
Definition Integer.h:40
double Real
Definition Real.h:42
std::valarray< agx::Real > RealValarray
For this module, vectors are defined using valarray.