AGX Dynamics  2.35.0.1
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 
42 
47 
52 
57 
62 
67 
70 
71  private:
73  };
74 
76 
77 } // namespace agx
78 
79 #endif
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
Definition: Geometry.h:93
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:127
Class for reading contact forces between granular bodies and rigid bodies and geometries.
agx::Vec3 getSumAbsoluteNormalContactForces(const agxCollide::Geometry *geo)
Get the sum of all normal forces on a single geometry, summing the absolute forces per contact point.
agx::Vec3 getContactForces(const agx::RigidBody *rb)
Get all contact forces on a single rigid body.
agx::Vec3 getSumAbsoluteFrictionContactForces(const agxCollide::Geometry *geo)
Get the sum of all tangential forces on a single geometry, summing the absolute forces per contact po...
agx::Vec3 getSumAbsoluteContactForces(const agxCollide::Geometry *geo)
Get the sum of all contact forces on a single geometry, summing the absolute forces per contact point...
agx::Vec3 getNormalContactForces(const agx::RigidBody *rb)
Get all normal forces on a single rigid body.
GranularContactForceReader(const agxSDK::Simulation *sim)
agx::Vec3 getFrictionContactForces(const agxCollide::Geometry *geo)
Get all tangential forces on a single geometry.
agx::Vec3 getFrictionContactForces(const agx::RigidBody *rb)
Get all tangential forces on a single rigid body.
agx::Vec3 getSumAbsoluteContactForces(const agx::RigidBody *rb)
Get the sum of all contact forces on a single rigid body, summing the absolute forces per contact poi...
void setSimulation(agxSDK::Simulation *sim)
Update reference to Simulation.
agx::Vec3 getSumAbsoluteNormalContactForces(const agx::RigidBody *rb)
Get the sum of all normal forces on a single rigid body, summing the absolute forces per contact poin...
agx::Vec3 getSumAbsoluteFrictionContactForces(const agx::RigidBody *rb)
Get the sum of all tangential forces on a single rigid body, summing the absolute forces per contact ...
agx::Vec3 getNormalContactForces(const agxCollide::Geometry *geo)
Get all normal forces on a single geometry.
agx::Vec3 getContactForces(const agxCollide::Geometry *geo)
Get all contact forces on a single geometry.
Base class providing referencing counted objects.
Definition: Referenced.h:114
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:55
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:30
#define CALLABLE
Definition: macros.h:72
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
ref_ptr< GranularContactForceReader > GranularContactForceReaderRef