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;
256 #ifdef AGX_GENERATED_TOLUA_WRAPPER 258 inline agx::Bool const& getInGroup()
const {
return (*this)->getInGroup(); }
262 inline agx::UInt32 const& getModifiedCount()
const {
return (*this)->getModifiedCount(); }
266 inline void setType(
agx::UInt8 const& value) { (*this)->setType(value); }
267 inline void setInGroup(
agx::Bool const& value) { (*this)->setInGroup(value); }
271 inline void setModifiedCount(
agx::UInt32 const& value) { (*this)->setModifiedCount(value); }
287 ShapeInstance(ShapeData* data,
agx::Index index);
292 ShapeData* getData();
293 const ShapeData* getData()
const;
345 inline ShapeInstance
agx::Physics::Geometry::ShapeData::operator[] (
size_t index) {
return ShapeInstance(
this, (
agx::Index)index); }
352 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
359 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
367 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
376 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
383 AGX_FORCE_INLINE ShapeSemantics* ShapePtr::operator->() {
return (ShapeSemantics* )
this; }
384 AGX_FORCE_INLINE const ShapeSemantics* ShapePtr::operator->()
const {
return (
const ShapeSemantics* )
this; }
392 AGX_FORCE_INLINE agx::Bool const& ShapePtr::inGroup()
const { verifyIndex();
return getData()->inGroup[calculateIndex()]; }
404 AGX_FORCE_INLINE agx::UInt32 const& ShapePtr::modifiedCount()
const { verifyIndex();
return getData()->modifiedCount[calculateIndex()]; }
416 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
423 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
435 AGX_FORCE_INLINE agx::Bool const& ShapeInstance::inGroup()
const { verifyIndex();
return getData()->inGroup[getIndex()]; }
447 AGX_FORCE_INLINE agx::UInt32 const& ShapeInstance::modifiedCount()
const { verifyIndex();
return getData()->modifiedCount[getIndex()]; }
461 AGX_TYPE_BINDING(agx::Physics::Geometry::ShapeInstance,
"Physics.Geometry.ShapeInstance")
464 # pragma warning(pop) 467 #undef AGX_ENTITY_WRAPPER 468 #undef AGX_ENTITY_NAMESPACE AGXCORE_EXPORT Type * getType(const agx::String &name)
agxData::EntityData * getData()
void setModel(agx::Model *model)
Set the object model (handled automatically).
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.
agxCollide namespace consists of a set of classes for handling geometric intersection tests including...
#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
Namespace agx 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)