156 const StringMaterialRefTable& getMaterials()
const;
169 const MaterialSPairContactMaterialRefTable& getContactMaterials()
const;
182 bool hasMaterialsWithContactReduction()
const;
266 friend class SimulationController;
276 void resetDirtyMaterials()
const;
298 StringMaterialRefTable m_materials;
299 MaterialSPairContactMaterialRefTable m_contactMaterials;
301 bool m_hasMaterialsWithContactReduction;
314 return m_contactMaterialStorage;
319 return getContactMaterial( material1 ? material1.
model() : getDefaultMaterial(), material2 ? material2.
model() : getDefaultMaterial() );
332 return SymmetricMaterialPair( material1 ? material1 : getDefaultMaterial(), material2 ? material2 : getDefaultMaterial() );
AGXTERRAIN_EXPORT void clear()
agx::Vector< const agx::ContactMaterial * > ContactMaterialPtrVector
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a) ...
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.
The geometry representation used by the collision detection engine.
Vector containing 'raw' data.
The agx namespace 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
Inheritance with partial specialization due to bug with ref_ptr containers.
agx::Vector< const agx::Material * > MaterialPtrVector
ContactMaterialVector m_contactMaterials
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
agx::SymmetricPair< const agx::Material * > MaterialPair
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()