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