AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
ContactFilterReducerListener.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
20
21namespace 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
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
84
85 private:
86 size_t m_numReducedContacts;
87
89
90 FilterBinsHashTable m_filterBinsTable;
91
93 };
94}
#define AGX_DECLARE_POINTER_TYPES(type)
Definition Referenced.h:254
#define AGXPHYSICS_EXPORT
Class that execute the agxCollide::ContactReducer::reduce on contact points that are collected via a ...
void remove(ExecuteFilter *filter) override
Removes the given filter and its corresponding contact event listener.
size_t getNumReducedContacts() const
This method returns the number of reduced contact points last time step.
bool setNumBinsPerDimension(ExecuteFilter *filter, size_t binsPerDimension)
void pre(const agx::TimeStamp &time) override
Called before a step is taken in the simulation Implement this method in the derived class to get cal...
void add(size_t binsPerDimension, ExecuteFilter *filter, int activationMask)
Add a contact filter with an activation mask, e.g., agxSDK::ContactEventListener::IMPACT | agxSDK::Co...
virtual ~ContactFilterReducerListener()
Reference counted object - protected destructor.
size_t getNumBinsPerDimension(ExecuteFilter *filter) const
Abstract base class that implements a filter that selects which events should trigger a Listener.
A step event listener managing N contact event listeners with different filters.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Definition HashVector.h:41
Templated vector class.
Definition agx/Vector.h:53
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition Constraint.h:31
agx::Real TimeStamp
Definition TimeStamp.h:26