17 #ifndef AGX_PARTICLESYSTEM_H 18 #define AGX_PARTICLESYSTEM_H 70 static Model* ClassModel();
75 virtual bool setUpdateTask(
Task* updateTask );
80 Task* getUpdateTask();
143 #if (!defined SWIG ) || ( defined SWIGCSHARP || defined SWIGJAVA) 241 size_t getNumParticles()
const;
246 Real getParticleRadius()
const;
251 Real getParticleMass()
const;
261 void setParticleRadius(
Real radius,
bool updateExistingParticles =
false );
271 virtual void setParticleMass(
Real mass,
bool updateExistingParticles =
false );
281 void setMaterial(
Material* material,
bool updateExistingParticles =
false );
295 const Material* getMaterial()
const;
300 void evaluateParticleDefaultMass();
340 size_t getNumParticleGeometryContacts();
345 size_t getNumParticleParticleContacts();
350 size_t getNumActiveParticleParticleContacts();
355 size_t getNumActiveParticleGeometryContacts();
364 agx::Real getTotalParticleParticleContactForces();
367 agx::Real getTotalParticleGeometryContactForces();
370 agx::Real calculateTotalParticleVolume()
const;
373 agx::Real calculateTotalParticleMass()
const;
411 void addCollisionGroup(
agx::UInt32 id,
bool updateExistingParticles =
true );
412 void addCollisionGroup(
const agx::Name&
id,
bool updateExistingParticles =
true );
418 void removeCollisionGroup(
agx::UInt32 id,
bool updateExistingParticles =
true );
419 void removeCollisionGroup(
const agx::Name&
id,
bool updateExistingParticles =
true );
455 bool hasCollisionGroup(
const agx::Name&
id )
const;
474 void addCustomBufferReal(
const agx::String& buffername );
497 void addCustomBufferInt(
const agx::String& buffername );
520 void addCustomBufferReal32(
const agx::String& buffername );
543 void addCustomBufferVec3(
const agx::String& buffername );
565 virtual void destroySingleParticle(
agx::Index particleId );
586 virtual void setSingleParticleVelocity(
agx::Index particleId,
const agx::Vec3& velocity );
617 void clearAllParticles();
623 void updateShouldRender();
628 void commitColorBuffer();
634 void commitAllBuffers();
648 void _setGravityTask(
Task* task );
650 void clearContactData();
685 void init(
bool createMaterial =
true );
687 void invalidLicenseCallback();
703 bool isJournalPlayback();
730 bool isJournalPlayback();
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API...
Pointer to a entity instance of type Physics.ParticleGeometryContact.
TaskGroupRef m_updateTask
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a) ...
The agxIO namespace contains classes for reading, writing and finding files.
Pointer to a entity instance of type Physics.ParticlePairContact.
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...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Templated callback with one argument.
Pointer to a entity instance of type Physics.Geometry.
Abstract representation of a data buffer.
Contains classes for low level data storage for AGX.
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...
#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)
agx::SetVector< agx::ref_ptr< agx::ParticleSystem > > ParticleSystemRefSetVector
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.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
#define DOXYGEN_END_INTERNAL_BLOCK()
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
#define DOXYGEN_START_INTERNAL_BLOCK()