21#ifndef GENERATED_AGX_PHYSICS_GEOMETRY_TRIMESH_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_GEOMETRY_TRIMESH_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 )
60 class TrimeshInstance;
61 class TrimeshSemantics;
95 virtual void configure(agx::TiXmlElement* eEntity)
override;
103 #ifndef AGX_PHYSICS_GEOMETRY_TRIMESH_DATA_SET_OVERRIDE
104 #define AGX_PHYSICS_GEOMETRY_TRIMESH_DATA_SET
108 TrimeshInstance operator[] (
size_t index);
120 virtual ~TrimeshData() {}
121 virtual void setNumElements(
agx::Index numElements)
override;
124 TrimeshData& operator= (
const TrimeshData&) {
return *
this; }
144 friend class TrimeshPtr;
145 friend class TrimeshInstance;
189 TrimeshInstance(TrimeshData* data,
agx::Index index);
194 TrimeshData* getData();
195 const TrimeshData* getData()
const;
212 inline TrimeshInstance
agx::Physics::Geometry::TrimeshData::operator[] (
size_t index) {
return TrimeshInstance(
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(), TrimeshModel::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(), TrimeshModel::instance()->fullPath().c_str());
250 AGX_FORCE_INLINE TrimeshSemantics* TrimeshPtr::operator->() {
return (TrimeshSemantics* )
this; }
251 AGX_FORCE_INLINE const TrimeshSemantics* TrimeshPtr::operator->()
const {
return (
const TrimeshSemantics* )
this; }
257 AGX_FORCE_INLINE TrimeshInstance::TrimeshInstance(TrimeshData* 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::TrimeshInstance, "Physics.Geometry.TrimeshInstance")
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
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...
EntityPtr & operator=(const EntityPtr &other)=default
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
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.Mesh entity.
Pointer to a entity instance of type Physics.Geometry.Mesh.
Abstract description of the data attributes for the Physics.Geometry.Trimesh entity.
virtual void construct(agxData::EntityPtr instance) override
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
TrimeshModel(const agx::String &name="Trimesh")
virtual void configure(agx::TiXmlElement *eEntity) override
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
virtual void initAttributeAccessors() override
void construct(agx::Physics::Geometry::TrimeshPtr trimesh)
static TrimeshModel * instance()
static agxData::EntityStorage * defaultStorage()
static TrimeshPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
Pointer to a entity instance of type Physics.Geometry.Trimesh.
const TrimeshData * getData() const
AGXPHYSICS_EXPORT TrimeshPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT TrimeshPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT TrimeshPtr()
AGXPHYSICS_EXPORT const TrimeshSemantics * operator->() const
AGXPHYSICS_EXPORT TrimeshSemantics * operator->()
AGXPHYSICS_EXPORT const TrimeshInstance instance() const
AGXPHYSICS_EXPORT TrimeshPtr(agxData::EntityStorage *storage, agx::Index id)
TrimeshInstance InstanceType
AGXPHYSICS_EXPORT TrimeshInstance instance()
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< TrimeshPtr > TrimeshRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.