AGX Dynamics  2.37.3.2
DisabledCollisionsState.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 
19 #include <agx/Vector.h>
20 #include <agx/Name.h>
21 
22 namespace agxCollide
23 {
24  class Geometry;
25 
26  struct NamePair
27  {
30  };
32 
33  struct GroupIdPair
34  {
37  };
39 
41  {
44  };
46 
52  {
53  public:
58 
62  const NamePairVector& getDisabledNames() const;
63 
67  const GroupIdPairVector& getDisabledIds() const;
68 
72  const GeometryPtrPairVector& getDisabledGeometryPairs() const;
73 
74  public:
75 
76  private:
77  friend class Space;
78  void addDisabled( const agx::Name& name1, const agx::Name& name2 );
79  void addDisabled( agx::UInt32 id1, agx::UInt32 id2 );
80  void addDisabled( agxCollide::Geometry* geometry1, agxCollide::Geometry* geometry2 );
81 
82  private:
83  NamePairVector m_disabledNames;
84  GroupIdPairVector m_disabledIds;
85  GeometryPtrPairVector m_disabledGeometryPairs;
86  };
87 
88 #ifndef SWIG
89  std::ostream& operator << ( std::ostream& output, const DisabledCollisionsState& state );
90 #endif
91 }
This namespace consists of a set of classes for handling geometric intersection tests including boole...
agx::Vector< GroupIdPair > GroupIdPairVector
#define AGXPHYSICS_EXPORT
Representation of a name string.
Definition: Name.h:32
std::ostream & operator<<(std::ostream &output, const BoundingAABB &bound)
Definition: BoundingAABB.h:224
agx::Vector< NamePair > NamePairVector
The geometry representation used by the collision detection engine.
Definition: Geometry.h:92
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to c...
Definition: Space.h:81
Complete disabled collisions state in a simulation including disabled given name, group id (integer) ...
agx::Vector< GeometryPtrPair > GeometryPtrPairVector
uint32_t UInt32
Definition: Integer.h:40