17#ifndef AGXSDK_COLLISIONGROUPFILTER_H
18#define AGXSDK_COLLISIONGROUPFILTER_H
104 using ExecuteFilter::match;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_VECTOR_TYPES(type)
The geometry representation used by the collision detection engine.
bool hasGroup(agx::UInt32 id) const
This is performing a linear search among the collision group id for this Geometry.
An ExecuteFilter that is used to filter out contacts matching a specified criteria based on Collision...
agxCollide::Geometry * getGeometry()
Gets the geometry of the filter.
agx::Vector< agx::UInt32 > m_uintCollisiontGroups
bool hasGroup(agx::UInt32 group)
void removeGroup(const agx::Name &group)
Removes the specified group form the filter.
void removeAllGroups()
Removes all the groups the filter listens too.
agx::Vector< agx::UInt32 > getUIntGroups()
Returns the uint groups that the filter listens to.
void removeGroup(agx::UInt32 group)
agxCollide::Geometry * m_geometry
bool hasMemberGroup(const agxCollide::Geometry *geom) const
void addGroup(agx::UInt32 group)
CollisionGroupFilter(agxCollide::Geometry *geometry)
This filter will select contacts that contain Geometry geometry 0 can be considered a wild card and m...
virtual ~CollisionGroupFilter()
Destructor.
agx::Vector< agx::Name > getNamedGroups()
Returns the named groups that the filter listens to.
agx::Vector< agx::Name > m_namedCollisionGroups
void setGeometry(agxCollide::Geometry *geometry)
Sets the geometry of the filter.
CollisionGroupFilter()
Default constructor.
void addGroup(const agx::Name &group)
Adds a collision group to the filter.
bool hasGroup(const agx::Name &group)
Returns true if the filter contains and listens to group.
bool match(const agxCollide::Geometry *geo0, const agxCollide::Geometry *geo1) const override
Called by the other two match functions if they are not overridden.
Abstract base class that implements a filter that selects which events should trigger a Listener.
Representation of a name string.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...