AGX Dynamics  2.37.2.0
GeometryContactConstraint.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 #pragma once
18 
20 
21 #include <agx/Constraint.h>
22 
23 namespace agxCollide
24 {
25  class GeometryContact;
26 }
27 
28 namespace agxSDK
29 {
30  class ExecuteFilter;
31 }
32 
33 namespace agx
34 {
35  class ElementaryContactPointFactory;
36 
38 
51  {
52  public:
62  ElementaryContactPointFactory* elementaryFactory );
63 
67  ElementaryContactPointFactory* getElementaryFactory() const;
68 
75  Bool match( agxCollide::GeometryContact* geometryContact ) const;
76 
83  void add( agxCollide::GeometryContact* geometryContact );
84 
85  public:
90  virtual void addNotification() override;
91 
96  virtual void removeNotification() override;
97 
101  virtual void post( const TimeStamp& ) override;
102 
103  protected:
107  virtual ~GeometryContactConstraint();
108 
109  private:
110  ConstraintRef m_constraints;
111  };
112 }
Class matching geometry contacts given an execute filter and is solving each matching contact point w...
Derive from this class to implement a listener for simulation step events.
bool Bool
Definition: Integer.h:48
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Abstract base class that implements a filter that selects which events should trigger a Listener...
Definition: ExecuteFilter.h:33
A contact between two geometries.
Definition: Contacts.h:270
#define AGXPHYSICS_EXPORT
agx::Real TimeStamp
Definition: TimeStamp.h:26
Interface factory for custom contact point constraint implementations.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30
AGX_DECLARE_POINTER_TYPES(SpaceListener)