21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_RENDERBOX_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_GEOMETRY_RENDERBOX_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 ) 60 class RenderBoxInstance;
61 class RenderBoxSemantics;
86 virtual void shutdownCleanup()
override;
98 virtual void configure(agx::TiXmlElement* eEntity)
override;
99 virtual void initAttributeAccessors()
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; }
160 friend class RenderBoxInstance;
161 RenderBoxSemantics();
189 RenderBoxData* getData();
190 const RenderBoxData* getData()
const;
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\'",
285 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
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\'",
346 AGX_TYPE_BINDING(agx::Physics::Geometry::RenderBoxInstance,
"Physics.Geometry.RenderBoxInstance")
349 # pragma warning(pop) 352 #undef AGX_ENTITY_WRAPPER 353 #undef AGX_ENTITY_NAMESPACE AGXPHYSICS_EXPORT agxGL::RenderBoxVertices & vertices()
agxData::EntityData * getData()
AGXPHYSICS_EXPORT RenderBoxSemantics * operator->()
agxData::EntityInstance instance()
Abstract description of the data attributes for the Physics.Geometry.RenderBox entity.
Data storage for a collection of entity instances of a specified EntityModel.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
#define AGX_TYPE_BINDING(_Type, _Name)
Pointer to a entity instance of type Physics.Geometry.RenderBox.
AGXPHYSICS_EXPORT agxGL::RenderBoxOutlines & outlines()
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
#define AGXPHYSICS_EXPORT
Entity instance provides access to a single instance in an EntityStorage.
RenderBoxData * getData()
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
#define AGX_DECLARE_POINTER_TYPES(type)
void AGXPHYSICS_EXPORT renderBox(const agx::AffineMatrix4x4 &transform, const agx::Vec3 &halfLengths, const agx::Vec4 &color=agx::Vec4(1))
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT RenderBoxPtr & operator=(const agxData::EntityPtr &ptr)
static agxData::ScalarAttributeT< agxGL::RenderBoxVertices > * verticesAttribute
Type-specific Array used for fast access into the data held by a Buffer.
AGXPHYSICS_EXPORT RenderBoxInstance instance()
AGXPHYSICS_EXPORT RenderBoxPtr()
static RenderBoxModel * instance()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Contains classes for low level data storage for AGX.
static agxData::ScalarAttributeT< agxGL::RenderBoxNormals > * normalsAttribute
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
RenderBoxInstance InstanceType
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agxGL::RenderBoxOutlines > * outlinesAttribute
AGXPHYSICS_EXPORT agxGL::RenderBoxNormals & normals()
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()