AGX Dynamics
2.35.0.1
SolveBodyManager.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
#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
>
23
#include <
agx/Physics/HierarchicalGrid/CellEntity.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
33
namespace
agx
{
namespace
Physics {
namespace
HierarchicalGrid {
34
35
AGX_DECLARE_POINTER_TYPES
(
SolveBodyManager
);
36
class
AGXPHYSICS_EXPORT
SolveBodyManager
:
public
Component
37
{
38
public
:
39
static
agx::Model
*
ClassModel
();
40
41
static
const
Index
ArraySize = 32;
42
43
public
:
44
SolveBodyManager
();
45
46
void
registerCell
(
CellPtr
cell);
47
void
unregisterCell
(
CellPtr
cell);
48
49
void
clear
();
50
void
resetCounters
();
51
52
protected
:
53
virtual
~SolveBodyManager
();
54
55
private
:
56
void
reallocationCallback(
agxData::Buffer
*);
57
58
private
:
59
agxData::BufferRef
m_solveBodyCounterBuffer;
60
61
typedef
HashSet<CellPtr>
CellHash
;
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
AtomicValue.h
Buffer.h
CellEntity.h
Component.h
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:248
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxData::Buffer
Abstract representation of a data buffer.
Definition:
Buffer.h:56
agx::AtomicValueT< agx::Int32 >
agx::Component
A component is an object containing other objects, enabling hierarchical structuring.
Definition:
Component.h:39
agx::EventT::CallbackType
T CallbackType
Definition:
Event.h:37
agx::HashSet< CellPtr >
agx::Model
A model is an abstract representation of the class of an agx::Object.
Definition:
Model.h:41
agx::Physics::HierarchicalGrid::CellPtr
Pointer to a entity instance of type Physics.HierarchicalGrid.Cell.
Definition:
CellEntity.h:250
agx::Physics::HierarchicalGrid::SolveBodyManager
Definition:
SolveBodyManager.h:37
agx::Physics::HierarchicalGrid::SolveBodyManager::clear
void clear()
agx::Physics::HierarchicalGrid::SolveBodyManager::resetCounters
void resetCounters()
agx::Physics::HierarchicalGrid::SolveBodyManager::unregisterCell
void unregisterCell(CellPtr cell)
agx::Physics::HierarchicalGrid::SolveBodyManager::~SolveBodyManager
virtual ~SolveBodyManager()
agx::Physics::HierarchicalGrid::SolveBodyManager::SolveBodyManager
SolveBodyManager()
agx::Physics::HierarchicalGrid::SolveBodyManager::registerCell
void registerCell(CellPtr cell)
agx::Physics::HierarchicalGrid::SolveBodyManager::ClassModel
static agx::Model * ClassModel()
agx::VectorPOD< Index >
agx::ref_ptr< Buffer >
debug.h
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition:
AddedMassInteraction.h:23
agx::Index
UInt32 Index
Definition:
Integer.h:52
Components
agx
Physics
HierarchicalGrid
SolveBodyManager.h
Generated on Fri Jan 20 2023 10:48:19 for AGX Dynamics by
1.9.1