21#ifndef GENERATED_AGX_PHYSICS_GEOMETRY_RENDERBOX_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_GEOMETRY_RENDERBOX_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 RenderBoxInstance;
61 class RenderBoxSemantics;
98 virtual void configure(agx::TiXmlElement* eEntity)
override;
106 #ifndef AGX_PHYSICS_GEOMETRY_RENDERBOX_DATA_SET_OVERRIDE
107 #define AGX_PHYSICS_GEOMETRY_RENDERBOX_DATA_SET
111 RenderBoxInstance operator[] (
size_t index);
129 virtual ~RenderBoxData() {}
130 virtual void setNumElements(
agx::Index numElements)
override;
133 RenderBoxData& operator= (
const RenderBoxData&) {
return *
this; }
159 friend class RenderBoxPtr;
160 friend class RenderBoxInstance;
161 RenderBoxSemantics();
216 RenderBoxInstance(RenderBoxData* data,
agx::Index index);
221 RenderBoxData* getData();
222 const RenderBoxData* getData()
const;
254 inline RenderBoxInstance
agx::Physics::Geometry::RenderBoxData::operator[] (
size_t index) {
return RenderBoxInstance(
this, (
agx::Index)index); }
261 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
268 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
276 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
277 EntityPtr::getModel()->fullPath().c_str(), RenderBoxModel::instance()->fullPath().c_str());
285 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
286 EntityPtr::getModel()->fullPath().c_str(), RenderBoxModel::instance()->fullPath().c_str());
292 AGX_FORCE_INLINE RenderBoxSemantics* RenderBoxPtr::operator->() {
return (RenderBoxSemantics* )
this; }
293 AGX_FORCE_INLINE const RenderBoxSemantics* RenderBoxPtr::operator->()
const {
return (
const RenderBoxSemantics* )
this; }
313 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
320 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
346AGX_TYPE_BINDING(
agx::Physics::Geometry::RenderBoxInstance, "Physics.Geometry.RenderBoxInstance")
352#undef AGX_ENTITY_WRAPPER
353#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()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
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()
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.RenderBox entity.
RenderBoxModel(const agx::String &name="RenderBox")
virtual void initAttributeAccessors() override
static agxData::ScalarAttributeT< agxGL::RenderBoxNormals > * normalsAttribute
void construct(agx::Physics::Geometry::RenderBoxPtr renderBox)
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
static agxData::ScalarAttributeT< agxGL::RenderBoxVertices > * verticesAttribute
static agxData::EntityStorage * defaultStorage()
virtual void construct(agxData::EntityPtr instance) override
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::ScalarAttributeT< agxGL::RenderBoxOutlines > * outlinesAttribute
virtual ~RenderBoxModel()
virtual void configure(agx::TiXmlElement *eEntity) override
static RenderBoxModel * instance()
static RenderBoxPtr 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.RenderBox.
AGXPHYSICS_EXPORT const RenderBoxSemantics * operator->() const
AGXPHYSICS_EXPORT RenderBoxInstance instance()
RenderBoxInstance InstanceType
AGXPHYSICS_EXPORT agxGL::RenderBoxOutlines const & outlines() const
AGXPHYSICS_EXPORT agxGL::RenderBoxOutlines & outlines()
AGXPHYSICS_EXPORT RenderBoxPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT RenderBoxPtr()
AGXPHYSICS_EXPORT agxGL::RenderBoxVertices const & vertices() const
AGXPHYSICS_EXPORT agxGL::RenderBoxNormals const & normals() const
RenderBoxData * getData()
AGXPHYSICS_EXPORT RenderBoxSemantics * operator->()
AGXPHYSICS_EXPORT RenderBoxPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT agxGL::RenderBoxNormals & normals()
AGXPHYSICS_EXPORT RenderBoxPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT agxGL::RenderBoxVertices & vertices()
const RenderBoxData * getData() const
AGXPHYSICS_EXPORT const RenderBoxInstance instance() const
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.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.