AGX Dynamics  2.37.3.2
ContactFilterReducerListener.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 namespace agxSDK
22 {
23 
25 
32  {
33  public:
35 
43  void add(size_t binsPerDimension, ExecuteFilter* filter, int activationMask);
44 
49  void remove(ExecuteFilter* filter) override;
50 
56  bool setNumBinsPerDimension(ExecuteFilter* filter, size_t binsPerDimension);
57 
62  size_t getNumBinsPerDimension(ExecuteFilter* filter) const;
63 
69  size_t getNumReducedContacts() const;
70 
71  protected:
72 
73  // These methods should not be public
74  void add(ExecuteFilter*, int ) {}
75 
80 
81  void pre(const agx::TimeStamp& time) override;
82 
83  size_t reduceContacts();
84 
85  private:
86  size_t m_numReducedContacts;
87 
89 
90  FilterBinsHashTable m_filterBinsTable;
91 
93  };
94 }
Abstract base class that implements a filter that selects which events should trigger a Listener...
Definition: ExecuteFilter.h:33
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
agx::Real TimeStamp
Definition: TimeStamp.h:26
Class that execute the agxCollide::ContactReducer::reduce on contact points that are collected via a ...
A step event listener managing N contact event listeners with different filters.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30