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;
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();
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; }
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
#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...
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
EntityPtr & operator=(const EntityPtr &other)=default
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.
static agxData::EntityStorage * defaultStorage()
static RenderBoxModel * instance()
RenderBoxModel(const agx::String &name="RenderBox")
virtual void initAttributeAccessors() override
static agxData::ScalarAttributeT< agxGL::RenderBoxNormals > * normalsAttribute
void construct(agx::Physics::Geometry::RenderBoxPtr renderBox)
static agxData::ScalarAttributeT< agxGL::RenderBoxVertices > * verticesAttribute
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 agxData::EntityData * createData(agxData::EntityStorage *storage) override
virtual void configure(agx::TiXmlElement *eEntity) override
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 RenderBoxInstance instance()
RenderBoxInstance InstanceType
AGXPHYSICS_EXPORT RenderBoxPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agxGL::RenderBoxNormals & normals()
AGXPHYSICS_EXPORT agxGL::RenderBoxOutlines const & outlines() const
AGXPHYSICS_EXPORT const RenderBoxSemantics * operator->() const
RenderBoxData * getData()
AGXPHYSICS_EXPORT RenderBoxPtr()
const RenderBoxData * getData() const
AGXPHYSICS_EXPORT RenderBoxPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT agxGL::RenderBoxNormals const & normals() const
AGXPHYSICS_EXPORT agxGL::RenderBoxOutlines & outlines()
AGXPHYSICS_EXPORT RenderBoxPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT agxGL::RenderBoxVertices const & vertices() const
AGXPHYSICS_EXPORT RenderBoxSemantics * operator->()
AGXPHYSICS_EXPORT agxGL::RenderBoxVertices & vertices()
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.
void AGXPHYSICS_EXPORT renderBox(const agx::AffineMatrix4x4 &transform, const agx::Vec3 &halfLengths, const agx::Vec4 &color=agx::Vec4(1))
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())