21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_SHAPEGROUP_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GEOMETRY_SHAPEGROUP_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 )
52 namespace agx {
namespace Physics {
namespace Geometry {
class ShapePtr; }}}
61 class ShapeGroupModel;
64 class ShapeGroupInstance;
65 class ShapeGroupSemantics;
90 virtual void shutdownCleanup()
override;
102 virtual void configure(agx::TiXmlElement* eEntity)
override;
103 virtual void initAttributeAccessors()
override;
110 #ifndef AGX_PHYSICS_GEOMETRY_SHAPEGROUP_DATA_SET_OVERRIDE
111 #define AGX_PHYSICS_GEOMETRY_SHAPEGROUP_DATA_SET
112 class AGXPHYSICS_EXPORT ShapeGroupData :
public agx::Physics::Geometry::ShapeData
115 ShapeGroupInstance operator[] (
size_t index);
133 virtual ~ShapeGroupData() {}
134 virtual void setNumElements(
agx::Index numElements)
override;
137 ShapeGroupData& operator= (
const ShapeGroupData&) {
return *
this; }
145 class
AGXPHYSICS_EXPORT ShapeGroupSemantics : public agx::Physics::Geometry::ShapeSemantics
163 friend class ShapeGroupPtr;
164 friend class ShapeGroupInstance;
165 ShapeGroupSemantics();
193 ShapeGroupData* getData();
194 const ShapeGroupData* getData()
const;
214 #ifdef AGX_GENERATED_TOLUA_WRAPPER
215 inline agx::UInt const& getTag()
const {
return (*this)->getTag(); }
220 inline void setTag(
agx::UInt const& value) { (*this)->setTag(value); }
233 class
AGXPHYSICS_EXPORT ShapeGroupInstance : public agx::Physics::Geometry::ShapeInstance
236 ShapeGroupInstance();
237 ShapeGroupInstance(ShapeGroupData* data,
agx::Index index);
242 ShapeGroupData* getData();
243 const ShapeGroupData* getData()
const;
275 inline ShapeGroupInstance agx::Physics::Geometry::ShapeGroupData::operator[] (
size_t index) {
return ShapeGroupInstance(
this, (
agx::Index)index); }
282 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
289 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
297 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
306 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
313 AGX_FORCE_INLINE ShapeGroupSemantics* ShapeGroupPtr::operator->() {
return (ShapeGroupSemantics* )
this; }
314 AGX_FORCE_INLINE const ShapeGroupSemantics* ShapeGroupPtr::operator->()
const {
return (
const ShapeGroupSemantics* )
this; }
329 AGX_FORCE_INLINE ShapeGroupInstance::ShapeGroupInstance(ShapeGroupData* data,
agx::Index index) : agx::Physics::Geometry::ShapeInstance(data, index) {}
334 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
341 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
367 AGX_TYPE_BINDING(agx::Physics::Geometry::ShapeGroupInstance, "Physics.Geometry.ShapeGroupInstance")
370 # pragma warning(pop)
373 #undef AGX_ENTITY_WRAPPER
374 #undef AGX_ENTITY_NAMESPACE
static ShapeGroupModel * instance()
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.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
ShapeGroupInstance InstanceType
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityRef< ShapeGroupPtr > ShapeGroupRef
Abstract description of the data attributes for the Physics.Geometry.ShapeGroup entity.
#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.
AGXPHYSICS_EXPORT ShapeGroupPtr()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
static agxData::ScalarAttributeT< agx::UInt > * tagAttribute
ShapeGroupModel ModelType
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::Vector< agx::AffineMatrix4x4 > > * childTransformsAttribute
static agxData::ScalarAttributeT< agx::Vector< agx::Physics::Geometry::ShapePtr > > * childShapesAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Pointer to a entity instance of type Physics.Geometry.ShapeGroup.