AGX Dynamics  2.37.2.0
ParticleSystem.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. 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_PARTICLESYSTEM_H
18 #define AGX_PARTICLESYSTEM_H
19 
20 #include <agx/Referenced.h>
21 #include <agx/Component.h>
22 #include <agx/Bound.h>
26 #include <agx/Material.h>
27 #include <agx/Emitter.h>
28 #include <agxStream/Serializable.h>
29 #include <agx/Task.h>
30 #include <agxCollide/Geometry.h>
31 #include <agxCollide/Space.h>
32 #include <typeinfo>
33 #include <agx/Logger.h>
34 
35 namespace agxData
36 {
38 }
39 
40 namespace agxIO
41 {
42  class Image;
43 }
44 
45 namespace agxSDK
46 {
47  class Simulation;
48 }
49 
50 AGX_TYPE_BINDING( agxData::ParticlePair, "ParticlePair" )
51 
52 namespace agx
53 {
57 
58 
68  {
69  public:
70  static Model* ClassModel();
71 
75  virtual bool setUpdateTask( Task* updateTask );
76 
80  Task* getUpdateTask();
81 
85  virtual void addNotification( agxSDK::Simulation* simulation );
86 
90  Physics::ParticlePtr createParticle();
91 
95  agxData::EntityRange createParticles( size_t numParticles );
96 
100  Physics::ParticlePtr getParticle( agx::Index particleId );
101 
105  void destroyParticle( Physics::ParticlePtr particle );
106 
110  void destroyParticles( const Physics::ParticlePtrVector& particles );
111  void destroyParticles( const agxData::EntityPtrVector& particles );
112 
116  void destroyParticles( agxData::EntityRange particles );
117 
126  bool removeParticle( Physics::ParticlePtr particle );
127 
131  bool isValid( Physics::ParticlePtr particle ) const;
132 
136  bool isParticleGeometryContactValid( Physics::ParticleGeometryContactPtr contact );
137 
141  bool isParticlePairContactValid( Physics::ParticlePairContactPtr contact );
142 
143 #if (!defined SWIG ) || ( defined SWIGCSHARP || defined SWIGJAVA)
144 
147  const agx::Physics::ParticlePtrArray getParticles() const;
148  agx::Physics::ParticlePtrArray getParticles();
149 #endif
150 
152  agxData::EntityRange spawnParticles( const agx::Vec3Vector& positions );
153 
161  agx::Physics::ParticlePtrVector spawnParticlesInBound( const agx::Bound3& bound, Real radius, const agx::Vec3& spacing, agx::Real jitterFactor = agx::Real( 0 ) );
162 
171  agx::Physics::ParticlePtrVector spawnParticlesInBound( const agx::Bound3& bound, agx::Emitter::DistributionTable* sourceTable, const agx::Vec3& spacing, agx::Real jitterFactor = agx::Real( 0 ) );
172 
181  agx::Physics::ParticlePtrVector spawnParticlesInBoundHCP( const agx::Bound3& bound, Real radius, const agx::Vec3& spacing, agx::Real jitterFactor = agx::Real( 0 ) );
182 
191  agx::Physics::ParticlePtrVector spawnParticlesInBoundHCP( const agx::Bound3& bound, agx::Emitter::DistributionTable* sourceTable, const agx::Vec3& spacing, agx::Real jitterFactor = agx::Real( 0 ) );
192 
200  agx::Physics::ParticlePtrVector spawnParticlesInGeometry( agxCollide::Geometry* geometry, Real radius, const agx::Vec3& spacing, agx::Real jitterFactor = agx::Real( 0 ) );
201 
209  agx::Physics::ParticlePtrVector spawnParticlesInGeometryHCP( agxCollide::Geometry* geometry, Real radius, const agx::Vec3& spacing, agx::Real jitterFactor = agx::Real( 0 ) );
210 
219  agx::Physics::ParticlePtrVector spawnParticlesInGeometry( agxCollide::Geometry* geometry, agx::Emitter::DistributionTable* sourceTable, const agx::Vec3& spacing, agx::Real jitterFactor = agx::Real( 0 ) );
220 
229  agx::Physics::ParticlePtrVector spawnParticlesInGeometryHCP( agxCollide::Geometry* geometry, agx::Emitter::DistributionTable* sourceTable, const agx::Vec3& spacing, agx::Real jitterFactor = agx::Real( 0 ) );
230 
236  void colorParticlesWithLevelsInBound( const agx::Bound3& bound, const agx::Vec4fVector& colors );
237 
241  size_t getNumParticles() const;
242 
246  Real getParticleRadius() const;
247 
251  Real getParticleMass() const;
252 
261  void setParticleRadius( Real radius, bool updateExistingParticles = false );
262 
271  virtual void setParticleMass( Real mass, bool updateExistingParticles = false );
272 
281  void setMaterial( Material* material, bool updateExistingParticles = false );
282 
289  agx::Physics::ParticlePtrVector removeParticlesOutsideBound( const agx::Bound3& bound );
290 
294  Material* getMaterial();
295  const Material* getMaterial() const;
296 
300  void evaluateParticleDefaultMass();
301 
305  agxData::EntityStorage* getParticleStorage();
306 
310  const agxData::EntityStorage* getParticleStorage() const;
311 
315  agxData::EntityStorage* getParticlePairContactStorage();
316 
320  agxData::EntityStorage* getGeometryParticleContactListStorage();
321 
325  agxData::EntityStorage* getParticleGeometryContactStorage();
326 
330  agx::Vector<agx::Physics::ParticleGeometryContactPtr> getParticleGeometryContacts();
331 
335  agx::Vector<agx::Physics::ParticlePairContactPtr> getParticleParticleContacts();
336 
340  size_t getNumParticleGeometryContacts();
341 
345  size_t getNumParticleParticleContacts();
346 
350  size_t getNumActiveParticleParticleContacts();
351 
355  size_t getNumActiveParticleGeometryContacts();
356 
361  Vec3 sumForceMagnitudes( RigidBody* body );
362 
363  // Returns the total contact forces between the particles in the system
364  agx::Real getTotalParticleParticleContactForces();
365 
366  // Returns the total particle-geometry contact forces in the system.
367  agx::Real getTotalParticleGeometryContactForces();
368 
369  // Calculates the total particle volume in the particle system
370  agx::Real calculateTotalParticleVolume() const;
371 
373  agx::Real calculateTotalParticleMass() const;
374 
376 
380  void setEnableCollisions( const agxCollide::Geometry* geometry, bool flag );
381 
385  bool getEnableCollisions( const agxCollide::Geometry* geometry ) const;
386 
390  const agxCollide::GeometryHashVector& getDisabledCollisions() const;
391 
392 
401  // bool canCollide( const agxCollide::Geometry* geometry ) const;
402 
411  void addCollisionGroup( agx::UInt32 id, bool updateExistingParticles = true );
412  void addCollisionGroup( const agx::Name& id, bool updateExistingParticles = true );
413 
418  void removeCollisionGroup( agx::UInt32 id, bool updateExistingParticles = true );
419  void removeCollisionGroup( const agx::Name& id, bool updateExistingParticles = true );
420 
429  void addCollisionGroupParticle( agx::UInt32 id, agx::Physics::ParticlePtr ptr );
430  void addCollisionGroupParticle( const agx::Name& id, agx::Physics::ParticlePtr ptr );
431 
436  void removeCollisionGroupParticle( agx::UInt32 id, agx::Physics::ParticlePtr ptr );
437  void removeCollisionGroupParticle( const agx::Name& id, agx::Physics::ParticlePtr ptr );
438 
445  bool hasCollisionGroupParticle( agx::UInt32 id, agx::Physics::ParticlePtr ptr ) const;
446  bool hasCollisionGroupParticle( const agx::Name& id, agx::Physics::ParticlePtr ptr ) const;
447 
454  bool hasCollisionGroup( agx::UInt32 id ) const;
455  bool hasCollisionGroup( const agx::Name& id ) const;
456 
460  agx::Physics::CollisionGroupSetPtr getCollisionGroupSet() const;
461 
462  const agx::Bound3& getParticleBound();
463 
467  bool hasCustomBuffer( const agx::String& buffername, const agx::String& formatName );
468 
474  void addCustomBufferReal( const agx::String& buffername );
475 
482  void setCustomBufferValueReal( agx::Index id, const agx::String& buffername, agx::Real val );
483 
490  agx::Real getCustomBufferValueReal( agx::Index id, const agx::String& buffername );
491 
497  void addCustomBufferInt( const agx::String& buffername );
498 
505  void setCustomBufferValueInt( agx::Index id, const agx::String& buffername, agx::Int val );
506 
513  agx::Int getCustomBufferValueInt( agx::Index id, const agx::String& buffername );
514 
520  void addCustomBufferReal32( const agx::String& buffername );
521 
528  void setCustomBufferValueReal32( agx::Index id, const agx::String& buffername, agx::Real32 val );
529 
536  agx::Real32 getCustomBufferValueReal32( agx::Index id, const agx::String& buffername );
537 
543  void addCustomBufferVec3( const agx::String& buffername );
544 
551  void setCustomBufferValueVec3( agx::Index id, const agx::String& buffername, agx::Vec3 val );
552 
559  agx::Vec3 getCustomBufferValueVec3( agx::Index id, const agx::String& buffername );
560 
562  agx::Physics::ParticleGeometryContactPtr createParticleGeometryContact( agx::Physics::ParticlePtr particle, agx::Physics::GeometryPtr geometry );
563 
565  virtual void destroySingleParticle( agx::Index particleId );
566 
568  virtual void setSingleParticleRadius( agx::Index particleId, agx::Real radius );
569 
571  virtual agx::Real getSingleParticleRadius( agx::Index particleId );
572 
574  virtual void setSingleParticleMass( agx::Index particleId, agx::Real mass );
575 
577  virtual agx::Real getSingleParticleMass( agx::Index particleId );
578 
580  virtual void setSingleParticleColor( agx::Index particleId, const agx::Vec4f& color );
581 
583  virtual agx::Vec4f getSingleParticleColor( agx::Index particleId );
584 
586  virtual void setSingleParticleVelocity( agx::Index particleId, const agx::Vec3& velocity );
587 
589  virtual agx::Vec3 getSingleParticleVelocity( agx::Index particleId );
590 
592  virtual agx::Vec3 getSingleParticlePosition( agx::Index particleId );
593 
595  virtual void setSingleParticleForce( agx::Index particleId, const agx::Vec3& force );
596 
598  virtual agx::Vec3 getSingleParticleForce( agx::Index particleId );
599 
601  void applyAirForceDragSimple( agx::Real cd, agx::Real cr );
602 
604  bool particleExistsWithId( agx::Index id );
605 
612  agx::Index getParticleIdFromIndex( agx::Index index ) const;
613 
617  void clearAllParticles();
618 
623  void updateShouldRender();
624 
628  void commitColorBuffer();
629 
634  void commitAllBuffers();
635 
639  void attach();
640 
645  void detach();
646 
647  // private
648  void _setGravityTask( Task* task );
649  void setSpace( agxCollide::Space* space );
650  void clearContactData();
651 
653 
654  agx::Vector<agx::Physics::ParticlePtr> createParticlesFromImage( agxIO::Image* image, agx::Real particleRadius, const agx::Vec3& center, agx::Real radiusJitter );
655 
657  static Vec3u calculateFilledBoundPacking( agx::Vec3Vector& result, agx::Bound3 bound, const agx::Vec3& spacing, agx::Real boundarySpacing = agx::Real( 0 ), agx::Real jitterFactor = agx::Real( 0 ) );
658  static size_t calculateFilledBoundPackingHCP( agx::Vec3Vector& result, agx::Bound3 bound, const agx::Vec3& distance, agx::Real boundarySpacing = agx::Real( 0 ), agx::Real jitterFactor = agx::Real( 0 ) );
659  static void calculateFilledGeometryPacking( agx::Vec3Vector& result, agxCollide::Geometry* geometry, const agx::Vec3& spacing, agx::Real boundarySpacing = agx::Real( 0 ), agx::Real jitterFactor = agx::Real( 0 ) );
660  static void calculateFilledGeometryPackingHCP( agx::Vec3Vector& result, agxCollide::Geometry* geometry, const agx::Vec3& spacing, agx::Real boundarySpacing = agx::Real( 0 ), agx::Real jitterFactor = agx::Real( 0 ) );
661 
662  template<typename T>
663  void addCustomBufferT( const agx::String& name );
664 
665  template<typename T>
666  void setCustomBufferValueT( agx::Index id, const agx::String& buffername, const T valueT );
667 
668  template<typename T>
669  T getCustomBufferValueT( agx::Index id, const agx::String& buffername );
670 
671  agxSDK::Simulation* getSimulation() const;
672 
673  agx::Physics::ParticlePtrVector convertRangeToParticlePtrVector( agxData::EntityRange& entityRange );
674 
676 
678 
679  protected:
680  ParticleSystem( const String& model, Device* device = CpuDevice::instance() );
681  ParticleSystem(); // Only used for restoring from serialization
682 
683  virtual ~ParticleSystem();
684 
685  void init( bool createMaterial = true );
686  void setCollisionGroupSet( agx::Physics::CollisionGroupSetPtr );
687  void invalidLicenseCallback();
689  void setRadiusOnParticles( agxData::EntityRange& entityRange, agx::Real radius );
690 
691  protected:
699  class AGXPHYSICS_EXPORT MaterialUuidBufferListener : public agxData::Buffer::EventListener, public agx::Referenced
700  {
701  public:
703  bool isJournalPlayback();
704  void setSimulation( agxSDK::Simulation* sim );
705  virtual void updateCallback( agxData::Buffer* buffer ) override;
706  virtual void updateCallback( agxData::Buffer* buffer, agx::Index index ) override;
707  virtual void updateCallback( agxData::Buffer* buffer, agx::IndexRange range ) override;
708  virtual void updateCallback( agxData::Buffer* buffer, agxData::Array< agx::Index > indexSet ) override;
709 
710  protected:
711  virtual ~MaterialUuidBufferListener();
713  // Variables
715  private:
717  agxSDK::Simulation* m_simulation;
718  };
719 
726  class AGXPHYSICS_EXPORT UpdateRenderingListener : public agxData::Buffer::EventListener, public agx::Referenced
727  {
728  public:
730  bool isJournalPlayback();
731  void setSimulation( agxSDK::Simulation* sim );
732  virtual void updateCallback( agxData::Buffer* buffer ) override;
733  virtual void updateCallback( agxData::Buffer* buffer, agx::Index index ) override;
734  virtual void updateCallback( agxData::Buffer* buffer, agx::IndexRange range ) override;
735  virtual void updateCallback( agxData::Buffer* buffer, agxData::Array< agx::Index > indexSet ) override;
736 
737  protected:
738  virtual ~UpdateRenderingListener();
740  // Variables
742  private:
744  agxSDK::Simulation* m_simulation;
745  };
746 
747  protected:
749  private:
750  agxData::EntityStorageRef m_particleCellStorage;
751  agxData::EntityStorageRef m_cellBlockStorage;
752  agxData::EntityStorageRef m_particleZoneStorage;
753  agxData::EntityStorageRef m_collisionParticleStorage;
754  agxData::EntityStorageRef m_particleGeometryContactStorage;
755  agxData::EntityStorageRef m_particlePairContactStorage;
756  agxData::EntityStorageRef m_geometryParticleContactListStorage;
757 
758  agxData::BufferRef m_materialUuidBuffer;
759  agxData::BufferRef m_stateBuffer;
760  agxData::BufferRef m_cellBlockPermutation;
761  agxData::BufferRef m_deadCellBlocks;
762  agxData::BufferRef m_particlesWithMissingTargetCell;
763  agxData::BufferRef m_cellBlockOverlapPairs;
764  agxData::ValueRef m_particleBound;
765  agxData::ValueRef m_collisionGroupSet;
766  agxData::ValueRef m_defaultRadius;
767  agxData::ValueRef m_defaultMass;
768  agxData::ValueRef m_defaultMaterial;
769 
770  MaterialRef m_material;
771  TaskRef m_gravityTask;
772  bool m_initialized;
773  bool m_dirtyBound;
774 
775  agx::TaskRef m_updateBoundTask;
776 
777  agxCollide::GeometryHashVector m_disabledCollisionsHash;
778  agxCollide::SpaceRef m_space;
779 
780  MaterialUuidBufferListenerRef m_uuidMaterialListenerRef;
781  UpdateRenderingListenerRef m_updateRenderingListenerRef;
782 
783  agxData::ValueObserver m_invMassValue;
784  void massChanged( agxData::Value* massValue );
785  agxData::Value::Event::CallbackType m_massChangedCallback;
786  };
787 
788  /* Implementation */
789  AGX_FORCE_INLINE Task* ParticleSystem::getUpdateTask() { return m_updateTask; }
790 
791  AGX_FORCE_INLINE const agx::Physics::ParticlePtrArray ParticleSystem::getParticles() const
792  {
793  return m_particleStorage->getInstances<Physics::ParticlePtr>();
794  }
795 
796  AGX_FORCE_INLINE agx::Physics::ParticlePtrArray ParticleSystem::getParticles()
797  {
798  return m_particleStorage->getInstances<Physics::ParticlePtr>();
799  }
800 
801  AGX_FORCE_INLINE agxData::EntityStorage* ParticleSystem::getParticleStorage() { return m_particleStorage; }
802  AGX_FORCE_INLINE const agxData::EntityStorage* ParticleSystem::getParticleStorage() const { return m_particleStorage; }
803  AGX_FORCE_INLINE agxData::EntityStorage* ParticleSystem::getParticleGeometryContactStorage() { return m_particleGeometryContactStorage; }
804  AGX_FORCE_INLINE agxData::EntityStorage* ParticleSystem::getGeometryParticleContactListStorage() { return m_geometryParticleContactListStorage; }
805  AGX_FORCE_INLINE agxData::EntityStorage* ParticleSystem::getParticlePairContactStorage() { return m_particlePairContactStorage; }
806 
807  AGX_FORCE_INLINE const agxCollide::GeometryHashVector& ParticleSystem::getDisabledCollisions() const { return m_disabledCollisionsHash; }
808  // AGX_FORCE_INLINE bool ParticleSystem::hasCollisionGroup( agx::UInt32 id ) const { return m_collisionGroups.contains(id); }
809  inline agx::Physics::CollisionGroupSetPtr ParticleSystem::getCollisionGroupSet() const { return m_collisionGroupSet->get<Physics::CollisionGroupSetPtr>(); }
810 
811  // Real
812  AGX_FORCE_INLINE void ParticleSystem::addCustomBufferReal( const agx::String& buffername ) { addCustomBufferT<agx::Real>( buffername ); }
813  AGX_FORCE_INLINE void ParticleSystem::setCustomBufferValueReal( agx::Index id, const agx::String& buffername, agx::Real val ) { setCustomBufferValueT<agx::Real>( id, buffername, val ); }
814  AGX_FORCE_INLINE agx::Real ParticleSystem::getCustomBufferValueReal( agx::Index id, const agx::String& buffername ) { return getCustomBufferValueT<agx::Real>( id, buffername ); }
815 
816  // Int
817  AGX_FORCE_INLINE void ParticleSystem::addCustomBufferInt( const agx::String& buffername ) { addCustomBufferT<agx::Int>( buffername ); }
818  AGX_FORCE_INLINE void ParticleSystem::setCustomBufferValueInt( agx::Index id, const agx::String& buffername, agx::Int val ) { setCustomBufferValueT<agx::Int>( id, buffername, val ); }
819  AGX_FORCE_INLINE agx::Int ParticleSystem::getCustomBufferValueInt( agx::Index id, const agx::String& buffername ) { return getCustomBufferValueT<agx::Int>( id, buffername ); }
820 
821  // Real32
822  AGX_FORCE_INLINE void ParticleSystem::addCustomBufferReal32( const agx::String& buffername ) { addCustomBufferT<agx::Real32>( buffername ); }
823  AGX_FORCE_INLINE void ParticleSystem::setCustomBufferValueReal32( agx::Index id, const agx::String& buffername, agx::Real32 val ) { setCustomBufferValueT<agx::Real32>( id, buffername, val ); }
824  AGX_FORCE_INLINE agx::Real32 ParticleSystem::getCustomBufferValueReal32( agx::Index id, const agx::String& buffername ) { return getCustomBufferValueT<agx::Real32>( id, buffername ); }
825 
826  // Vec3
827  AGX_FORCE_INLINE void ParticleSystem::addCustomBufferVec3( const agx::String& buffername ) { addCustomBufferT<agx::Vec3>( buffername ); }
828  AGX_FORCE_INLINE void ParticleSystem::setCustomBufferValueVec3( agx::Index id, const agx::String& buffername, agx::Vec3 val ) { setCustomBufferValueT<agx::Vec3>( id, buffername, val ); }
829  AGX_FORCE_INLINE agx::Vec3 ParticleSystem::getCustomBufferValueVec3( agx::Index id, const agx::String& buffername ) { return getCustomBufferValueT<agx::Vec3>( id, buffername ); }
830 }
831 
832 // AGX_PARTICLESYSTEM_H
833 #endif
float Real32
Definition: Real.h:44
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) ...
Definition: SymmetricPair.h:31
The agxIO namespace contains classes for reading, writing and finding files.
Definition: Material.h:41
Pointer to a entity instance of type Physics.ParticlePairContact.
Data storage for a collection of entity instances of a specified EntityModel.
Definition: EntityStorage.h:72
A component is an object containing other objects, enabling hierarchical structuring.
Definition: Component.h:38
A model is an abstract representation of the class of an agx::Object.
Definition: Model.h:40
Abstract representation of a value.
Definition: Value.h:48
A class holding 4 dimensional vectors and providing basic arithmetic.
Definition: Vec4Template.h:34
#define AGX_TYPE_BINDING(_Type, _Name)
Definition: Type.h:179
friend class DistributionTable
Definition: Emitter.h:388
#define AGXPHYSICS_EXPORT
int32_t Int
Definition: Integer.h:35
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
A representation of a generic task.
Definition: Task.h:57
Representation of a name string.
Definition: Name.h:32
#define AGX_FORCE_INLINE
Definition: Object.h:59
Type-specific Array used for fast access into the data held by a Buffer.
Definition: agxData.h:30
Pointer to a entity instance of type Physics.CollisionGroupSet.
Base class providing referencing counted objects.
Definition: Referenced.h:119
The geometry representation used by the collision detection engine.
Definition: Geometry.h:92
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...
Definition: Space.h:81
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Templated callback with one argument.
Definition: Callback.h:100
Pointer to a entity instance of type Physics.Geometry.
Abstract representation of a data buffer.
Definition: Buffer.h:55
Contains classes for low level data storage for AGX.
Definition: Container.h:23
UInt32 Index
Definition: Integer.h:52
agx::SymmetricPair< agx::Physics::ParticlePtr > ParticlePair
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:54
Main material class which acts as a holder of a Surface Material and a Bulk material.
Definition: Material.h:375
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...
Definition: Serializable.h:207
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:44
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:126
double Real
Definition: Real.h:42
#define AGX_DECLARE_VECTOR_TYPES(type)
Definition: Vector.h:34
agx::SetVector< agx::ref_ptr< agx::ParticleSystem > > ParticleSystemRefSetVector
Class to represent Images.
Definition: Image.h:32
An agx::Device is an abstract representation of a device on which data can be stored and processed...
Definition: Device.h:57
Pointer to a entity instance of type Physics.Particle.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Definition: Constraint.h:30
uint32_t UInt32
Definition: Integer.h:40
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: Object.h:98
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Definition: SetVector.h:37
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: Object.h:97