157 const StringMaterialRefTable& getMaterials()
const;
170 const MaterialSPairContactMaterialRefTable& getContactMaterials()
const;
183 bool hasMaterialsWithContactReduction()
const;
267 friend class SimulationController;
277 void resetDirtyMaterials()
const;
292 StringMaterialRefTable m_materials;
293 MaterialSPairContactMaterialRefTable m_contactMaterials;
295 bool m_hasMaterialsWithContactReduction;
308 return m_contactMaterialStorage;
313 return getContactMaterial( material1 ? material1.
model() : getDefaultMaterial(), material2 ? material2.
model() : getDefaultMaterial() );
326 return SymmetricMaterialPair( material1 ? material1 : getDefaultMaterial(), material2 ? material2 : getDefaultMaterial() );
AGXTERRAIN_EXPORT void clear()
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive...
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.
Pointer to a entity instance of type Physics.Material.
agx::HashTable< agx::String, agx::MaterialRef > StringMaterialRefTable
#define AGXPHYSICS_EXPORT
MaterialManagerSerializer(const MaterialManager *mgr)
#define AGX_DECLARE_POINTER_TYPES(type)
Internal class for store/restore of MaterialManager.
agx::Vector< const agx::Material * > MaterialPtrVector
The geometry representation used by the collision detection engine.
agx::SymmetricPair< const agx::Material * > MaterialPair
Vector containing 'raw' data.
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
agx::Vector< agx::ref_ptr< agx::ContactMaterial > > ContactMaterialVector
AGXPHYSICS_EXPORT size_t getContactMaterialVector(agxSDK::MaterialManager *mgr, agx::ContactMaterialPtrVector &contactMaterials)
Get all contact materials from the material manager and add them to the supplied vector.
static Material * getDefaultMaterial()
agx::SymmetricPair< const agx::Material *> SymmetricMaterialPair
const MaterialManager * m_mgr
Main material class which acts as a holder of a Surface Material and a Bulk material.
AGXPHYSICS_EXPORT agx::Material *& model()
A UUID, or Universally unique identifier, is intended to uniquely identify information in a distribut...
#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...
Class for writing serialized data in binary format to a stream.
Simulation unique manager that handles logics around and parameters in contact materials given two ag...
MaterialManagerSerializer()
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
AGXPHYSICS_EXPORT size_t getMaterialVector(agxSDK::MaterialManager *mgr, agx::MaterialPtrVector &materials)
Get all materials from the material manager and add them to the supplied vector.
agx::QuadraticProbingHashTable< SymmetricMaterialPair, agx::ContactMaterialRef > MaterialSPairContactMaterialRefTable
agx::Vector< const agx::ContactMaterial * > ContactMaterialPtrVector
Inheritance with partial specialization due to bug with ref_ptr containers.
ContactMaterialVector m_contactMaterials
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()