21 #ifndef GENERATED_AGX_PHYSICS_BINARYCONSTRAINT_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_BINARYCONSTRAINT_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 class BinaryConstraintModel;
57 class BinaryConstraintData;
58 class BinaryConstraintPtr;
59 class BinaryConstraintInstance;
60 class BinaryConstraintSemantics;
85 virtual void shutdownCleanup()
override;
96 virtual void configure(agx::TiXmlElement* eEntity)
override;
97 virtual void initAttributeAccessors()
override;
104 #ifndef AGX_PHYSICS_BINARYCONSTRAINT_DATA_SET_OVERRIDE 105 #define AGX_PHYSICS_BINARYCONSTRAINT_DATA_SET 106 class AGXPHYSICS_EXPORT BinaryConstraintData :
public agx::Physics::ConstraintBaseData
109 BinaryConstraintInstance operator[] (
size_t index);
122 BinaryConstraintData();
125 virtual ~BinaryConstraintData() {}
126 virtual void setNumElements(
agx::Index numElements)
override;
129 BinaryConstraintData& operator= (
const BinaryConstraintData&) {
return *
this; }
137 class
AGXPHYSICS_EXPORT BinaryConstraintSemantics : public
agx::Physics::ConstraintBaseSemantics
154 friend class BinaryConstraintInstance;
155 BinaryConstraintSemantics();
183 BinaryConstraintData* getData();
184 const BinaryConstraintData* getData()
const;
204 BinaryConstraintInstance();
205 BinaryConstraintInstance(BinaryConstraintData* data,
agx::Index index);
210 BinaryConstraintData* getData();
211 const BinaryConstraintData* getData()
const;
238 inline BinaryConstraintInstance
agx::Physics::BinaryConstraintData::operator[] (
size_t index) {
return BinaryConstraintInstance(
this, (
agx::Index)index); }
245 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
252 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
260 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
269 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
289 AGX_FORCE_INLINE BinaryConstraintInstance::BinaryConstraintInstance(BinaryConstraintData* data,
agx::Index index) : agx::Physics::ConstraintBaseInstance(data, index) {}
294 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
301 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
310 AGX_FORCE_INLINE agx::UInt const& BinaryConstraintInstance::body1()
const { verifyIndex();
return getData()->body1[getIndex()]; }
313 AGX_FORCE_INLINE agx::UInt const& BinaryConstraintInstance::body2()
const { verifyIndex();
return getData()->body2[getIndex()]; }
323 AGX_TYPE_BINDING(agx::Physics::BinaryConstraintInstance,
"Physics.BinaryConstraintInstance")
326 # pragma warning(pop) 329 #undef AGX_ENTITY_WRAPPER 330 #undef AGX_ENTITY_NAMESPACE AGXPHYSICS_EXPORT agx::UInt & body2()
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
BinaryConstraintData * getData()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
Abstract description of the data attributes for the Physics.BinaryConstraint entity.
#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...
BinaryConstraintModel ModelType
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT BinaryConstraintPtr & operator=(const agxData::EntityPtr &ptr)
Type-specific Array used for fast access into the data held by a Buffer.
AGXPHYSICS_EXPORT BinaryConstraintPtr()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Abstract description of the data attributes for the Physics.ConstraintBase entity.
Contains classes for low level data storage for AGX.
Pointer to a entity instance of type Physics.ConstraintBase.
static agxData::ScalarAttributeT< agx::UInt > * body2Attribute
static BinaryConstraintModel * instance()
static agxData::ScalarAttributeT< agx::UInt > * body1Attribute
BinaryConstraintData DataType
bool isInstanceOf(agxData::EntityModel *model) const
Pointer to a entity instance of type Physics.BinaryConstraint.
AGXPHYSICS_EXPORT BinaryConstraintInstance instance()
AGXPHYSICS_EXPORT BinaryConstraintSemantics * operator->()
#define DOXYGEN_END_INTERNAL_BLOCK()
AGXPHYSICS_EXPORT agx::UInt & body1()
BinaryConstraintInstance InstanceType
#define DOXYGEN_START_INTERNAL_BLOCK()