17#ifndef AGX_ANALYSISBOX_H
18#define AGX_ANALYSISBOX_H
65 bool getEnable()
const;
68 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.
void setBoxHalfVec(const agx::Vec3 &halfVec)
Set the half vector of the Analysis Box bound.
Real getParticleMassInsideBound()
Return the particle mass in the particles inside the Analysis Box.
agx::AffineMatrix4x4 m_transform
agx::AffineMatrix4x4 m_invBoxTransform
ParticleIdSet getParticlesInside() const
Returns the particles ids inside the Analysis Box.
agx::Quat getBoxRotation() const
Get the rotation of the Analysis Box bound.
bool containsPoint(const agx::Vec3 &point) const
Returns true/false if the point is contained inside the Analysis Box bound.
virtual ~AnalysisBox()
Virtual Destructor.
ParticleIdSet m_particleIdsInside
agx::Vec3 getBoxHalfVec() const
Get the half vector of the Analysis Box bound.
agx::AffineMatrix4x4 getInvTransform() const
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 setBoxCenter(const agx::Vec3 ¢er)
Set the center of the Analysis Box bound.
void setEnable(bool enable)
Set true/false to enable/enable the Analysis Box.
agx::Vec3 getBoxCenter() const
Get the center point of the Analysis Box bound.
void updateContents()
Update the analysis box contents.
void updateInvTransform()
agx::ParticleSystem * getParticleSystem()
HashSet< agx::Index > ParticleIdSet
bool getEnable() const
Return true/false if the box is enabled.
void setBoxRotation(const agx::Quat &rotation)
Set the rotation of the Analysis Box bound.
RigidBodyPtrVector m_rigidBodiesInside
agx::AffineMatrix4x4 getTransform() const
Get the transform of the Analysis box.
AnalysisBox(agxSDK::Simulation *simulation, const agx::Vec3 &halfVec, const agx::AffineMatrix4x4 &transform=agx::AffineMatrix4x4())
Constructor for the AnalysisBox.
Inheritance with partial specialization due to bug with ref_ptr containers.
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.