AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
SolveBodyManager.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. 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#ifndef AGX_PHYSISCS_HIERARCHICAL_GRID_SOLVE_BODY_MANAGER_H
18#define AGX_PHYSISCS_HIERARCHICAL_GRID_SOLVE_BODY_MANAGER_H
19
20
21#include <agx/debug.h>
22#include <agx/AtomicValue.h>
24#include <agx/Component.h>
25#include <agxData/Buffer.h>
26
27#ifdef _MSC_VER
28# pragma warning(push)
29// warning C4251: 'X' : class 'Y' needs to have dll-interface to be used by clients of class 'Z'
30# pragma warning( disable : 4251 )
31#endif
32
33namespace agx { namespace Physics { namespace HierarchicalGrid {
34
37 {
38 public:
40
41 static const Index ArraySize = 32;
42
43 public:
45
48
49 void clear();
51
52 protected:
54
55 private:
56 void reallocationCallback(agxData::Buffer *);
57
58 private:
59 agxData::BufferRef m_solveBodyCounterBuffer;
60
62 CellHash m_activeCells;
63
64 agxData::Buffer::Event::CallbackType m_reallocationCallback;
65 IndexVector m_inactiveCounterArrays;
66 AtomicValue *m_currentBuffer;
67 };
68
69}}}
70
71#ifdef _MSC_VER
72# pragma warning(pop)
73#endif
74
75
76#endif
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
#define AGXPHYSICS_EXPORT
Abstract representation of a data buffer.
Definition: Buffer.h:56
A component is an object containing other objects, enabling hierarchical structuring.
Definition: Component.h:39
T CallbackType
Definition: Event.h:37
Inheritance with partial specialization due to bug with ref_ptr containers.
Definition: agx/HashSet.h:670
A model is an abstract representation of the class of an agx::Object.
Definition: Model.h:41
Pointer to a entity instance of type Physics.HierarchicalGrid.Cell.
Definition: CellEntity.h:250
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
UInt32 Index
Definition: Integer.h:44