183 bool hasMaterialsWithContactReduction()
const;
277 void resetDirtyMaterials()
const;
295 bool m_hasMaterialsWithContactReduction;
308 return m_contactMaterialStorage;
AGXTERRAIN_EXPORT void clear()
const agx::ContactMaterial * getContactMaterial(const agx::Material *material1, const agx::Material *material2) const
Returns an implicit or explicit contact material if it exists.
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
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()
agxData::EntityStorage * getContactMaterialStorage()
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...
void set(MaterialManager *mgr)
SymmetricMaterialPair getSymmetricPair(const agx::ContactMaterial *contactMaterial) const
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
const agx::Material * getDefaultMaterial() const
agx::Vector< const agx::ContactMaterial * > ContactMaterialPtrVector
Inheritance with partial specialization due to bug with ref_ptr containers.
ContactMaterialVector m_contactMaterials
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()