21 #ifndef GENERATED_AGX_PHYSICS_HIERARCHICALGRID_ORIENTEDGEOMETRYBOUND_H_PLUGIN 22 #define GENERATED_AGX_PHYSICS_HIERARCHICALGRID_ORIENTEDGEOMETRYBOUND_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 ) 52 namespace agx {
namespace Physics {
class GeometryPtr; }}
58 namespace HierarchicalGrid
61 class OrientedGeometryBoundModel;
62 class OrientedGeometryBoundData;
63 class OrientedGeometryBoundPtr;
64 class OrientedGeometryBoundInstance;
65 class OrientedGeometryBoundSemantics;
90 virtual void shutdownCleanup()
override;
103 virtual void configure(agx::TiXmlElement* eEntity)
override;
104 virtual void initAttributeAccessors()
override;
111 #ifndef AGX_PHYSICS_HIERARCHICALGRID_ORIENTEDGEOMETRYBOUND_DATA_SET_OVERRIDE 112 #define AGX_PHYSICS_HIERARCHICALGRID_ORIENTEDGEOMETRYBOUND_DATA_SET 116 OrientedGeometryBoundInstance operator[] (
size_t index);
133 OrientedGeometryBoundData();
136 virtual ~OrientedGeometryBoundData() {}
137 virtual void setNumElements(
agx::Index numElements)
override;
140 OrientedGeometryBoundData& operator= (
const OrientedGeometryBoundData&) {
return *
this; }
163 void setHalfExtents(
agx::Vec3 const& value);
169 friend class OrientedGeometryBoundInstance;
170 OrientedGeometryBoundSemantics();
198 OrientedGeometryBoundData* getData();
199 const OrientedGeometryBoundData* getData()
const;
229 OrientedGeometryBoundInstance();
230 OrientedGeometryBoundInstance(OrientedGeometryBoundData* data,
agx::Index index);
235 OrientedGeometryBoundData* getData();
236 const OrientedGeometryBoundData* getData()
const;
273 inline OrientedGeometryBoundInstance
agx::Physics::HierarchicalGrid::OrientedGeometryBoundData::operator[] (
size_t index) {
return OrientedGeometryBoundInstance(
this, (
agx::Index)index); }
280 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
287 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
295 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
304 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
311 AGX_FORCE_INLINE OrientedGeometryBoundSemantics* OrientedGeometryBoundPtr::operator->() {
return (OrientedGeometryBoundSemantics* )
this; }
312 AGX_FORCE_INLINE const OrientedGeometryBoundSemantics* OrientedGeometryBoundPtr::operator->()
const {
return (
const OrientedGeometryBoundSemantics* )
this; }
319 AGX_FORCE_INLINE agx::Bound3& OrientedGeometryBoundPtr::localBound() { verifyIndex();
return getData()->localBound[calculateIndex()]; }
320 AGX_FORCE_INLINE agx::Bound3 const& OrientedGeometryBoundPtr::localBound()
const { verifyIndex();
return getData()->localBound[calculateIndex()]; }
322 AGX_FORCE_INLINE agx::Vec3& OrientedGeometryBoundPtr::halfExtents() { verifyIndex();
return getData()->halfExtents[calculateIndex()]; }
323 AGX_FORCE_INLINE agx::Vec3 const& OrientedGeometryBoundPtr::halfExtents()
const { verifyIndex();
return getData()->halfExtents[calculateIndex()]; }
329 AGX_FORCE_INLINE OrientedGeometryBoundInstance::OrientedGeometryBoundInstance() {}
335 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
342 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
353 AGX_FORCE_INLINE agx::Bound3& OrientedGeometryBoundInstance::localBound() { verifyIndex();
return getData()->localBound[getIndex()]; }
354 AGX_FORCE_INLINE agx::Bound3 const& OrientedGeometryBoundInstance::localBound()
const { verifyIndex();
return getData()->localBound[getIndex()]; }
356 AGX_FORCE_INLINE agx::Vec3& OrientedGeometryBoundInstance::halfExtents() { verifyIndex();
return getData()->halfExtents[getIndex()]; }
357 AGX_FORCE_INLINE agx::Vec3 const& OrientedGeometryBoundInstance::halfExtents()
const { verifyIndex();
return getData()->halfExtents[getIndex()]; }
363 AGX_FORCE_INLINE OrientedGeometryBoundSemantics::OrientedGeometryBoundSemantics() {}
371 AGX_TYPE_BINDING(agx::Physics::HierarchicalGrid::OrientedGeometryBoundInstance,
"Physics.HierarchicalGrid.OrientedGeometryBoundInstance")
374 # pragma warning(pop) 377 #undef AGX_ENTITY_WRAPPER 378 #undef AGX_ENTITY_NAMESPACE OrientedGeometryBoundInstance InstanceType
agxData::EntityData * getData()
Abstract description of the data attributes for the Physics.HierarchicalGrid.OrientedGeometryBound en...
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
Pointer to a entity instance of type Physics.HierarchicalGrid.OrientedGeometryBound.
#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())
#define AGXPHYSICS_EXPORT
OrientedGeometryBoundPtr PtrT
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)
OrientedGeometryBoundData DataType
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * invTransformAttribute
Type-specific Array used for fast access into the data held by a Buffer.
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
OrientedGeometryBoundModel ModelType
Matrix class for rigid transformations (translation, rotation).
Pointer to a entity instance of type Physics.Geometry.
Contains classes for low level data storage for AGX.
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
static agxData::ScalarAttributeT< agx::Bound3 > * localBoundAttribute
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::Vec3 > * halfExtentsAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
static agxData::ScalarAttributeT< agx::Physics::GeometryPtr > * geometryAttribute
#define DOXYGEN_START_INTERNAL_BLOCK()