21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_HEIGHTFIELD_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_GEOMETRY_HEIGHTFIELD_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 ) 57 class HeightFieldModel;
58 class HeightFieldData;
60 class HeightFieldInstance;
61 class HeightFieldSemantics;
86 virtual void shutdownCleanup()
override;
95 virtual void configure(agx::TiXmlElement* eEntity)
override;
96 virtual void initAttributeAccessors()
override;
103 #ifndef AGX_PHYSICS_GEOMETRY_HEIGHTFIELD_DATA_SET_OVERRIDE 104 #define AGX_PHYSICS_GEOMETRY_HEIGHTFIELD_DATA_SET 105 class AGXPHYSICS_EXPORT HeightFieldData :
public agx::Physics::Geometry::MeshData
108 HeightFieldInstance operator[] (
size_t index);
120 virtual ~HeightFieldData() {}
121 virtual void setNumElements(
agx::Index numElements)
override;
124 HeightFieldData& operator= (
const HeightFieldData&) {
return *
this; }
145 friend class HeightFieldInstance;
146 HeightFieldSemantics();
174 HeightFieldData* getData();
175 const HeightFieldData* getData()
const;
188 HeightFieldInstance();
189 HeightFieldInstance(HeightFieldData* data,
agx::Index index);
194 HeightFieldData* getData();
195 const HeightFieldData* getData()
const;
212 inline HeightFieldInstance
agx::Physics::Geometry::HeightFieldData::operator[] (
size_t index) {
return HeightFieldInstance(
this, (
agx::Index)index); }
219 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
226 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
234 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
243 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
257 AGX_FORCE_INLINE HeightFieldInstance::HeightFieldInstance(HeightFieldData* data,
agx::Index index) : agx::Physics::Geometry::MeshInstance(data, index) {}
262 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
269 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
286 AGX_TYPE_BINDING(agx::Physics::Geometry::HeightFieldInstance,
"Physics.Geometry.HeightFieldInstance")
289 # pragma warning(pop) 292 #undef AGX_ENTITY_WRAPPER 293 #undef AGX_ENTITY_NAMESPACE
agxData::EntityData * getData()
agxData::EntityRef< HeightFieldPtr > HeightFieldRef
agxData::EntityInstance instance()
AGXPHYSICS_EXPORT HeightFieldPtr()
An entity reference is a safe/referencing handle to an entity instance whose model is descendant from...
Data storage for a collection of entity instances of a specified EntityModel.
Pointer to a entity instance of type Physics.Geometry.HeightField.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
#define AGX_TYPE_BINDING(_Type, _Name)
Abstract description of the data attributes for the Physics.Geometry.HeightField entity.
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
HeightFieldData * getData()
HeightFieldInstance InstanceType
Type-specific Array used for fast access into the data held by a Buffer.
AGXPHYSICS_EXPORT HeightFieldInstance instance()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Contains classes for low level data storage for AGX.
AGXPHYSICS_EXPORT HeightFieldPtr & operator=(const agxData::EntityPtr &ptr)
static HeightFieldModel * instance()
Abstract description of the data attributes for the Physics.Geometry.Mesh entity. ...
AGXPHYSICS_EXPORT HeightFieldSemantics * operator->()
bool isInstanceOf(agxData::EntityModel *model) const
HeightFieldModel ModelType
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Pointer to a entity instance of type Physics.Geometry.Mesh.