21 #ifndef GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CELL_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_HIERARCHICALGRID_CELL_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 ) 53 namespace agx {
namespace Physics {
namespace HierarchicalGrid {
class ContactZonePtr; }}}
59 namespace HierarchicalGrid
85 static CellPtr createInstance();
91 virtual void shutdownCleanup()
override;
105 static const size_t childrenArraySize = 8;
108 static const size_t neighborsArraySize = 32;
121 virtual void configure(agx::TiXmlElement* eEntity)
override;
122 virtual void initAttributeAccessors()
override;
129 #ifndef AGX_PHYSICS_HIERARCHICALGRID_CELL_DATA_SET_OVERRIDE 130 #define AGX_PHYSICS_HIERARCHICALGRID_CELL_DATA_SET 134 CellInstance operator[] (
size_t index);
147 static const size_t childrenArraySize = 8;
150 static const size_t neighborsArraySize = 32;
178 typedef agx::Real reorderingFrequencyType;
186 virtual ~CellData() {}
187 virtual void setNumElements(
agx::Index numElements)
override;
188 virtual void synchronizeSharedAttribute(
agxData::Value* value)
override;
191 CellData& operator= (
const CellData&) {
return *
this; }
225 void setPosition(
agx::Vec3 const& value);
240 friend class CellInstance;
270 const CellData* getData()
const;
376 CellInstance(CellData* data,
agx::Index index);
382 const CellData* getData()
const;
473 agx::Real const& reorderingFrequency()
const;
494 inline CellInstance
agx::Physics::HierarchicalGrid::CellData::operator[] (
size_t index) {
return CellInstance(
this, (
agx::Index)index); }
501 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
508 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
516 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
525 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
605 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
612 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
630 AGX_FORCE_INLINE agx::Vec3 const& CellInstance::position()
const { verifyIndex();
return getData()->position[getIndex()]; }
650 AGX_FORCE_INLINE agx::UInt8 const& CellInstance::numChildren()
const { verifyIndex();
return getData()->numChildren[getIndex()]; }
661 AGX_FORCE_INLINE agx::UInt32 const& CellInstance::sortedIndex()
const { verifyIndex();
return getData()->sortedIndex[getIndex()]; }
675 AGX_FORCE_INLINE agx::Real& CellInstance::reorderingFrequency() { verifyIndex();
return getData()->reorderingFrequency; }
676 AGX_FORCE_INLINE agx::Real const& CellInstance::reorderingFrequency()
const { verifyIndex();
return getData()->reorderingFrequency; }
679 AGX_FORCE_INLINE agx::Real const& CellInstance::sizeAlignment()
const { verifyIndex();
return getData()->sizeAlignment; }
690 AGX_TYPE_BINDING(agx::Physics::HierarchicalGrid::CellInstance,
"Physics.HierarchicalGrid.CellInstance")
693 # pragma warning(pop) 696 #undef AGX_ENTITY_WRAPPER 697 #undef AGX_ENTITY_NAMESPACE AGXPHYSICS_EXPORT agx::AtomicValue *& solveBodyOffsets()
agxData::EntityData * getData()
AGXPHYSICS_EXPORT CellSemantics * operator->()
static agxData::ScalarAttributeT< agx::UInt32 > * childrenAttribute
AGXPHYSICS_EXPORT agx::UInt8 & state()
static agxData::ScalarAttributeT< agx::UInt8 > * stateAttribute
agxData::EntityInstance instance()
static agxData::ScalarAttributeT< agx::IndexRange32 > * collisionObjectsAttribute
AGXPHYSICS_EXPORT agx::Physics::HierarchicalGrid::ContactZonePtr & internalZone()
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > children()
Data storage for a collection of entity instances of a specified EntityModel.
AGXPHYSICS_EXPORT agx::UInt32 & sortedIndex()
Abstract representation of a value.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
agx::String fullPath() const
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
static agxData::ScalarAttributeT< agx::Vec3i > * idAttribute
#define AGXPHYSICS_EXPORT
AGXPHYSICS_EXPORT agx::IndexRange32 & collisionObjects()
static agxData::ScalarAttributeT< agx::UInt32 > * neighborsAttribute
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...
AGXPHYSICS_EXPORT agx::Vec3i & id()
static agxData::PointerAttributeT< agx::AtomicValue * > * solveBodyOffsetsAttribute
AGXPHYSICS_EXPORT agx::UInt8 & tier()
AGXPHYSICS_EXPORT CellInstance instance()
#define AGX_DECLARE_POINTER_TYPES(type)
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::SharedAttributeT< agx::Real > * sizeAlignmentAttribute
AGXPHYSICS_EXPORT CellPtr()
AGXPHYSICS_EXPORT agx::Real32 & emptyTime()
AGXPHYSICS_EXPORT agx::UInt8 & invDepth()
static agxData::ScalarAttributeT< agx::UInt32 > * sortedIndexAttribute
Type-specific Array used for fast access into the data held by a Buffer.
static agxData::ScalarAttributeT< agx::UInt8 > * invDepthAttribute
static agxData::ScalarAttributeT< agx::UInt32 > * parentAttribute
static agxData::ScalarAttributeT< agx::UInt8 > * zoneTypeAttribute
static agxData::ScalarAttributeT< agx::Real32 > * emptyTimeAttribute
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
static CellModel * instance()
Abstract description of the data attributes for the Physics.HierarchicalGrid.Cell entity...
Contains classes for low level data storage for AGX.
static agxData::ScalarAttributeT< agx::Vec3 > * positionAttribute
AGXPHYSICS_EXPORT CellPtr & operator=(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::UInt8 & numChildren()
AGXPHYSICS_EXPORT agx::Vec3 & position()
static agxData::ScalarAttributeT< agx::UInt8 > * tierAttribute
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
CellInstance InstanceType
AGXPHYSICS_EXPORT agxData::Array< agx::UInt32 > neighbors()
static agxData::SharedAttributeT< agx::Real > * reorderingFrequencyAttribute
A class holding 3 dimensional vectors and providing basic arithmetic.
AGXPHYSICS_EXPORT agx::UInt8 & zoneType()
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::Physics::HierarchicalGrid::ContactZonePtr > * internalZoneAttribute
static agxData::ScalarAttributeT< agx::UInt32 > * searchCostAttribute
static agxData::SharedAttributeT< agx::Real32 > * emptyThresholdAttribute
AGXPHYSICS_EXPORT agx::UInt32 & searchCost()
Pointer to a entity instance of type Physics.HierarchicalGrid.Cell.
AGXPHYSICS_EXPORT agx::Real & sizeAlignment()
AGXPHYSICS_EXPORT agx::Real32 & emptyThreshold()
static agxData::ScalarAttributeT< agx::UInt8 > * numChildrenAttribute
AGXPHYSICS_EXPORT agx::Real & reorderingFrequency()
AGXPHYSICS_EXPORT agx::UInt32 & parent()
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()