AGX Dynamics  2.35.0.1
MergeIgnoreGroups.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
9 having been advised so by Algoryx Simulation AB for a time limited evaluation,
10 or having purchased a 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 
18 #pragma once
19 
20 #include <agx/agx_vector_types.h>
21 
22 
23 namespace agxStream
24 {
25  class OutputArchive;
26  class InputArchive;
27 }
28 
29 
30 namespace agxSDK
31 {
40  {
41  public:
48 
54  agx::Bool add(const agx::Name& name);
55 
64 
71  agx::Bool remove(const agx::Name& name);
72 
76  const agx::UInt32Vector& getIds() const;
77 
81  const agx::NameVector& getNames() const;
82 
83  void store(agxStream::OutputArchive& archive) const;
85 
86  private:
87  agx::UInt32Vector m_ids;
88  agx::NameVector m_names;
89  };
90 }
#define AGXPHYSICS_EXPORT
A collection of merge ignore groups, some named and some not.
agx::Bool remove(const agx::Name &name)
Remove the given group name.
const agx::UInt32Vector & getIds() const
agx::Bool add(const agx::Name &name)
Add the given group name.
void restore(agxStream::InputArchive &archive)
agx::Bool remove(agx::UInt32 id)
Remove the given group ID.
const agx::NameVector & getNames() const
void store(agxStream::OutputArchive &archive) const
agx::Bool add(agx::UInt32 id)
Add the given group ID.
Class for reading a binary stream of serialized data.
Definition: InputArchive.h:52
Class for writing serialized data in binary format to a stream.
Definition: OutputArchive.h:57
Representation of a name string.
Definition: Name.h:33
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
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
uint32_t UInt32
Definition: Integer.h:40
bool Bool
Definition: Integer.h:48