17 #ifndef AGX_ANALYSISBOX_H
18 #define AGX_ANALYSISBOX_H
68 bool getEnable()
const;
71 void setEnable(
bool enable);
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Class that can be used to extract data from elements in a simulation within a specified bound.
agx::ParticleSystem * getParticleSystem()
Real getParticleMassInsideBound()
Return the particle mass in the particles inside the Analysis Box.
ParticleIdSet getParticlesInside() const
Returns the particles ids inside the Analysis Box.
virtual ~AnalysisBox()
Virtual Destructor.
AnalysisBox(agxSDK::Simulation *simulation, const agx::Vec3 ¢er, const agx::Vec3 &halfVec)
Constructor for the AnalysisBox.
ParticleIdSet m_particleIdsInside
agx::Bound3 getAnalysisBound() const
Get the bound of the Analysis Box.
agxSDK::Simulation * m_simulation
bool containsParticle(agx::Index particleId) const
Returns true/false if the particle given the specified particle id is inside the box.
void setEnable(bool enable)
Set true/false to enable/enable the Analysis Box.
void updateContents()
Update the analysis box contents.
agx::Vec3 getBoundCenter()
Get the center point of the Analysis Box bound.
void setAnalysisBound(const agx::Vec3 ¢er, const agx::Vec3 &halfVec)
Update the bounds of the Analysis Box.
void updateBound(const agx::Vec3 ¢er, const agx::Vec3 &halfVec)
HashSet< agx::Index > ParticleIdSet
bool getEnable() const
Return true/false if the box is enabled.
RigidBodyPtrVector m_rigidBodiesInside
agx::Vec3 getBoundHalfVec()
Get the half vector of the Analysis Box bound.
bool containsPoint(const agx::Vec3 &point)
Returns true/false if the point is contained inside the Analysis Box bound.
A basic particle system that contains all the storages and buffers required for basic operation and a...
Base class providing referencing counted objects.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.