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; }
144 class
AGXPHYSICS_EXPORT BroadPhasePairSemantics : public agx::Physics::GeometryPairSemantics
162 friend class BroadPhasePairPtr;
163 friend class BroadPhasePairInstance;
164 BroadPhasePairSemantics();
192 BroadPhasePairData* getData();
193 const BroadPhasePairData* getData()
const;
213 #ifdef AGX_GENERATED_TOLUA_WRAPPER
214 inline agx::UInt8 const& getState()
const {
return (*this)->getState(); }
219 inline void setState(
agx::UInt8 const& value) { (*this)->setState(value); }
229 class
AGXPHYSICS_EXPORT BroadPhasePairInstance : public agx::Physics::GeometryPairInstance
232 BroadPhasePairInstance();
233 BroadPhasePairInstance(BroadPhasePairData* data,
agx::Index index);
238 BroadPhasePairData* getData();
239 const BroadPhasePairData* getData()
const;
271 inline BroadPhasePairInstance agx::Physics::BroadPhasePairData::operator[] (
size_t index) {
return BroadPhasePairInstance(
this, (
agx::Index)index); }
278 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
285 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
293 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
302 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
309 AGX_FORCE_INLINE BroadPhasePairSemantics* BroadPhasePairPtr::operator->() {
return (BroadPhasePairSemantics* )
this; }
310 AGX_FORCE_INLINE const BroadPhasePairSemantics* BroadPhasePairPtr::operator->()
const {
return (
const BroadPhasePairSemantics* )
this; }
315 AGX_FORCE_INLINE agx::UInt8 const& BroadPhasePairPtr::state()
const { verifyIndex();
return getData()->state[calculateIndex()]; }
325 AGX_FORCE_INLINE BroadPhasePairInstance::BroadPhasePairInstance(BroadPhasePairData* data,
agx::Index index) : agx::Physics::GeometryPairInstance(data, index) {}
330 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
337 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
346 AGX_FORCE_INLINE agx::UInt8 const& BroadPhasePairInstance::state()
const { verifyIndex();
return getData()->state[getIndex()]; }
362 AGX_TYPE_BINDING(agx::Physics::BroadPhasePairInstance, "Physics.BroadPhasePairInstance")
365 # pragma warning(pop)
368 #undef AGX_ENTITY_WRAPPER
369 #undef AGX_ENTITY_NAMESPACE
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()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
bool isInstanceOf(agxData::EntityModel *model) const
#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)
agx::String fullPath() 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
Abstract description of the data attributes for the Physics.GeometryPair entity.
bool isInstanceOf(agxData::EntityModel *model) const
Abstract description of the data attributes for the Physics.BroadPhasePair entity.
static agxData::ScalarAttributeT< agx::Physics::GeometryContactPtr > * contactAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()