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;
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();
180 #ifdef AGX_GENERATED_TOLUA_WRAPPER
196 HeightFieldInstance();
197 HeightFieldInstance(HeightFieldData* data,
agx::Index index);
202 HeightFieldData* getData();
203 const HeightFieldData* getData()
const;
220 inline HeightFieldInstance
agx::Physics::Geometry::HeightFieldData::operator[] (
size_t index) {
return HeightFieldInstance(
this, (
agx::Index)index); }
227 "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\'",
242 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
251 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
258 AGX_FORCE_INLINE HeightFieldSemantics* HeightFieldPtr::operator->() {
return (HeightFieldSemantics* )
this; }
259 AGX_FORCE_INLINE const HeightFieldSemantics* HeightFieldPtr::operator->()
const {
return (
const HeightFieldSemantics* )
this; }
265 AGX_FORCE_INLINE HeightFieldInstance::HeightFieldInstance(HeightFieldData* data,
agx::Index index) :
agx::Physics::Geometry::MeshInstance(data, index) {}
270 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
277 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
294 AGX_TYPE_BINDING(
agx::Physics::Geometry::HeightFieldInstance, "Physics.Geometry.HeightFieldInstance")
297 # pragma warning(pop)
300 #undef AGX_ENTITY_WRAPPER
301 #undef AGX_ENTITY_NAMESPACE
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_TYPE_BINDING(_Type, _Name)
#define AGXPHYSICS_EXPORT
Type-specific Array used for fast access into the data held by a Buffer.
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...
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
EntityPtr & operator=(const EntityPtr &other)=default
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.
agx::String fullPath() const
Abstract description of the data attributes for the Physics.Geometry.HeightField entity.
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
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
static agxData::EntityStorage * defaultStorage()
virtual ~HeightFieldModel()
virtual void construct(agxData::EntityPtr instance) override
static HeightFieldModel * instance()
Pointer to a entity instance of type Physics.Geometry.HeightField.
AGXPHYSICS_EXPORT const HeightFieldSemantics * operator->() const
HeightFieldModel ModelType
AGXPHYSICS_EXPORT HeightFieldPtr()
AGXPHYSICS_EXPORT HeightFieldInstance instance()
const HeightFieldData * getData() const
AGXPHYSICS_EXPORT const HeightFieldInstance instance() const
AGXPHYSICS_EXPORT HeightFieldPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT HeightFieldSemantics * operator->()
AGXPHYSICS_EXPORT HeightFieldPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT HeightFieldPtr(const agxData::EntityPtr &ptr)
HeightFieldInstance InstanceType
HeightFieldData * getData()
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.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())