AGXDynamics  2.35.0.2
GeometryContactConstraint.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 #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 }
agxSDK::StepEventListener
Derive from this class to implement a listener for simulation step events.
Definition: StepEventListener.h:37
Constraint.h
agxSDK::ExecuteFilter
Abstract base class that implements a filter that selects which events should trigger a Listener.
Definition: ExecuteFilter.h:34
agx::ElementaryContactPointFactory
Interface factory for custom contact point constraint implementations.
Definition: ElementaryContactPoint.h:220
StepEventListener.h
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< Constraint >
agx::GeometryContactConstraint
Class matching geometry contacts given an execute filter and is solving each matching contact point w...
Definition: GeometryContactConstraint.h:50
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
agxCollide
This namespace consists of a set of classes for handling geometric intersection tests including boole...
Definition: ContactForceFilterParticipant.h:22
agx::Bool
bool Bool
Definition: Integer.h:48
agxCollide::GeometryContact
A contact between two geometries.
Definition: Contacts.h:269
agx::TimeStamp
agx::Real TimeStamp
Definition: TimeStamp.h:26
agxSDK
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30