21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_BOX_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_BOX_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 )
81 static BoxPtr createInstance();
87 virtual void shutdownCleanup()
override;
97 virtual void configure(agx::TiXmlElement* eEntity)
override;
98 virtual void initAttributeAccessors()
override;
105 #ifndef AGX_PHYSICS_GEOMETRY_BOX_DATA_SET_OVERRIDE
106 #define AGX_PHYSICS_GEOMETRY_BOX_DATA_SET
110 BoxInstance operator[] (
size_t index);
124 virtual ~BoxData() {}
125 virtual void setNumElements(
agx::Index numElements)
override;
128 BoxData& operator= (
const BoxData&) {
return *
this; }
136 class
AGXPHYSICS_EXPORT BoxSemantics : public agx::Physics::Geometry::ShapeSemantics
146 void setHalfExtents(
agx::Vec3 const& value);
151 friend class BoxInstance;
181 const BoxData* getData()
const;
191 #ifdef AGX_GENERATED_TOLUA_WRAPPER
192 inline agx::Vec3 const& getHalfExtents()
const {
return (*this)->getHalfExtents(); }
195 inline void setHalfExtents(
agx::Vec3 const& value) { (*this)->setHalfExtents(value); }
206 class
AGXPHYSICS_EXPORT BoxInstance : public agx::Physics::Geometry::ShapeInstance
216 const BoxData* getData()
const;
238 inline BoxInstance agx::Physics::Geometry::BoxData::operator[] (
size_t index) {
return BoxInstance(
this, (
agx::Index)index); }
245 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
252 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
260 "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\'",
276 AGX_FORCE_INLINE BoxSemantics* BoxPtr::operator->() {
return (BoxSemantics* )
this; }
277 AGX_FORCE_INLINE const BoxSemantics* BoxPtr::operator->()
const {
return (
const BoxSemantics* )
this; }
282 AGX_FORCE_INLINE agx::Vec3 const& BoxPtr::halfExtents()
const { verifyIndex();
return getData()->halfExtents[calculateIndex()]; }
286 AGX_FORCE_INLINE BoxInstance::BoxInstance(BoxData* data,
agx::Index index) : agx::Physics::Geometry::ShapeInstance(data, index) {}
291 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
298 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
307 AGX_FORCE_INLINE agx::Vec3 const& BoxInstance::halfExtents()
const { verifyIndex();
return getData()->halfExtents[getIndex()]; }
318 AGX_TYPE_BINDING(agx::Physics::Geometry::BoxInstance, "Physics.Geometry.BoxInstance")
321 # pragma warning(pop)
324 #undef AGX_ENTITY_WRAPPER
325 #undef AGX_ENTITY_NAMESPACE
agxData::EntityData * getData()
agxData::EntityInstance instance()
Abstract description of the data attributes for the Physics.Geometry.Shape entity.
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.
Pointer to a entity instance of type Physics.Geometry.Box.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
bool isInstanceOf(agxData::EntityModel *model) const
#define AGXPHYSICS_EXPORT
Pointer to a entity instance of type Physics.Geometry.Shape.
Entity instance provides access to a single instance in an EntityStorage.
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
#define AGX_DECLARE_POINTER_TYPES(type)
agx::String fullPath() const
Type-specific Array used for fast access into the data held by a Buffer.
Abstract description of the data attributes for the Physics.Geometry.Box entity.
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
static BoxModel * instance()
static agxData::ScalarAttributeT< agx::Vec3 > * halfExtentsAttribute
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT BoxPtr()
agxData::EntityRef< BoxPtr > BoxRef
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()