21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_SHAPE_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_GEOMETRY_SHAPE_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 ) 54 namespace agx {
namespace Physics {
class GeometryPtr; }}
92 virtual void shutdownCleanup()
override;
108 virtual void configure(agx::TiXmlElement* eEntity)
override;
109 virtual void initAttributeAccessors()
override;
116 #ifndef AGX_PHYSICS_GEOMETRY_SHAPE_DATA_SET_OVERRIDE 117 #define AGX_PHYSICS_GEOMETRY_SHAPE_DATA_SET 121 ShapeInstance operator[] (
size_t index);
147 virtual ~ShapeData() {}
148 virtual void setNumElements(
agx::Index numElements)
override;
151 ShapeData& operator= (
const ShapeData&) {
return *
this; }
186 friend class ShapeInstance;
215 ShapeData* getData();
216 const ShapeData* getData()
const;
265 ShapeInstance(ShapeData* data,
agx::Index index);
270 ShapeData* getData();
271 const ShapeData* getData()
const;
323 inline ShapeInstance
agx::Physics::Geometry::ShapeData::operator[] (
size_t index) {
return ShapeInstance(
this, (
agx::Index)index); }
330 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
337 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
345 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
354 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
361 AGX_FORCE_INLINE ShapeSemantics* ShapePtr::operator->() {
return (ShapeSemantics* )
this; }
362 AGX_FORCE_INLINE const ShapeSemantics* ShapePtr::operator->()
const {
return (
const ShapeSemantics* )
this; }
370 AGX_FORCE_INLINE agx::Bool const& ShapePtr::inGroup()
const { verifyIndex();
return getData()->inGroup[calculateIndex()]; }
382 AGX_FORCE_INLINE agx::UInt32 const& ShapePtr::modifiedCount()
const { verifyIndex();
return getData()->modifiedCount[calculateIndex()]; }
394 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
401 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
413 AGX_FORCE_INLINE agx::Bool const& ShapeInstance::inGroup()
const { verifyIndex();
return getData()->inGroup[getIndex()]; }
425 AGX_FORCE_INLINE agx::UInt32 const& ShapeInstance::modifiedCount()
const { verifyIndex();
return getData()->modifiedCount[getIndex()]; }
439 AGX_TYPE_BINDING(agx::Physics::Geometry::ShapeInstance,
"Physics.Geometry.ShapeInstance")
442 # pragma warning(pop) 445 #undef AGX_ENTITY_WRAPPER 446 #undef AGX_ENTITY_NAMESPACE AGXCORE_EXPORT Type * getType(const agx::String &name)
agxData::EntityData * getData()
agxData::EntityInstance instance()
ShapeInstance InstanceType
Abstract description of the data attributes for the Physics.Geometry.Shape entity.
Data storage for a collection of entity instances of a specified EntityModel.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
#define AGXPHYSICS_EXPORT
Pointer to a entity instance of type Physics.Geometry.Shape.
Entity instance provides access to a single instance in an EntityStorage.
static agxData::ScalarAttributeT< agx::Bool > * inGroupAttribute
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
bool isInstanceOf(agxData::EntityModel *model) const
Type-specific Array used for fast access into the data held by a Buffer.
static agxData::ScalarAttributeT< agxCollide::BoundingAABB > * boundingAABBAttribute
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
static agxData::PointerAttributeT< agxCollide::Shape * > * modelAttribute
Pointer to a entity instance of type Physics.Geometry.
Contains classes for low level data storage for AGX.
static agxData::ScalarAttributeT< agx::Physics::GeometryPtr > * geometryAttribute
Abstract description of the data attributes for the Referenced entity.
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::UInt8 > * typeAttribute
Pointer to a entity instance of type Referenced.
static agxData::ScalarAttributeT< agx::UInt32 > * modifiedCountAttribute
Axis aligned bounding box implementation.
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * transformAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
agx::ref_ptr< Shape > ShapeRef
#define DOXYGEN_START_INTERNAL_BLOCK()
AGX_DECLARE_POINTER_TYPES(SpaceListener)