21#ifndef GENERATED_AGX_PHYSICS_WARMSTARTINGDATA_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_WARMSTARTINGDATA_H_PLUGIN
24#define AGX_ENTITY_WRAPPER 1
30# pragma warning( disable : 4505 )
32# pragma warning( disable : 4251 )
34# pragma warning( disable : 4355 )
36# pragma warning( disable: 4714 )
56 class WarmStartingDataModel;
57 class WarmStartingDataData;
58 class WarmStartingDataPtr;
59 class WarmStartingDataInstance;
60 class WarmStartingDataSemantics;
99 virtual void configure(agx::TiXmlElement* eEntity)
override;
107 #ifndef AGX_PHYSICS_WARMSTARTINGDATA_DATA_SET_OVERRIDE
108 #define AGX_PHYSICS_WARMSTARTINGDATA_DATA_SET
112 WarmStartingDataInstance operator[] (
size_t index);
131 WarmStartingDataData();
134 virtual ~WarmStartingDataData() {}
135 virtual void setNumElements(
agx::Index numElements)
override;
138 WarmStartingDataData& operator= (
const WarmStartingDataData&) {
return *
this; }
155 agx::Vec3 const& getShape1normal()
const;
160 void setLocalForce(
agx::Vec3 const& value);
162 void setShape1pos(
agx::Vec3 const& value);
163 void setShape2pos(
agx::Vec3 const& value);
164 void setShape1normal(
agx::Vec3 const& value);
168 friend class WarmStartingDataPtr;
169 friend class WarmStartingDataInstance;
170 WarmStartingDataSemantics();
234 WarmStartingDataInstance();
235 WarmStartingDataInstance(WarmStartingDataData* data,
agx::Index index);
240 WarmStartingDataData* getData();
241 const WarmStartingDataData* getData()
const;
283 inline WarmStartingDataInstance
agx::Physics::WarmStartingDataData::operator[] (
size_t index) {
return WarmStartingDataInstance(
this, (
agx::Index)index); }
290 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
297 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
305 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
306 EntityPtr::getModel()->fullPath().c_str(), WarmStartingDataModel::instance()->fullPath().c_str());
314 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
315 EntityPtr::getModel()->fullPath().c_str(), WarmStartingDataModel::instance()->fullPath().c_str());
321 AGX_FORCE_INLINE WarmStartingDataSemantics* WarmStartingDataPtr::operator->() {
return (WarmStartingDataSemantics* )
this; }
322 AGX_FORCE_INLINE const WarmStartingDataSemantics* WarmStartingDataPtr::operator->()
const {
return (
const WarmStartingDataSemantics* )
this; }
326 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataPtr::localForce() { verifyIndex();
return getData()->localForce[calculateIndex()]; }
327 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataPtr::localForce()
const { verifyIndex();
return getData()->localForce[calculateIndex()]; }
330 AGX_FORCE_INLINE agx::Vec4i8 const& WarmStartingDataPtr::indexSet()
const { verifyIndex();
return getData()->indexSet[calculateIndex()]; }
332 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataPtr::shape1pos() { verifyIndex();
return getData()->shape1pos[calculateIndex()]; }
333 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataPtr::shape1pos()
const { verifyIndex();
return getData()->shape1pos[calculateIndex()]; }
335 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataPtr::shape2pos() { verifyIndex();
return getData()->shape2pos[calculateIndex()]; }
336 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataPtr::shape2pos()
const { verifyIndex();
return getData()->shape2pos[calculateIndex()]; }
338 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataPtr::shape1normal() { verifyIndex();
return getData()->shape1normal[calculateIndex()]; }
339 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataPtr::shape1normal()
const { verifyIndex();
return getData()->shape1normal[calculateIndex()]; }
348 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
355 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
363 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataInstance::localForce() { verifyIndex();
return getData()->localForce[getIndex()]; }
364 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataInstance::localForce()
const { verifyIndex();
return getData()->localForce[getIndex()]; }
367 AGX_FORCE_INLINE agx::Vec4i8 const& WarmStartingDataInstance::indexSet()
const { verifyIndex();
return getData()->indexSet[getIndex()]; }
369 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataInstance::shape1pos() { verifyIndex();
return getData()->shape1pos[getIndex()]; }
370 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataInstance::shape1pos()
const { verifyIndex();
return getData()->shape1pos[getIndex()]; }
372 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataInstance::shape2pos() { verifyIndex();
return getData()->shape2pos[getIndex()]; }
373 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataInstance::shape2pos()
const { verifyIndex();
return getData()->shape2pos[getIndex()]; }
375 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataInstance::shape1normal() { verifyIndex();
return getData()->shape1normal[getIndex()]; }
376 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataInstance::shape1normal()
const { verifyIndex();
return getData()->shape1normal[getIndex()]; }
386AGX_TYPE_BINDING(
agx::Physics::WarmStartingDataInstance, "Physics.WarmStartingDataInstance")
392#undef AGX_ENTITY_WRAPPER
393#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()
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
Accessor to a entity instance stored in a EntityStorage, to allow SOA (structure of arrays) data to b...
EntityPtr & operator=(const EntityPtr &other)=default
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
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.WarmStartingData entity.
static agxData::EntityStorage * defaultStorage()
static WarmStartingDataModel * instance()
static agxData::ScalarAttributeT< agx::Vec3 > * shape2posAttribute
void construct(agx::Physics::WarmStartingDataPtr warmStartingData)
WarmStartingDataModel(const agx::String &name="WarmStartingData")
virtual ~WarmStartingDataModel()
virtual void configure(agx::TiXmlElement *eEntity) override
static WarmStartingDataPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
virtual void construct(agxData::EntityPtr instance) override
static agxData::ScalarAttributeT< agx::Vec3 > * localForceAttribute
static agxData::ScalarAttributeT< agx::Vec3 > * shape1posAttribute
virtual void initAttributeAccessors() override
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
static agxData::ScalarAttributeT< agx::Vec4i8 > * indexSetAttribute
static agxData::ScalarAttributeT< agx::Vec3 > * shape1normalAttribute
Pointer to a entity instance of type Physics.WarmStartingData.
AGXPHYSICS_EXPORT agx::Vec4i8 & indexSet()
WarmStartingDataData DataType
AGXPHYSICS_EXPORT agx::Vec3 const & shape2pos() const
AGXPHYSICS_EXPORT WarmStartingDataPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT WarmStartingDataPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT agx::Vec3 & shape1normal()
WarmStartingDataModel ModelType
WarmStartingDataData * getData()
AGXPHYSICS_EXPORT agx::Vec3 const & shape1normal() const
WarmStartingDataInstance InstanceType
AGXPHYSICS_EXPORT agx::Vec4i8 const & indexSet() const
AGXPHYSICS_EXPORT WarmStartingDataSemantics * operator->()
AGXPHYSICS_EXPORT const WarmStartingDataInstance instance() const
AGXPHYSICS_EXPORT agx::Vec3 & shape1pos()
AGXPHYSICS_EXPORT WarmStartingDataInstance instance()
AGXPHYSICS_EXPORT const WarmStartingDataSemantics * operator->() const
AGXPHYSICS_EXPORT WarmStartingDataPtr()
AGXPHYSICS_EXPORT agx::Vec3 const & localForce() const
const WarmStartingDataData * getData() const
AGXPHYSICS_EXPORT agx::Vec3 & localForce()
AGXPHYSICS_EXPORT agx::Vec3 const & shape1pos() const
AGXPHYSICS_EXPORT agx::Vec3 & shape2pos()
AGXPHYSICS_EXPORT WarmStartingDataPtr(const agxData::EntityPtr &ptr)
A class holding 4 dimensional vectors and providing basic arithmetic.
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.