21 #ifndef GENERATED_AGX_PHYSICS_WARMSTARTINGDATA_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_WARMSTARTINGDATA_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 WarmStartingDataModel;
57 class WarmStartingDataData;
58 class WarmStartingDataPtr;
59 class WarmStartingDataInstance;
60 class WarmStartingDataSemantics;
85 virtual void shutdownCleanup()
override;
99 virtual void configure(agx::TiXmlElement* eEntity)
override;
100 virtual void initAttributeAccessors()
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);
169 friend class WarmStartingDataInstance;
170 WarmStartingDataSemantics();
198 WarmStartingDataData* getData();
199 const WarmStartingDataData* getData()
const;
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\'",
314 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
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()]; }
386 AGX_TYPE_BINDING(agx::Physics::WarmStartingDataInstance,
"Physics.WarmStartingDataInstance")
389 # pragma warning(pop) 392 #undef AGX_ENTITY_WRAPPER 393 #undef AGX_ENTITY_NAMESPACE agxData::EntityData * getData()
agxData::EntityInstance instance()
static agxData::ScalarAttributeT< agx::Vec3 > * shape2posAttribute
Data storage for a collection of entity instances of a specified EntityModel.
#define agxAssertN(expr, format,...)
A class holding 4 dimensional vectors and providing basic arithmetic.
agxData::EntityData * getData()
agx::String fullPath() const
static agxData::ScalarAttributeT< agx::Vec3 > * shape1posAttribute
#define AGX_TYPE_BINDING(_Type, _Name)
Abstract description of the data attributes for the Physics.WarmStartingData entity.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
#define AGXPHYSICS_EXPORT
AGXPHYSICS_EXPORT agx::Vec3 & shape2pos()
AGXPHYSICS_EXPORT WarmStartingDataPtr & operator=(const agxData::EntityPtr &ptr)
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
static agxData::ScalarAttributeT< agx::Vec3 > * shape1normalAttribute
Type-specific Array used for fast access into the data held by a Buffer.
WarmStartingDataData DataType
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
AGXPHYSICS_EXPORT WarmStartingDataInstance instance()
WarmStartingDataInstance InstanceType
AGXPHYSICS_EXPORT WarmStartingDataPtr()
AGXPHYSICS_EXPORT WarmStartingDataSemantics * operator->()
AGXPHYSICS_EXPORT agx::Vec3 & shape1normal()
Contains classes for low level data storage for AGX.
AGXPHYSICS_EXPORT agx::Vec4i8 & indexSet()
static agxData::ScalarAttributeT< agx::Vec3 > * localForceAttribute
Pointer to a entity instance of type Physics.WarmStartingData.
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
AGXPHYSICS_EXPORT agx::Vec3 & localForce()
bool isInstanceOf(agxData::EntityModel *model) const
AGXPHYSICS_EXPORT agx::Vec3 & shape1pos()
static agxData::ScalarAttributeT< agx::Vec4i8 > * indexSetAttribute
WarmStartingDataData * getData()
#define DOXYGEN_END_INTERNAL_BLOCK()
WarmStartingDataModel ModelType
#define DOXYGEN_START_INTERNAL_BLOCK()
static WarmStartingDataModel * instance()