21 #ifndef GENERATED_AGX_PHYSICS_GEOMETRY_WIRESHAPE_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_GEOMETRY_WIRESHAPE_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 ) 62 class WireShapeInstance;
63 class WireShapeSemantics;
88 virtual void shutdownCleanup()
override;
100 virtual void configure(agx::TiXmlElement* eEntity)
override;
101 virtual void initAttributeAccessors()
override;
108 #ifndef AGX_PHYSICS_GEOMETRY_WIRESHAPE_DATA_SET_OVERRIDE 109 #define AGX_PHYSICS_GEOMETRY_WIRESHAPE_DATA_SET 110 class AGXPHYSICS_EXPORT WireShapeData :
public agx::Physics::Geometry::CapsuleData
113 WireShapeInstance operator[] (
size_t index);
131 virtual ~WireShapeData() {}
132 virtual void setNumElements(
agx::Index numElements)
override;
135 WireShapeData& operator= (
const WireShapeData&) {
return *
this; }
148 agx::Vec3 const& getPreviousPoint0()
const;
149 agx::Vec3 const& getPreviousPoint1()
const;
155 void setPreviousPoint0(
agx::Vec3 const& value);
156 void setPreviousPoint1(
agx::Vec3 const& value);
162 friend class WireShapeInstance;
163 WireShapeSemantics();
191 WireShapeData* getData();
192 const WireShapeData* getData()
const;
221 WireShapeInstance(WireShapeData* data,
agx::Index index);
226 WireShapeData* getData();
227 const WireShapeData* getData()
const;
259 inline WireShapeInstance
agx::Physics::Geometry::WireShapeData::operator[] (
size_t index) {
return WireShapeInstance(
this, (
agx::Index)index); }
266 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
273 "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\'",
290 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
313 AGX_FORCE_INLINE WireShapeInstance::WireShapeInstance(WireShapeData* data,
agx::Index index) : agx::Physics::Geometry::CapsuleInstance(data, index) {}
318 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
325 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
333 AGX_FORCE_INLINE agx::Vec3& WireShapeInstance::previousPoint0() { verifyIndex();
return getData()->previousPoint0[getIndex()]; }
334 AGX_FORCE_INLINE agx::Vec3 const& WireShapeInstance::previousPoint0()
const { verifyIndex();
return getData()->previousPoint0[getIndex()]; }
336 AGX_FORCE_INLINE agx::Vec3& WireShapeInstance::previousPoint1() { verifyIndex();
return getData()->previousPoint1[getIndex()]; }
337 AGX_FORCE_INLINE agx::Vec3 const& WireShapeInstance::previousPoint1()
const { verifyIndex();
return getData()->previousPoint1[getIndex()]; }
351 AGX_TYPE_BINDING(agx::Physics::Geometry::WireShapeInstance,
"Physics.Geometry.WireShapeInstance")
354 # pragma warning(pop) 357 #undef AGX_ENTITY_WRAPPER 358 #undef AGX_ENTITY_NAMESPACE AGXPHYSICS_EXPORT agx::Vec3 & previousPoint1()
agxData::EntityData * getData()
agxData::EntityInstance instance()
WireShapeInstance InstanceType
An entity reference is a safe/referencing handle to an entity instance whose model is descendant from...
Data storage for a collection of entity instances of a specified EntityModel.
AGXPHYSICS_EXPORT agx::UInt32 & wireId()
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
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...
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
Type-specific Array used for fast access into the data held by a Buffer.
static WireShapeModel * instance()
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
AGXPHYSICS_EXPORT WireShapePtr & operator=(const agxData::EntityPtr &ptr)
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXPHYSICS_EXPORT WireShapePtr()
Contains classes for low level data storage for AGX.
Pointer to a entity instance of type Physics.Geometry.Capsule.
AGXPHYSICS_EXPORT agx::Vec3 & previousPoint0()
AGXPHYSICS_EXPORT WireShapeSemantics * operator->()
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::Vec3 > * previousPoint1Attribute
static agxData::ScalarAttributeT< agx::UInt32 > * wireIdAttribute
Abstract description of the data attributes for the Physics.Geometry.Capsule entity.
static agxData::ScalarAttributeT< agx::Vec3 > * previousPoint0Attribute
Abstract description of the data attributes for the Physics.Geometry.WireShape entity.
Pointer to a entity instance of type Physics.Geometry.WireShape.
WireShapeData * getData()
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
agxData::EntityRef< WireShapePtr > WireShapeRef
AGXPHYSICS_EXPORT WireShapeInstance instance()