AGX Dynamics
2.37.3.2
GranularContactForceReader.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_GRANLAR_CONTACT_FORCE_READER_H
18
#define AGX_GRANLAR_CONTACT_FORCE_READER_H
19
20
#include <
agx/agx.h
>
21
#include <
agx/Referenced.h
>
22
#include <
agx/agxPhysics_export.h
>
23
#include <
agxSDK/Simulation.h
>
24
25
namespace
agx
26
{
33
class
CALLABLE
AGXPHYSICS_EXPORT
GranularContactForceReader
:
public
agx::Referenced
34
{
35
public
:
36
GranularContactForceReader
(
const
agxSDK::Simulation
* sim);
37
39
agx::Vec3
getContactForces(
const
agx::RigidBody
* rb);
41
agx::Vec3
getContactForces(
const
agxCollide::Geometry
* geo);
42
44
agx::Vec3
getNormalContactForces(
const
agx::RigidBody
* rb);
46
agx::Vec3
getNormalContactForces(
const
agxCollide::Geometry
* geo);
47
49
agx::Vec3
getFrictionContactForces(
const
agx::RigidBody
* rb);
51
agx::Vec3
getFrictionContactForces(
const
agxCollide::Geometry
* geo);
52
54
agx::Vec3
getSumAbsoluteContactForces(
const
agx::RigidBody
* rb);
56
agx::Vec3
getSumAbsoluteContactForces(
const
agxCollide::Geometry
* geo);
57
59
agx::Vec3
getSumAbsoluteNormalContactForces(
const
agx::RigidBody
* rb);
61
agx::Vec3
getSumAbsoluteNormalContactForces(
const
agxCollide::Geometry
* geo);
62
64
agx::Vec3
getSumAbsoluteFrictionContactForces(
const
agx::RigidBody
* rb);
66
agx::Vec3
getSumAbsoluteFrictionContactForces(
const
agxCollide::Geometry
* geo);
67
69
void
setSimulation(
agxSDK::Simulation
* sim);
70
71
private
:
72
agx::observer_ptr<const agxSDK::Simulation>
m_sim;
73
};
74
75
typedef
ref_ptr< GranularContactForceReader >
GranularContactForceReaderRef
;
76
77
}
// namespace agx
78
79
#endif
agx::observer_ptr< const agxSDK::Simulation >
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxPhysics_export.h
agx::Referenced
Base class providing referencing counted objects.
Definition:
Referenced.h:119
agx::GranularContactForceReaderRef
ref_ptr< GranularContactForceReader > GranularContactForceReaderRef
Definition:
GranularContactForceReader.h:75
agxCollide::Geometry
The geometry representation used by the collision detection engine.
Definition:
Geometry.h:92
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition:
AddedMassInteraction.h:22
Referenced.h
agx::ref_ptr
Smart pointer for handling referenced counted objects.
Definition:
ref_ptr.h:29
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition:
RigidBody.h:54
CALLABLE
#define CALLABLE
Definition:
Object.h:73
agx.h
agx::Vec3T< Real >
Simulation.h
agxSDK::Simulation
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition:
Simulation.h:126
agx::GranularContactForceReader
Class for reading contact forces between granular bodies and rigid bodies and geometries.
Definition:
GranularContactForceReader.h:33
include
agx
GranularContactForceReader.h
Generated on Fri Apr 12 2024 12:40:22 for AGX Dynamics by
1.8.13