AGX Dynamics
2.37.2.0
StrongInteractionConstraint.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2024. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
#ifndef AGX_STRONGINTERACTIONCONSTRAINT_H
18
#define AGX_STRONGINTERACTIONCONSTRAINT_H
19
20
#include <
agx/StrongInteraction.h
>
21
#include <
agx/Constraint.h
>
22
#include <
agx/agx_valarray_types.h
>
23
24
namespace
agx
25
{
26
AGX_DECLARE_POINTER_TYPES
(
StrongInteractionConstraint
);
27
31
class
AGXPHYSICS_EXPORT
StrongInteractionConstraint
:
public
agx::StrongInteraction
32
{
33
public
:
38
StrongInteractionConstraint
(
agx::Constraint
* constraint );
39
40
public
:
44
virtual
agx::RigidBody
* getRigidBody1()
const override
;
45
49
virtual
agx::RigidBody
* getRigidBody2()
const override
;
50
51
AGXSTREAM_DECLARE_SERIALIZABLE
(
agx::StrongInteractionConstraint
);
52
53
protected
:
57
StrongInteractionConstraint
();
58
62
virtual
~
StrongInteractionConstraint
();
63
67
virtual
void
render(
agxRender::RenderManager
* mgr,
float
scale )
override
;
68
72
virtual
void
prepare()
override
;
73
77
virtual
void
writeMatrixData(
agx::StrongInteraction::MatrixData
rb1DiagonalBlock,
78
agx::StrongInteraction::MatrixData
rb2DiagonalBlock,
79
agx::StrongInteraction::MatrixData
offDiagonalBlock )
override
;
80
84
virtual
void
writeRhs(
agx::Physics::RigidBodyPtr
rb1,
85
agx::Real
* rb1Rhs,
86
agx::Physics::RigidBodyPtr
rb2,
87
agx::Real
* rb2Rhs,
88
agx::Bool
isRestingSolve )
override
;
89
90
protected
:
91
agx::ConstraintRef
m_constraint
;
92
agx::RealValarray
m_rhs
;
93
};
94
}
95
96
#endif
StrongInteraction.h
agx::Bool
bool Bool
Definition:
Integer.h:48
agx::StrongInteraction
Base class for a strong interaction concept where there interaction is defined in the mass matrix par...
Definition:
StrongInteraction.h:42
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agx::Constraint
The base class for a constraint.
Definition:
Constraint.h:88
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:254
agxRender::RenderManager
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc...
Definition:
RenderManager.h:106
agx::StrongInteractionConstraint::m_constraint
agx::ConstraintRef m_constraint
Definition:
StrongInteractionConstraint.h:91
agx::Physics::RigidBodyPtr
Pointer to a entity instance of type Physics.RigidBody.
Definition:
RigidBodyEntity.h:371
agx::StrongInteraction::MatrixData
Definition:
StrongInteraction.h:47
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition:
AddedMassInteraction.h:22
agx::StrongInteractionConstraint::m_rhs
agx::RealValarray m_rhs
Definition:
StrongInteractionConstraint.h:92
agx::RealValarray
std::valarray< agx::Real > RealValarray
For this module, vectors are defined using valarray.
Definition:
agx_valarray_types.h:27
agx::StrongInteractionConstraint
EXPERIMENTAL.
Definition:
StrongInteractionConstraint.h:31
agx::ref_ptr< Constraint >
Constraint.h
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition:
RigidBody.h:54
AGXSTREAM_DECLARE_SERIALIZABLE
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition:
Serializable.h:207
agx::Real
double Real
Definition:
Real.h:42
agx_valarray_types.h
include
agx
StrongInteractionConstraint.h
Generated on Sun Jan 28 2024 11:19:35 for AGX Dynamics by
1.8.13