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;
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();
229 #ifdef AGX_GENERATED_TOLUA_WRAPPER
230 inline agx::Vec3 const& getLocalForce()
const {
return (*this)->getLocalForce(); }
231 inline agx::Vec4i8 const& getIndexSet()
const {
return (*this)->getIndexSet(); }
232 inline agx::Vec3 const& getShape1pos()
const {
return (*this)->getShape1pos(); }
233 inline agx::Vec3 const& getShape2pos()
const {
return (*this)->getShape2pos(); }
234 inline agx::Vec3 const& getShape1normal()
const {
return (*this)->getShape1normal(); }
237 inline void setLocalForce(
agx::Vec3 const& value) { (*this)->setLocalForce(value); }
238 inline void setIndexSet(
agx::Vec4i8 const& value) { (*this)->setIndexSet(value); }
239 inline void setShape1pos(
agx::Vec3 const& value) { (*this)->setShape1pos(value); }
240 inline void setShape2pos(
agx::Vec3 const& value) { (*this)->setShape2pos(value); }
241 inline void setShape1normal(
agx::Vec3 const& value) { (*this)->setShape1normal(value); }
252 WarmStartingDataInstance();
253 WarmStartingDataInstance(WarmStartingDataData* data,
agx::Index index);
258 WarmStartingDataData* getData();
259 const WarmStartingDataData* getData()
const;
301 inline WarmStartingDataInstance
agx::Physics::WarmStartingDataData::operator[] (
size_t index) {
return WarmStartingDataInstance(
this, (
agx::Index)index); }
308 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
315 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
323 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
332 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
339 AGX_FORCE_INLINE WarmStartingDataSemantics* WarmStartingDataPtr::operator->() {
return (WarmStartingDataSemantics* )
this; }
340 AGX_FORCE_INLINE const WarmStartingDataSemantics* WarmStartingDataPtr::operator->()
const {
return (
const WarmStartingDataSemantics* )
this; }
344 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataPtr::localForce() { verifyIndex();
return getData()->localForce[calculateIndex()]; }
345 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataPtr::localForce()
const { verifyIndex();
return getData()->localForce[calculateIndex()]; }
348 AGX_FORCE_INLINE agx::Vec4i8 const& WarmStartingDataPtr::indexSet()
const { verifyIndex();
return getData()->indexSet[calculateIndex()]; }
350 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataPtr::shape1pos() { verifyIndex();
return getData()->shape1pos[calculateIndex()]; }
351 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataPtr::shape1pos()
const { verifyIndex();
return getData()->shape1pos[calculateIndex()]; }
353 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataPtr::shape2pos() { verifyIndex();
return getData()->shape2pos[calculateIndex()]; }
354 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataPtr::shape2pos()
const { verifyIndex();
return getData()->shape2pos[calculateIndex()]; }
356 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataPtr::shape1normal() { verifyIndex();
return getData()->shape1normal[calculateIndex()]; }
357 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataPtr::shape1normal()
const { verifyIndex();
return getData()->shape1normal[calculateIndex()]; }
366 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
373 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
381 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataInstance::localForce() { verifyIndex();
return getData()->localForce[getIndex()]; }
382 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataInstance::localForce()
const { verifyIndex();
return getData()->localForce[getIndex()]; }
385 AGX_FORCE_INLINE agx::Vec4i8 const& WarmStartingDataInstance::indexSet()
const { verifyIndex();
return getData()->indexSet[getIndex()]; }
387 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataInstance::shape1pos() { verifyIndex();
return getData()->shape1pos[getIndex()]; }
388 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataInstance::shape1pos()
const { verifyIndex();
return getData()->shape1pos[getIndex()]; }
390 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataInstance::shape2pos() { verifyIndex();
return getData()->shape2pos[getIndex()]; }
391 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataInstance::shape2pos()
const { verifyIndex();
return getData()->shape2pos[getIndex()]; }
393 AGX_FORCE_INLINE agx::Vec3& WarmStartingDataInstance::shape1normal() { verifyIndex();
return getData()->shape1normal[getIndex()]; }
394 AGX_FORCE_INLINE agx::Vec3 const& WarmStartingDataInstance::shape1normal()
const { verifyIndex();
return getData()->shape1normal[getIndex()]; }
404 AGX_TYPE_BINDING(
agx::Physics::WarmStartingDataInstance, "Physics.WarmStartingDataInstance")
407 # pragma warning(pop)
410 #undef AGX_ENTITY_WRAPPER
411 #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...
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.WarmStartingData entity.
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
static agxData::EntityStorage * defaultStorage()
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 WarmStartingDataModel * instance()
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 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::Vec3 & shape1pos()
WarmStartingDataData DataType
AGXPHYSICS_EXPORT agx::Vec3 & shape2pos()
AGXPHYSICS_EXPORT WarmStartingDataPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT agx::Vec3 const & shape1pos() const
const WarmStartingDataData * getData() const
AGXPHYSICS_EXPORT agx::Vec4i8 & indexSet()
AGXPHYSICS_EXPORT WarmStartingDataPtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT agx::Vec3 & localForce()
AGXPHYSICS_EXPORT agx::Vec3 const & shape1normal() const
AGXPHYSICS_EXPORT agx::Vec4i8 const & indexSet() const
WarmStartingDataModel ModelType
WarmStartingDataInstance InstanceType
AGXPHYSICS_EXPORT agx::Vec3 const & shape2pos() const
AGXPHYSICS_EXPORT agx::Vec3 const & localForce() const
AGXPHYSICS_EXPORT const WarmStartingDataInstance instance() const
AGXPHYSICS_EXPORT WarmStartingDataInstance instance()
AGXPHYSICS_EXPORT WarmStartingDataPtr()
AGXPHYSICS_EXPORT agx::Vec3 & shape1normal()
AGXPHYSICS_EXPORT const WarmStartingDataSemantics * operator->() const
AGXPHYSICS_EXPORT WarmStartingDataSemantics * operator->()
WarmStartingDataData * getData()
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.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())