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;
100 virtual void configure(agx::TiXmlElement* eEntity)
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);
161 friend class WireShapePtr;
162 friend class WireShapeInstance;
163 WireShapeSemantics();
212 #ifdef AGX_GENERATED_TOLUA_WRAPPER
213 inline agx::Vec3 const& getPreviousPoint0()
const {
return (*this)->getPreviousPoint0(); }
214 inline agx::Vec3 const& getPreviousPoint1()
const {
return (*this)->getPreviousPoint1(); }
215 inline agx::UInt32 const& getWireId()
const {
return (*this)->getWireId(); }
218 inline void setPreviousPoint0(
agx::Vec3 const& value) { (*this)->setPreviousPoint0(value); }
219 inline void setPreviousPoint1(
agx::Vec3 const& value) { (*this)->setPreviousPoint1(value); }
220 inline void setWireId(
agx::UInt32 const& value) { (*this)->setWireId(value); }
235 WireShapeInstance(WireShapeData* data,
agx::Index index);
240 WireShapeData* getData();
241 const WireShapeData* getData()
const;
273 inline WireShapeInstance
agx::Physics::Geometry::WireShapeData::operator[] (
size_t index) {
return WireShapeInstance(
this, (
agx::Index)index); }
280 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
287 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
295 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
304 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
311 AGX_FORCE_INLINE WireShapeSemantics* WireShapePtr::operator->() {
return (WireShapeSemantics* )
this; }
312 AGX_FORCE_INLINE const WireShapeSemantics* WireShapePtr::operator->()
const {
return (
const WireShapeSemantics* )
this; }
316 AGX_FORCE_INLINE agx::Vec3& WireShapePtr::previousPoint0() { verifyIndex();
return getData()->previousPoint0[calculateIndex()]; }
317 AGX_FORCE_INLINE agx::Vec3 const& WireShapePtr::previousPoint0()
const { verifyIndex();
return getData()->previousPoint0[calculateIndex()]; }
319 AGX_FORCE_INLINE agx::Vec3& WireShapePtr::previousPoint1() { verifyIndex();
return getData()->previousPoint1[calculateIndex()]; }
320 AGX_FORCE_INLINE agx::Vec3 const& WireShapePtr::previousPoint1()
const { verifyIndex();
return getData()->previousPoint1[calculateIndex()]; }
327 AGX_FORCE_INLINE WireShapeInstance::WireShapeInstance(WireShapeData* data,
agx::Index index) :
agx::Physics::Geometry::CapsuleInstance(data, index) {}
332 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
339 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
347 AGX_FORCE_INLINE agx::Vec3& WireShapeInstance::previousPoint0() { verifyIndex();
return getData()->previousPoint0[getIndex()]; }
348 AGX_FORCE_INLINE agx::Vec3 const& WireShapeInstance::previousPoint0()
const { verifyIndex();
return getData()->previousPoint0[getIndex()]; }
350 AGX_FORCE_INLINE agx::Vec3& WireShapeInstance::previousPoint1() { verifyIndex();
return getData()->previousPoint1[getIndex()]; }
351 AGX_FORCE_INLINE agx::Vec3 const& WireShapeInstance::previousPoint1()
const { verifyIndex();
return getData()->previousPoint1[getIndex()]; }
365 AGX_TYPE_BINDING(
agx::Physics::Geometry::WireShapeInstance, "Physics.Geometry.WireShapeInstance")
368 # pragma warning(pop)
371 #undef AGX_ENTITY_WRAPPER
372 #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
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.
agx::String fullPath() const
Abstract description of the data attributes for the Physics.Geometry.Capsule entity.
Pointer to a entity instance of type Physics.Geometry.Capsule.
Abstract description of the data attributes for the Physics.Geometry.WireShape entity.
virtual ~WireShapeModel()
WireShapeModel(const agx::String &name="WireShape")
virtual void initAttributeAccessors() override
static WireShapePtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::ScalarAttributeT< agx::UInt32 > * wireIdAttribute
static agxData::ScalarAttributeT< agx::Vec3 > * previousPoint0Attribute
virtual void construct(agxData::EntityPtr instance) override
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
void construct(agx::Physics::Geometry::WireShapePtr wireShape)
virtual void configure(agx::TiXmlElement *eEntity) override
static agxData::ScalarAttributeT< agx::Vec3 > * previousPoint1Attribute
static agxData::EntityStorage * defaultStorage()
static WireShapeModel * instance()
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
Pointer to a entity instance of type Physics.Geometry.WireShape.
AGXPHYSICS_EXPORT WireShapePtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT WireShapeSemantics * operator->()
AGXPHYSICS_EXPORT agx::Vec3 & previousPoint0()
AGXPHYSICS_EXPORT WireShapePtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT const WireShapeSemantics * operator->() const
AGXPHYSICS_EXPORT WireShapeInstance instance()
AGXPHYSICS_EXPORT agx::Vec3 & previousPoint1()
AGXPHYSICS_EXPORT agx::Vec3 const & previousPoint0() const
AGXPHYSICS_EXPORT const WireShapeInstance instance() const
WireShapeInstance InstanceType
AGXPHYSICS_EXPORT agx::UInt32 & wireId()
const WireShapeData * getData() const
WireShapeData * getData()
AGXPHYSICS_EXPORT WireShapePtr()
AGXPHYSICS_EXPORT agx::UInt32 const & wireId() const
AGXPHYSICS_EXPORT WireShapePtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT agx::Vec3 const & previousPoint1() const
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.
agxData::EntityRef< WireShapePtr > WireShapeRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())