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;
96 virtual void configure(agx::TiXmlElement* eEntity)
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
153 friend class BinaryConstraintPtr;
154 friend class BinaryConstraintInstance;
155 BinaryConstraintSemantics();
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\'",
288 AGX_FORCE_INLINE BinaryConstraintSemantics* BinaryConstraintPtr::operator->() {
return (BinaryConstraintSemantics* )
this; }
289 AGX_FORCE_INLINE const BinaryConstraintSemantics* BinaryConstraintPtr::operator->()
const {
return (
const BinaryConstraintSemantics* )
this; }
294 AGX_FORCE_INLINE agx::UInt const& BinaryConstraintPtr::body1()
const { verifyIndex();
return getData()->body1[calculateIndex()]; }
297 AGX_FORCE_INLINE agx::UInt const& BinaryConstraintPtr::body2()
const { verifyIndex();
return getData()->body2[calculateIndex()]; }
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
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGX_TYPE_BINDING(_Type, _Name)
#define AGXPHYSICS_EXPORT
Type-specific Array used for fast access into the data held by a Buffer.
Entity instance provides access to a single instance in an EntityStorage.
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
EntityPtr & operator=(const EntityPtr &other)=default
Data storage for a collection of entity instances of a specified EntityModel.
agx::String fullPath() const
Abstract description of the data attributes for the Physics.BinaryConstraint entity.
static agxData::ScalarAttributeT< agx::UInt > * body1Attribute
virtual void construct(agxData::EntityPtr instance) override
virtual void configure(agx::TiXmlElement *eEntity) override
virtual ~BinaryConstraintModel()
BinaryConstraintModel(const agx::String &name="BinaryConstraint")
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::ScalarAttributeT< agx::UInt > * body2Attribute
static agxData::EntityStorage * defaultStorage()
static BinaryConstraintModel * instance()
virtual void initAttributeAccessors() override
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
void construct(agx::Physics::BinaryConstraintPtr binaryConstraint)
static BinaryConstraintPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
Pointer to a entity instance of type Physics.BinaryConstraint.
BinaryConstraintData * getData()
AGXPHYSICS_EXPORT agx::UInt const & body1() const
AGXPHYSICS_EXPORT BinaryConstraintPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT BinaryConstraintInstance instance()
BinaryConstraintData DataType
AGXPHYSICS_EXPORT agx::UInt & body2()
BinaryConstraintModel ModelType
AGXPHYSICS_EXPORT BinaryConstraintPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT agx::UInt const & body2() const
AGXPHYSICS_EXPORT const BinaryConstraintSemantics * operator->() const
const BinaryConstraintData * getData() const
BinaryConstraintInstance InstanceType
AGXPHYSICS_EXPORT agx::UInt & body1()
AGXPHYSICS_EXPORT const BinaryConstraintInstance instance() const
AGXPHYSICS_EXPORT BinaryConstraintSemantics * operator->()
AGXPHYSICS_EXPORT BinaryConstraintPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT BinaryConstraintPtr()
Abstract description of the data attributes for the Physics.ConstraintBase entity.
Pointer to a entity instance of type Physics.ConstraintBase.
Vector containing 'raw' data.
#define agxAssertN(expr, format,...)
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Contains classes for low level data storage for AGX.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())