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; }
159 friend class RenderBoxPtr;
160 friend class RenderBoxInstance;
161 RenderBoxSemantics();
189 RenderBoxData* getData();
190 const RenderBoxData* getData()
const;
210 #ifdef AGX_GENERATED_TOLUA_WRAPPER
230 RenderBoxInstance(RenderBoxData* data,
agx::Index index);
235 RenderBoxData* getData();
236 const RenderBoxData* getData()
const;
268 inline RenderBoxInstance agx::Physics::Geometry::RenderBoxData::operator[] (
size_t index) {
return RenderBoxInstance(
this, (
agx::Index)index); }
275 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
282 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
290 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
299 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
306 AGX_FORCE_INLINE RenderBoxSemantics* RenderBoxPtr::operator->() {
return (RenderBoxSemantics* )
this; }
307 AGX_FORCE_INLINE const RenderBoxSemantics* RenderBoxPtr::operator->()
const {
return (
const RenderBoxSemantics* )
this; }
322 AGX_FORCE_INLINE RenderBoxInstance::RenderBoxInstance(RenderBoxData* data,
agx::Index index) : agxData::EntityInstance(data, index) {}
327 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
334 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
360 AGX_TYPE_BINDING(agx::Physics::Geometry::RenderBoxInstance, "Physics.Geometry.RenderBoxInstance")
363 # pragma warning(pop)
366 #undef AGX_ENTITY_WRAPPER
367 #undef AGX_ENTITY_NAMESPACE
agxData::EntityData * getData()
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()
#define AGX_TYPE_BINDING(_Type, _Name)
Pointer to a entity instance of type Physics.Geometry.RenderBox.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
bool isInstanceOf(agxData::EntityModel *model) const
#define AGXPHYSICS_EXPORT
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)
void AGXPHYSICS_EXPORT renderBox(const agx::AffineMatrix4x4 &transform, const agx::Vec3 &halfLengths, const agx::Vec4 &color=agx::Vec4(1))
agx::String fullPath() const
static agxData::ScalarAttributeT< agxGL::RenderBoxVertices > * verticesAttribute
Type-specific Array used for fast access into the data held by a Buffer.
AGXPHYSICS_EXPORT RenderBoxPtr()
static RenderBoxModel * instance()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
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
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()