21 #ifndef GENERATED_AGX_PHYSICS_SOLVEISLAND_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_SOLVEISLAND_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 ) 51 namespace agx {
namespace Physics {
class SolveGroupPtr; }}
58 class SolveIslandModel;
59 class SolveIslandData;
61 class SolveIslandInstance;
62 class SolveIslandSemantics;
87 virtual void shutdownCleanup()
override;
102 virtual void configure(agx::TiXmlElement* eEntity)
override;
103 virtual void initAttributeAccessors()
override;
110 #ifndef AGX_PHYSICS_SOLVEISLAND_DATA_SET_OVERRIDE 111 #define AGX_PHYSICS_SOLVEISLAND_DATA_SET 112 class AGXPHYSICS_EXPORT SolveIslandData :
public agx::Physics::InteractionGroupData
115 SolveIslandInstance operator[] (
size_t index);
128 typedef agx::Bool iterativeFrictionRefinementType;
129 typedef agx::UInt directSolveCostEstimateType;
139 virtual ~SolveIslandData() {}
140 virtual void setNumElements(
agx::Index numElements)
override;
143 SolveIslandData& operator= (
const SolveIslandData&) {
return *
this; }
157 agx::Bool const& getIterativeFrictionRefinement()
const;
158 agx::UInt const& getDirectSolveCostEstimate()
const;
159 agx::UInt const& getCurrentIteration()
const;
166 void setIsImpacting(
agx::Bool const& value);
167 void setIterativeFrictionRefinement(
agx::Bool const& value);
168 void setDirectSolveCostEstimate(
agx::UInt const& value);
169 void setCurrentIteration(
agx::UInt const& value);
176 friend class SolveIslandInstance;
177 SolveIslandSemantics();
205 SolveIslandData* getData();
206 const SolveIslandData* getData()
const;
246 SolveIslandInstance();
247 SolveIslandInstance(SolveIslandData* data,
agx::Index index);
252 SolveIslandData* getData();
253 const SolveIslandData* getData()
const;
262 agx::Bool& iterativeFrictionRefinement();
264 agx::Bool const& iterativeFrictionRefinement()
const;
269 agx::UInt const& directSolveCostEstimate()
const;
274 agx::UInt const& currentIteration()
const;
300 inline SolveIslandInstance
agx::Physics::SolveIslandData::operator[] (
size_t index) {
return SolveIslandInstance(
this, (
agx::Index)index); }
307 "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\'",
322 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
331 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
363 AGX_FORCE_INLINE SolveIslandInstance::SolveIslandInstance(SolveIslandData* data,
agx::Index index) : agx::Physics::InteractionGroupInstance(data, index) {}
368 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
375 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
383 AGX_FORCE_INLINE agx::Bool& SolveIslandInstance::isImpacting() { verifyIndex();
return getData()->isImpacting[getIndex()]; }
384 AGX_FORCE_INLINE agx::Bool const& SolveIslandInstance::isImpacting()
const { verifyIndex();
return getData()->isImpacting[getIndex()]; }
386 AGX_FORCE_INLINE agx::Bool& SolveIslandInstance::iterativeFrictionRefinement() { verifyIndex();
return getData()->iterativeFrictionRefinement[getIndex()]; }
387 AGX_FORCE_INLINE agx::Bool const& SolveIslandInstance::iterativeFrictionRefinement()
const { verifyIndex();
return getData()->iterativeFrictionRefinement[getIndex()]; }
389 AGX_FORCE_INLINE agx::UInt& SolveIslandInstance::directSolveCostEstimate() { verifyIndex();
return getData()->directSolveCostEstimate[getIndex()]; }
390 AGX_FORCE_INLINE agx::UInt const& SolveIslandInstance::directSolveCostEstimate()
const { verifyIndex();
return getData()->directSolveCostEstimate[getIndex()]; }
392 AGX_FORCE_INLINE agx::UInt& SolveIslandInstance::currentIteration() { verifyIndex();
return getData()->currentIteration[getIndex()]; }
393 AGX_FORCE_INLINE agx::UInt const& SolveIslandInstance::currentIteration()
const { verifyIndex();
return getData()->currentIteration[getIndex()]; }
409 AGX_TYPE_BINDING(agx::Physics::SolveIslandInstance,
"Physics.SolveIslandInstance")
412 # pragma warning(pop) 415 #undef AGX_ENTITY_WRAPPER 416 #undef AGX_ENTITY_NAMESPACE SolveIslandInstance InstanceType
AGXPHYSICS_EXPORT agxData::Array< agx::Physics::SolveGroupPtr > & groups()
agxData::EntityData * getData()
AGXPHYSICS_EXPORT SolveIslandInstance instance()
AGXPHYSICS_EXPORT agx::UInt & currentIteration()
static agxData::ScalarAttributeT< agx::UInt > * directSolveCostEstimateAttribute
agxData::EntityInstance instance()
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > & directBodies()
AGXPHYSICS_EXPORT agx::UInt & directSolveCostEstimate()
Data storage for a collection of entity instances of a specified EntityModel.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
SolveIslandModel ModelType
agx::String fullPath() const
static agxData::ScalarAttributeT< agx::Bool > * isImpactingAttribute
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
SolveIslandData * getData()
#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
AGXPHYSICS_EXPORT SolveIslandPtr & operator=(const agxData::EntityPtr &ptr)
static agxData::ArrayAttributeT< agx::Physics::SolveGroupPtr > * groupsAttribute
Abstract description of the data attributes for the Physics.InteractionGroup entity.
Type-specific Array used for fast access into the data held by a Buffer.
Pointer to a entity instance of type Physics.SolveIsland.
Abstract description of the data attributes for the Physics.SolveIsland entity.
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 agx::Bool & isImpacting()
Contains classes for low level data storage for AGX.
AGXPHYSICS_EXPORT SolveIslandSemantics * operator->()
static agxData::ScalarAttributeT< agx::UInt > * currentIterationAttribute
static agxData::ArrayAttributeT< agx::UInt32 > * directBodiesAttribute
Pointer to a entity instance of type Physics.InteractionGroup.
bool isInstanceOf(agxData::EntityModel *model) const
static SolveIslandModel * instance()
static agxData::ScalarAttributeT< agx::Bool > * iterativeFrictionRefinementAttribute
AGXPHYSICS_EXPORT agx::Bool & iterativeFrictionRefinement()
AGXPHYSICS_EXPORT SolveIslandPtr()
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()