21 #ifndef GENERATED_AGX_PHYSICS_MATERIAL_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_MATERIAL_H_PLUGIN 24 #define AGX_ENTITY_WRAPPER 1 28 # pragma warning(push) 30 # pragma warning( disable : 4505 ) 32 # pragma warning( disable : 4251 ) 34 # pragma warning( disable : 4355 ) 36 # pragma warning( disable: 4714 ) 52 namespace agx {
class Material; }
54 namespace agx {
namespace Physics {
class BulkMaterialPtr; }}
55 namespace agx {
namespace Physics {
class SurfaceMaterialPtr; }}
56 namespace agx {
namespace Physics {
class WireMaterialPtr; }}
66 class MaterialInstance;
67 class MaterialSemantics;
92 virtual void shutdownCleanup()
override;
107 virtual void configure(agx::TiXmlElement* eEntity)
override;
108 virtual void initAttributeAccessors()
override;
115 #ifndef AGX_PHYSICS_MATERIAL_DATA_SET_OVERRIDE 116 #define AGX_PHYSICS_MATERIAL_DATA_SET 120 MaterialInstance operator[] (
size_t index);
134 typedef agx::Name materialLibraryNameType;
144 virtual ~MaterialData() {}
145 virtual void setNumElements(
agx::Index numElements)
override;
148 MaterialData& operator= (
const MaterialData&) {
return *
this; }
163 agx::Name const& getMaterialLibraryName()
const;
173 void setMaterialLibraryName(
agx::Name const& value);
181 friend class MaterialInstance;
210 MaterialData* getData();
211 const MaterialData* getData()
const;
255 MaterialInstance(MaterialData* data,
agx::Index index);
260 MaterialData* getData();
261 const MaterialData* getData()
const;
277 agx::Name const& materialLibraryName()
const;
308 inline MaterialInstance
agx::Physics::MaterialData::operator[] (
size_t index) {
return MaterialInstance(
this, (
agx::Index)index); }
315 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
322 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
330 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
339 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
371 AGX_FORCE_INLINE MaterialInstance::MaterialInstance(MaterialData* data,
agx::Index index) : agx::ReferencedInstance(data, index) {}
376 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
383 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
397 AGX_FORCE_INLINE agx::Name& MaterialInstance::materialLibraryName() { verifyIndex();
return getData()->materialLibraryName[getIndex()]; }
398 AGX_FORCE_INLINE agx::Name const& MaterialInstance::materialLibraryName()
const { verifyIndex();
return getData()->materialLibraryName[getIndex()]; }
417 AGX_TYPE_BINDING(agx::Physics::MaterialInstance,
"Physics.MaterialInstance")
420 # pragma warning(pop) 423 #undef AGX_ENTITY_WRAPPER 424 #undef AGX_ENTITY_NAMESPACE AGXPHYSICS_EXPORT MaterialPtr()
agxData::EntityData * getData()
AGXPHYSICS_EXPORT MaterialSemantics * operator->()
agxData::EntityInstance instance()
static agxData::ScalarAttributeT< agx::Physics::SurfaceMaterialPtr > * surfaceMaterialAttribute
Data storage for a collection of entity instances of a specified EntityModel.
Pointer to a entity instance of type Physics.Material.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
#define AGX_TYPE_BINDING(_Type, _Name)
static agxData::ScalarAttributeT< agx::Name > * nameAttribute
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
#define AGXPHYSICS_EXPORT
Entity instance provides access to a single instance in an EntityStorage.
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::PointerAttributeT< agx::Material * > * modelAttribute
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.WireMaterial.
static agxData::ScalarAttributeT< agx::Physics::WireMaterialPtr > * wireMaterialAttribute
static agxData::ScalarAttributeT< agx::Name > * materialLibraryNameAttribute
AGXPHYSICS_EXPORT MaterialPtr & operator=(const agxData::EntityPtr &ptr)
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
Pointer to a entity instance of type Physics.BulkMaterial.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Abstract description of the data attributes for the Physics.Material entity.
Contains classes for low level data storage for AGX.
AGXPHYSICS_EXPORT agx::Physics::SurfaceMaterialPtr & surfaceMaterial()
AGXPHYSICS_EXPORT agx::Name & name()
Main material class which acts as a holder of a Surface Material and a Bulk material.
AGXPHYSICS_EXPORT agx::Material *& model()
MaterialInstance InstanceType
Abstract description of the data attributes for the Referenced entity.
AGXPHYSICS_EXPORT agx::Name & materialLibraryName()
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityRef< MaterialPtr > MaterialRef
Pointer to a entity instance of type Referenced.
static MaterialModel * instance()
static agxData::ScalarAttributeT< agx::Physics::BulkMaterialPtr > * bulkMaterialAttribute
AGXPHYSICS_EXPORT agx::Physics::WireMaterialPtr & wireMaterial()
Pointer to a entity instance of type Physics.SurfaceMaterial.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT agx::Physics::BulkMaterialPtr & bulkMaterial()
AGXPHYSICS_EXPORT MaterialInstance instance()