21 #ifndef GENERATED_AGX_PHYSICS_GRANULARBODY_CACHEDGRANULARCONTACT_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_GRANULARBODY_CACHEDGRANULARCONTACT_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 ) 56 namespace GranularBody
59 class CachedGranularContactModel;
60 class CachedGranularContactData;
61 class CachedGranularContactPtr;
62 class CachedGranularContactInstance;
63 class CachedGranularContactSemantics;
88 virtual void shutdownCleanup()
override;
102 virtual void configure(agx::TiXmlElement* eEntity)
override;
103 virtual void initAttributeAccessors()
override;
110 #ifndef AGX_PHYSICS_GRANULARBODY_CACHEDGRANULARCONTACT_DATA_SET_OVERRIDE 111 #define AGX_PHYSICS_GRANULARBODY_CACHEDGRANULARCONTACT_DATA_SET 115 CachedGranularContactInstance operator[] (
size_t index);
134 CachedGranularContactData();
137 virtual ~CachedGranularContactData() {}
138 virtual void setNumElements(
agx::Index numElements)
override;
141 CachedGranularContactData& operator= (
const CachedGranularContactData&) {
return *
this; }
158 agx::Bool const& getShouldWarmStart()
const;
164 void setDuplicate(
agx::Bool const& value);
166 void setContactNormal(
agx::Vec3f const& value);
167 void setShouldWarmStart(
agx::Bool const& value);
172 friend class CachedGranularContactInstance;
173 CachedGranularContactSemantics();
201 CachedGranularContactData* getData();
202 const CachedGranularContactData* getData()
const;
237 CachedGranularContactInstance();
238 CachedGranularContactInstance(CachedGranularContactData* data,
agx::Index index);
243 CachedGranularContactData* getData();
244 const CachedGranularContactData* getData()
const;
270 agx::Bool const& shouldWarmStart()
const;
286 inline CachedGranularContactInstance
agx::Physics::GranularBody::CachedGranularContactData::operator[] (
size_t index) {
return CachedGranularContactInstance(
this, (
agx::Index)index); }
293 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
300 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
308 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
317 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
345 AGX_FORCE_INLINE CachedGranularContactInstance::CachedGranularContactInstance() {}
351 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
358 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
367 AGX_FORCE_INLINE agx::Bool const& CachedGranularContactInstance::keep()
const { verifyIndex();
return getData()->keep[getIndex()]; }
369 AGX_FORCE_INLINE agx::Bool& CachedGranularContactInstance::duplicate() { verifyIndex();
return getData()->duplicate[getIndex()]; }
370 AGX_FORCE_INLINE agx::Bool const& CachedGranularContactInstance::duplicate()
const { verifyIndex();
return getData()->duplicate[getIndex()]; }
375 AGX_FORCE_INLINE agx::Vec3f& CachedGranularContactInstance::contactNormal() { verifyIndex();
return getData()->contactNormal[getIndex()]; }
376 AGX_FORCE_INLINE agx::Vec3f const& CachedGranularContactInstance::contactNormal()
const { verifyIndex();
return getData()->contactNormal[getIndex()]; }
378 AGX_FORCE_INLINE agx::Bool& CachedGranularContactInstance::shouldWarmStart() { verifyIndex();
return getData()->shouldWarmStart[getIndex()]; }
379 AGX_FORCE_INLINE agx::Bool const& CachedGranularContactInstance::shouldWarmStart()
const { verifyIndex();
return getData()->shouldWarmStart[getIndex()]; }
382 AGX_FORCE_INLINE CachedGranularContactSemantics::CachedGranularContactSemantics() {}
390 AGX_TYPE_BINDING(agx::Physics::GranularBody::CachedGranularContactInstance,
"Physics.GranularBody.CachedGranularContactInstance")
393 # pragma warning(pop) 396 #undef AGX_ENTITY_WRAPPER 397 #undef AGX_ENTITY_NAMESPACE static agxData::ScalarAttributeT< agx::Bool > * keepAttribute
agxData::EntityData * getData()
CachedGranularContactModel ModelType
CachedGranularContactInstance InstanceType
agxData::EntityInstance instance()
AGXPHYSICS_EXPORT agx::Bool & shouldWarmStart()
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())
static agxData::ScalarAttributeT< agx::Bool > * duplicateAttribute
#define AGXPHYSICS_EXPORT
CachedGranularContactData * getData()
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...
AGXPHYSICS_EXPORT CachedGranularContactPtr & operator=(const agxData::EntityPtr &ptr)
#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.
AGXPHYSICS_EXPORT CachedGranularContactSemantics * operator->()
static agxData::ScalarAttributeT< agx::Physics::GranularBody::ContactLambda > * contactLambdasAttribute
AGXPHYSICS_EXPORT agx::Vec3f & contactNormal()
Abstract description of the data attributes for the Physics.GranularBody.CachedGranularContact entity...
Vector containing 'raw' data.
AGXPHYSICS_EXPORT agx::Bool & keep()
EntityPtr & operator=(const EntityPtr &other)=default
CachedGranularContactData DataType
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
static agxData::ScalarAttributeT< agx::Bool > * shouldWarmStartAttribute
AGXPHYSICS_EXPORT CachedGranularContactInstance instance()
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...
static agxData::ScalarAttributeT< agx::Vec3f > * contactNormalAttribute
bool isInstanceOf(agxData::EntityModel *model) const
Pointer to a entity instance of type Physics.GranularBody.CachedGranularContact.
AGXPHYSICS_EXPORT agx::Physics::GranularBody::ContactLambda & contactLambdas()
static CachedGranularContactModel * instance()
AGXPHYSICS_EXPORT CachedGranularContactPtr()
AGXPHYSICS_EXPORT agx::Bool & duplicate()
#define DOXYGEN_END_INTERNAL_BLOCK()
CachedGranularContactPtr PtrT
#define DOXYGEN_START_INTERNAL_BLOCK()