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;
199 #ifdef AGX_GENERATED_TOLUA_WRAPPER 200 inline agx::UInt const& getBody1()
const {
return (*this)->getBody1(); }
201 inline agx::UInt const& getBody2()
const {
return (*this)->getBody2(); }
204 inline void setBody1(
agx::UInt const& value) { (*this)->setBody1(value); }
205 inline void setBody2(
agx::UInt const& value) { (*this)->setBody2(value); }
216 BinaryConstraintInstance();
217 BinaryConstraintInstance(BinaryConstraintData* data,
agx::Index index);
222 BinaryConstraintData* getData();
223 const BinaryConstraintData* getData()
const;
250 inline BinaryConstraintInstance
agx::Physics::BinaryConstraintData::operator[] (
size_t index) {
return BinaryConstraintInstance(
this, (
agx::Index)index); }
257 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
264 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
272 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
281 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
301 AGX_FORCE_INLINE BinaryConstraintInstance::BinaryConstraintInstance(BinaryConstraintData* data,
agx::Index index) : agx::Physics::ConstraintBaseInstance(data, index) {}
306 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
313 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
322 AGX_FORCE_INLINE agx::UInt const& BinaryConstraintInstance::body1()
const { verifyIndex();
return getData()->body1[getIndex()]; }
325 AGX_FORCE_INLINE agx::UInt const& BinaryConstraintInstance::body2()
const { verifyIndex();
return getData()->body2[getIndex()]; }
335 AGX_TYPE_BINDING(agx::Physics::BinaryConstraintInstance,
"Physics.BinaryConstraintInstance")
338 # pragma warning(pop) 341 #undef AGX_ENTITY_WRAPPER 342 #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
Namespace agx 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()