21#ifndef GENERATED_AGX_PHYSICS_GEOMETRY_SHAPEGROUP_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_GEOMETRY_SHAPEGROUP_H_PLUGIN
24#define AGX_ENTITY_WRAPPER 1
30# pragma warning( disable : 4505 )
32# pragma warning( disable : 4251 )
34# pragma warning( disable : 4355 )
36# pragma warning( disable: 4714 )
52namespace 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();
222 ShapeGroupInstance();
223 ShapeGroupInstance(ShapeGroupData* data,
agx::Index index);
228 ShapeGroupData* getData();
229 const ShapeGroupData* getData()
const;
261 inline ShapeGroupInstance
agx::Physics::Geometry::ShapeGroupData::operator[] (
size_t index) {
return ShapeGroupInstance(
this, (
agx::Index)index); }
268 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
275 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
283 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
284 EntityPtr::getModel()->fullPath().c_str(), ShapeGroupModel::instance()->fullPath().c_str());
292 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
293 EntityPtr::getModel()->fullPath().c_str(), ShapeGroupModel::instance()->fullPath().c_str());
299 AGX_FORCE_INLINE ShapeGroupSemantics* ShapeGroupPtr::operator->() {
return (ShapeGroupSemantics* )
this; }
300 AGX_FORCE_INLINE const ShapeGroupSemantics* ShapeGroupPtr::operator->()
const {
return (
const ShapeGroupSemantics* )
this; }
315 AGX_FORCE_INLINE ShapeGroupInstance::ShapeGroupInstance(ShapeGroupData* data,
agx::Index index) :
agx::Physics::Geometry::ShapeInstance(data, index) {}
320 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
327 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
353AGX_TYPE_BINDING(
agx::Physics::Geometry::ShapeGroupInstance, "Physics.Geometry.ShapeGroupInstance")
359#undef AGX_ENTITY_WRAPPER
360#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...
EntityPtr & operator=(const EntityPtr &other)=default
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
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 ShapeGroupPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::EntityStorage * defaultStorage()
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")
static ShapeGroupModel * instance()
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
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 agx::Vector< agx::AffineMatrix4x4 > const & childTransforms() const
AGXPHYSICS_EXPORT ShapeGroupPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT const ShapeGroupSemantics * operator->() const
ShapeGroupData * getData()
AGXPHYSICS_EXPORT ShapeGroupPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::UInt const & tag() const
AGXPHYSICS_EXPORT ShapeGroupInstance instance()
AGXPHYSICS_EXPORT agx::Vector< agx::Physics::Geometry::ShapePtr > & childShapes()
AGXPHYSICS_EXPORT ShapeGroupSemantics * operator->()
ShapeGroupModel ModelType
AGXPHYSICS_EXPORT agx::Vector< agx::AffineMatrix4x4 > & childTransforms()
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 agx::Vector< agx::Physics::Geometry::ShapePtr > const & childShapes() const
const ShapeGroupData * getData() 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.