AGX Dynamics  2.37.2.0
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 {
34  {
35  public:
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:
73  };
74 
76 
77 } // namespace agx
78 
79 #endif
#define AGXPHYSICS_EXPORT
Base class providing referencing counted objects.
Definition: Referenced.h:119
ref_ptr< GranularContactForceReader > GranularContactForceReaderRef
The geometry representation used by the collision detection engine.
Definition: Geometry.h:92
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:29
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:54
#define CALLABLE
Definition: Object.h:73
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:126
Class for reading contact forces between granular bodies and rigid bodies and geometries.