21#ifndef GENERATED_AGX_PHYSICS_GEOMETRY_HEIGHTFIELD_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_GEOMETRY_HEIGHTFIELD_H_PLUGIN
24#define AGX_ENTITY_WRAPPER 1
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;
95 virtual void configure(agx::TiXmlElement* eEntity)
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; }
144 friend class HeightFieldPtr;
145 friend class HeightFieldInstance;
146 HeightFieldSemantics();
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\'",
235 EntityPtr::getModel()->
fullPath().c_str(), HeightFieldModel::instance()->fullPath().c_str());
243 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
244 EntityPtr::getModel()->
fullPath().c_str(), HeightFieldModel::instance()->fullPath().c_str());
250 AGX_FORCE_INLINE HeightFieldSemantics* HeightFieldPtr::operator->() {
return (HeightFieldSemantics* )
this; }
251 AGX_FORCE_INLINE const HeightFieldSemantics* HeightFieldPtr::operator->()
const {
return (
const HeightFieldSemantics* )
this; }
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\'",
286AGX_TYPE_BINDING(
agx::Physics::Geometry::HeightFieldInstance, "Physics.Geometry.HeightFieldInstance")
292#undef AGX_ENTITY_WRAPPER
293#undef AGX_ENTITY_NAMESPACE
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_TYPE_BINDING(_Type, _Name)
#define AGXPHYSICS_EXPORT
Entity instance provides access to a single instance in an EntityStorage.
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
EntityPtr & operator=(const EntityPtr &other)=default
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
Only use as member allocated variable.
agx::String fullPath() const
agx::String fullPath() const
Abstract description of the data attributes for the Physics.Geometry.HeightField entity.
static HeightFieldModel * instance()
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::EntityStorage * defaultStorage()
void construct(agx::Physics::Geometry::HeightFieldPtr heightField)
static HeightFieldPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
virtual void initAttributeAccessors() override
HeightFieldModel(const agx::String &name="HeightField")
virtual void configure(agx::TiXmlElement *eEntity) override
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
virtual ~HeightFieldModel()
virtual void construct(agxData::EntityPtr instance) override
Pointer to a entity instance of type Physics.Geometry.HeightField.
HeightFieldModel ModelType
AGXPHYSICS_EXPORT HeightFieldPtr()
const HeightFieldData * getData() const
AGXPHYSICS_EXPORT HeightFieldInstance instance()
AGXPHYSICS_EXPORT const HeightFieldInstance instance() const
AGXPHYSICS_EXPORT HeightFieldPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT const HeightFieldSemantics * operator->() const
AGXPHYSICS_EXPORT HeightFieldPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT HeightFieldSemantics * operator->()
HeightFieldData * getData()
AGXPHYSICS_EXPORT HeightFieldPtr(const agxData::EntityPtr &ptr)
HeightFieldInstance InstanceType
Abstract description of the data attributes for the Physics.Geometry.Mesh entity.
Pointer to a entity instance of type Physics.Geometry.Mesh.
Vector containing 'raw' data.
#define agxAssertN(expr, format,...)
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Contains classes for low level data storage for AGX.
agxData::EntityRef< HeightFieldPtr > HeightFieldRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.