21 #ifndef GENERATED_AGX_PHYSICS_BROADPHASEPAIR_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_BROADPHASEPAIR_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 {
class GeometryContactPtr; }}
53 namespace agx {
namespace Physics {
class WarmStartingDataPtr; }}
60 class BroadPhasePairModel;
61 class BroadPhasePairData;
62 class BroadPhasePairPtr;
63 class BroadPhasePairInstance;
64 class BroadPhasePairSemantics;
89 virtual void shutdownCleanup()
override;
101 virtual void configure(agx::TiXmlElement* eEntity)
override;
102 virtual void initAttributeAccessors()
override;
109 #ifndef AGX_PHYSICS_BROADPHASEPAIR_DATA_SET_OVERRIDE 110 #define AGX_PHYSICS_BROADPHASEPAIR_DATA_SET 111 class AGXPHYSICS_EXPORT BroadPhasePairData :
public agx::Physics::GeometryPairData
114 BroadPhasePairInstance operator[] (
size_t index);
129 BroadPhasePairData();
132 virtual ~BroadPhasePairData() {}
133 virtual void setNumElements(
agx::Index numElements)
override;
136 BroadPhasePairData& operator= (
const BroadPhasePairData&) {
return *
this; }
163 friend class BroadPhasePairInstance;
164 BroadPhasePairSemantics();
192 BroadPhasePairData* getData();
193 const BroadPhasePairData* getData()
const;
218 BroadPhasePairInstance();
219 BroadPhasePairInstance(BroadPhasePairData* data,
agx::Index index);
224 BroadPhasePairData* getData();
225 const BroadPhasePairData* getData()
const;
257 inline BroadPhasePairInstance
agx::Physics::BroadPhasePairData::operator[] (
size_t index) {
return BroadPhasePairInstance(
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\'",
311 AGX_FORCE_INLINE BroadPhasePairInstance::BroadPhasePairInstance(BroadPhasePairData* data,
agx::Index index) : agx::Physics::GeometryPairInstance(data, index) {}
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\'",
332 AGX_FORCE_INLINE agx::UInt8 const& BroadPhasePairInstance::state()
const { verifyIndex();
return getData()->state[getIndex()]; }
348 AGX_TYPE_BINDING(agx::Physics::BroadPhasePairInstance,
"Physics.BroadPhasePairInstance")
351 # pragma warning(pop) 354 #undef AGX_ENTITY_WRAPPER 355 #undef AGX_ENTITY_NAMESPACE AGXPHYSICS_EXPORT BroadPhasePairPtr & operator=(const agxData::EntityPtr &ptr)
agxData::EntityData * getData()
AGXPHYSICS_EXPORT BroadPhasePairPtr()
static agxData::ArrayAttributeT< agx::Physics::WarmStartingDataPtr > * warmStartingDataAttribute
agxData::EntityInstance instance()
static BroadPhasePairModel * instance()
BroadPhasePairModel ModelType
Data storage for a collection of entity instances of a specified EntityModel.
Pointer to a entity instance of type Physics.BroadPhasePair.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
AGXPHYSICS_EXPORT agxData::Array< agx::Physics::WarmStartingDataPtr > & warmStartingData()
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...
AGXPHYSICS_EXPORT BroadPhasePairInstance instance()
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::UInt8 > * stateAttribute
Type-specific Array used for fast access into the data held by a Buffer.
BroadPhasePairInstance InstanceType
Pointer to a entity instance of type Physics.GeometryPair.
BroadPhasePairData DataType
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.
BroadPhasePairData * getData()
AGXPHYSICS_EXPORT agx::UInt8 & state()
Abstract description of the data attributes for the Physics.GeometryPair entity.
AGXPHYSICS_EXPORT agx::Physics::GeometryContactPtr & contact()
bool isInstanceOf(agxData::EntityModel *model) const
Abstract description of the data attributes for the Physics.BroadPhasePair entity.
AGXPHYSICS_EXPORT BroadPhasePairSemantics * operator->()
static agxData::ScalarAttributeT< agx::Physics::GeometryContactPtr > * contactAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()