17 #ifndef AGX_PARTICLESYSTEM_H
18 #define AGX_PARTICLESYSTEM_H
73 virtual bool setUpdateTask(
Task* updateTask );
78 Task* getUpdateTask();
140 #if (!defined SWIG ) || ( defined SWIGCSHARP || defined SWIGJAVA)
238 size_t getNumParticles()
const;
243 Real getParticleRadius()
const;
248 Real getParticleMass()
const;
258 void setParticleRadius(
Real radius,
bool updateExistingParticles =
false );
268 virtual void setParticleMass(
Real mass,
bool updateExistingParticles =
false );
278 void setMaterial(
Material* material,
bool updateExistingParticles =
false );
284 const Material* getMaterial()
const;
289 void evaluateParticleDefaultMass();
333 agx::Real getTotalParticleParticleContactForces();
336 agx::Real getTotalParticleGeometryContactForces();
339 agx::Real calculateTotalParticleVolume()
const;
342 agx::Real calculateTotalParticleMass()
const;
380 void addCollisionGroup(
agx::UInt32 id,
bool updateExistingParticles =
true );
381 void addCollisionGroup(
const agx::Name&
id,
bool updateExistingParticles =
true );
387 void removeCollisionGroup(
agx::UInt32 id,
bool updateExistingParticles =
true );
388 void removeCollisionGroup(
const agx::Name&
id,
bool updateExistingParticles =
true );
424 bool hasCollisionGroup(
const agx::Name&
id )
const;
443 void addCustomBufferReal(
const agx::String& buffername );
466 void addCustomBufferInt(
const agx::String& buffername );
489 void addCustomBufferReal32(
const agx::String& buffername );
512 void addCustomBufferVec3(
const agx::String& buffername );
534 virtual void destroySingleParticle(
agx::Index particleId );
555 virtual void setSingleParticleVelocity(
agx::Index particleId,
const agx::Vec3& velocity );
586 void clearAllParticles();
592 void updateShouldRender();
597 void commitColorBuffer();
603 void commitAllBuffers();
617 void _setGravityTask(
Task* task );
619 void clearContactData();
654 void init(
bool createMaterial =
true );
656 void invalidLicenseCallback();
672 bool isJournalPlayback();
void AGXPHYSICS_EXPORT init()
Initialize agx.
Pointer to a entity instance of type Physics.ParticleGeometryContact.
TaskGroupRef m_updateTask
Pointer to a entity instance of type Physics.ParticlePairContact.
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
Data storage for a collection of entity instances of a specified EntityModel.
A component is an object containing other objects, enabling hierarchical structuring.
A model is an abstract representation of the class of an agx::Object.
Abstract representation of a value.
A class holding 4 dimensional vectors and providing basic arithmetic.
#define AGX_TYPE_BINDING(_Type, _Name)
friend class DistributionTable
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
A representation of a generic task.
Representation of a name string.
Type-specific Array used for fast access into the data held by a Buffer.
Pointer to a entity instance of type Physics.CollisionGroupSet.
Base class providing referencing counted objects.
The geometry representation used by the collision detection engine.
agxData::EntityStorageRef m_particleStorage
A basic particle system that contains all the storages and buffers required for basic operation and a...
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to c...
Templated callback with one argument.
Pointer to a entity instance of type Physics.Geometry.
Abstract representation of a data buffer.
agx::SymmetricPair< agx::Physics::ParticlePtr > ParticlePair
The rigid body class, combining a geometric model and a frame of reference.
Main material class which acts as a holder of a Surface Material and a Bulk material.
AGXPHYSICS_EXPORT bool setEnableCollisions(agx::RigidBody *rb1, agx::RigidBody *rb2, bool enable)
Enable or disable the collision between all geometries in RigidBody rb1 and RigidBody rb2...
static agx::Model * ClassModel()
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
#define AGX_DECLARE_VECTOR_TYPES(type)
Class to represent Images.
An agx::Device is an abstract representation of a device on which data can be stored and processed...
Pointer to a entity instance of type Physics.Particle.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()