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;
106 virtual void configure(agx::TiXmlElement* eEntity)
override;
107 virtual void initAttributeAccessors()
override;
114 #ifndef AGX_PHYSICS_MATERIAL_DATA_SET_OVERRIDE
115 #define AGX_PHYSICS_MATERIAL_DATA_SET
119 MaterialInstance operator[] (
size_t index);
141 virtual ~MaterialData() {}
142 virtual void setNumElements(
agx::Index numElements)
override;
145 MaterialData& operator= (
const MaterialData&) {
return *
this; }
175 friend class MaterialPtr;
176 friend class MaterialInstance;
205 MaterialData* getData();
206 const MaterialData* getData()
const;
236 #ifdef AGX_GENERATED_TOLUA_WRAPPER
238 inline agx::Name const& getName()
const {
return (*this)->getName(); }
244 inline void setModel(
agx::Material*
const& value) { (*this)->setModel(value); }
245 inline void setName(
agx::Name const& value) { (*this)->setName(value); }
263 MaterialInstance(MaterialData* data,
agx::Index index);
268 MaterialData* getData();
269 const MaterialData* getData()
const;
311 inline MaterialInstance agx::Physics::MaterialData::operator[] (
size_t index) {
return MaterialInstance(
this, (
agx::Index)index); }
318 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
325 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
333 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
342 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
349 AGX_FORCE_INLINE MaterialSemantics* MaterialPtr::operator->() {
return (MaterialSemantics* )
this; }
350 AGX_FORCE_INLINE const MaterialSemantics* MaterialPtr::operator->()
const {
return (
const MaterialSemantics* )
this; }
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\'",
414 AGX_TYPE_BINDING(agx::Physics::MaterialInstance, "Physics.MaterialInstance")
417 # pragma warning(pop)
420 #undef AGX_ENTITY_WRAPPER
421 #undef AGX_ENTITY_NAMESPACE
AGXPHYSICS_EXPORT MaterialPtr()
agxData::EntityData * getData()
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()
#define AGX_TYPE_BINDING(_Type, _Name)
static agxData::ScalarAttributeT< agx::Name > * nameAttribute
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
bool isInstanceOf(agxData::EntityModel *model) const
#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)
agx::String fullPath() 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
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
Pointer to a entity instance of type Physics.BulkMaterial.
Abstract description of the data attributes for the Physics.Material entity.
Main material class which acts as a holder of a Surface Material and a Bulk material.
MaterialInstance InstanceType
Abstract description of the data attributes for the Referenced entity.
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
Pointer to a entity instance of type Physics.SurfaceMaterial.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()