AGX Dynamics  2.35.0.1
DisabledCollisionsState.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 
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 
63 
68 
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 }
#define AGXPHYSICS_EXPORT
Complete disabled collisions state in a simulation including disabled given name, group id (integer) ...
const GeometryPtrPairVector & getDisabledGeometryPairs() const
const GroupIdPairVector & getDisabledIds() const
const NamePairVector & getDisabledNames() const
DisabledCollisionsState()
Default constructor.
The geometry representation used by the collision detection engine.
Definition: Geometry.h:93
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to c...
Definition: Space.h:82
Representation of a name string.
Definition: Name.h:33
This namespace consists of a set of classes for handling geometric intersection tests including boole...
agx::Vector< GeometryPtrPair > GeometryPtrPairVector
std::ostream & operator<<(std::ostream &output, const BoundingAABB &bound)
Definition: BoundingAABB.h:224
agx::Vector< NamePair > NamePairVector
agx::Vector< GroupIdPair > GroupIdPairVector
uint32_t UInt32
Definition: Integer.h:40