AGXDynamics  2.35.0.2
GranularContactForceReader.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. 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
agxPhysics_export.h
Referenced.h
Simulation.h
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:54
CALLABLE
#define CALLABLE
Definition: macros.h:72
agx::observer_ptr< const agxSDK::Simulation >
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition: AddedMassInteraction.h:22
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agx::ref_ptr
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:29
agxSDK::Simulation
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:126
agxCollide::Geometry
The geometry representation used by the collision detection engine.
Definition: Geometry.h:92
agx.h
agx::GranularContactForceReader
Class for reading contact forces between granular bodies and rigid bodies and geometries.
Definition: GranularContactForceReader.h:33
agx::Referenced
Base class providing referencing counted objects.
Definition: Referenced.h:113
agx::Vec3T< Real >
agx::GranularContactForceReaderRef
ref_ptr< GranularContactForceReader > GranularContactForceReaderRef
Definition: GranularContactForceReader.h:75