21 #ifndef GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CONTACTZONEDEPENDENCY_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CONTACTZONEDEPENDENCY_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 ) 49 namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class ContactZoneInstance; }}}
50 namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class ContactZoneInstance; }}}
51 namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class ContactZoneDependencyPtr; }}}
57 namespace HierarchicalGrid
60 class ContactZoneDependencyModel;
61 class ContactZoneDependencyData;
62 class ContactZoneDependencyPtr;
63 class ContactZoneDependencyInstance;
64 class ContactZoneDependencySemantics;
89 virtual void shutdownCleanup()
override;
101 virtual void configure(agx::TiXmlElement* eEntity)
override;
102 virtual void initAttributeAccessors()
override;
109 #ifndef AGX_PHYSICS_HIERARCHICALGRID_CONTACTZONEDEPENDENCY_DATA_SET_OVERRIDE 110 #define AGX_PHYSICS_HIERARCHICALGRID_CONTACTZONEDEPENDENCY_DATA_SET 114 ContactZoneDependencyInstance operator[] (
size_t index);
123 typedef agx::Physics::HierarchicalGrid::ContactZoneInstance parentType;
124 typedef agx::Physics::HierarchicalGrid::ContactZoneInstance childType;
129 ContactZoneDependencyData();
132 virtual ~ContactZoneDependencyData() {}
133 virtual void setNumElements(
agx::Index numElements)
override;
136 ContactZoneDependencyData& operator= (
const ContactZoneDependencyData&) {
return *
this; }
149 agx::Physics::HierarchicalGrid::ContactZoneInstance
const& getParent()
const;
150 agx::Physics::HierarchicalGrid::ContactZoneInstance
const& getChild()
const;
156 void setParent(agx::Physics::HierarchicalGrid::ContactZoneInstance
const& value);
157 void setChild(agx::Physics::HierarchicalGrid::ContactZoneInstance
const& value);
163 friend class ContactZoneDependencyInstance;
164 ContactZoneDependencySemantics();
192 ContactZoneDependencyData* getData();
193 const ContactZoneDependencyData* getData()
const;
199 AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZoneInstance
const& parent()
const;
204 AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZoneInstance
const& child()
const;
218 ContactZoneDependencyInstance();
219 ContactZoneDependencyInstance(ContactZoneDependencyData* data,
agx::Index index);
224 ContactZoneDependencyData* getData();
225 const ContactZoneDependencyData* getData()
const;
229 agx::Physics::HierarchicalGrid::ContactZoneInstance& parent();
231 agx::Physics::HierarchicalGrid::ContactZoneInstance
const& parent()
const;
234 agx::Physics::HierarchicalGrid::ContactZoneInstance& child();
236 agx::Physics::HierarchicalGrid::ContactZoneInstance
const& child()
const;
257 inline ContactZoneDependencyInstance
agx::Physics::HierarchicalGrid::ContactZoneDependencyData::operator[] (
size_t index) {
return ContactZoneDependencyInstance(
this, (
agx::Index)index); }
264 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
271 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
279 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
288 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
310 AGX_FORCE_INLINE ContactZoneDependencyInstance::ContactZoneDependencyInstance() {}
316 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
323 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
331 AGX_FORCE_INLINE agx::Physics::HierarchicalGrid::ContactZoneInstance& ContactZoneDependencyInstance::parent() { verifyIndex();
return getData()->parent[getIndex()]; }
332 AGX_FORCE_INLINE agx::Physics::HierarchicalGrid::ContactZoneInstance
const& ContactZoneDependencyInstance::parent()
const { verifyIndex();
return getData()->parent[getIndex()]; }
334 AGX_FORCE_INLINE agx::Physics::HierarchicalGrid::ContactZoneInstance& ContactZoneDependencyInstance::child() { verifyIndex();
return getData()->child[getIndex()]; }
335 AGX_FORCE_INLINE agx::Physics::HierarchicalGrid::ContactZoneInstance
const& ContactZoneDependencyInstance::child()
const { verifyIndex();
return getData()->child[getIndex()]; }
341 AGX_FORCE_INLINE ContactZoneDependencySemantics::ContactZoneDependencySemantics() {}
349 AGX_TYPE_BINDING(agx::Physics::HierarchicalGrid::ContactZoneDependencyInstance,
"Physics.HierarchicalGrid.ContactZoneDependencyInstance")
352 # pragma warning(pop) 355 #undef AGX_ENTITY_WRAPPER 356 #undef AGX_ENTITY_NAMESPACE
agxData::EntityData * getData()
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
#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)
bool isInstanceOf(agxData::EntityModel *model) const
Type-specific Array used for fast access into the data held by a Buffer.
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Contains classes for low level data storage for AGX.
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
bool isInstanceOf(agxData::EntityModel *model) const
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()