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;
102 virtual void configure(agx::TiXmlElement* eEntity)
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; }
163 friend class ShapeGroupPtr;
164 friend class ShapeGroupInstance;
165 ShapeGroupSemantics();
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); }
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
#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()
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
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.
agx::String fullPath() const
Abstract description of the data attributes for the Physics.Geometry.ShapeGroup entity.
static agxData::ScalarAttributeT< agx::Vector< agx::Physics::Geometry::ShapePtr > > * childShapesAttribute
static agxData::EntityStorage * defaultStorage()
static ShapeGroupPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
virtual void configure(agx::TiXmlElement *eEntity) override
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::ScalarAttributeT< agx::Vector< agx::AffineMatrix4x4 > > * childTransformsAttribute
virtual ~ShapeGroupModel()
void construct(agx::Physics::Geometry::ShapeGroupPtr shapeGroup)
ShapeGroupModel(const agx::String &name="ShapeGroup")
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
static ShapeGroupModel * instance()
virtual void construct(agxData::EntityPtr instance) override
virtual void initAttributeAccessors() override
static agxData::ScalarAttributeT< agx::UInt > * tagAttribute
Pointer to a entity instance of type Physics.Geometry.ShapeGroup.
AGXPHYSICS_EXPORT ShapeGroupPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT agx::Vector< agx::Physics::Geometry::ShapePtr > & childShapes()
AGXPHYSICS_EXPORT ShapeGroupPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Vector< agx::AffineMatrix4x4 > & childTransforms()
AGXPHYSICS_EXPORT agx::Vector< agx::Physics::Geometry::ShapePtr > const & childShapes() const
AGXPHYSICS_EXPORT agx::Vector< agx::AffineMatrix4x4 > const & childTransforms() const
AGXPHYSICS_EXPORT ShapeGroupInstance instance()
ShapeGroupModel ModelType
const ShapeGroupData * getData() const
ShapeGroupData * getData()
ShapeGroupInstance InstanceType
AGXPHYSICS_EXPORT const ShapeGroupInstance instance() const
AGXPHYSICS_EXPORT ShapeGroupPtr()
AGXPHYSICS_EXPORT ShapeGroupPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT agx::UInt & tag()
AGXPHYSICS_EXPORT ShapeGroupSemantics * operator->()
AGXPHYSICS_EXPORT agx::UInt const & tag() const
AGXPHYSICS_EXPORT const ShapeGroupSemantics * operator->() const
Abstract description of the data attributes for the Physics.Geometry.Shape entity.
Pointer to a entity instance of type Physics.Geometry.Shape.
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.
agxData::EntityRef< ShapeGroupPtr > ShapeGroupRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())