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;
103 virtual void configure(agx::TiXmlElement* eEntity)
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);
168 friend class OrientedGeometryBoundPtr;
169 friend class OrientedGeometryBoundInstance;
170 OrientedGeometryBoundSemantics();
199 const OrientedGeometryBoundData*
getData()
const;
224 #ifdef AGX_GENERATED_TOLUA_WRAPPER
226 inline agx::Bound3 const& getLocalBound()
const {
return (*this)->getLocalBound(); }
227 inline agx::Vec3 const& getHalfExtents()
const {
return (*this)->getHalfExtents(); }
228 inline agx::AffineMatrix4x4 const& getInvTransform()
const {
return (*this)->getInvTransform(); }
232 inline void setLocalBound(
agx::Bound3 const& value) { (*this)->setLocalBound(value); }
233 inline void setHalfExtents(
agx::Vec3 const& value) { (*this)->setHalfExtents(value); }
234 inline void setInvTransform(
agx::AffineMatrix4x4 const& value) { (*this)->setInvTransform(value); }
245 OrientedGeometryBoundInstance();
246 OrientedGeometryBoundInstance(OrientedGeometryBoundData* data,
agx::Index index);
251 OrientedGeometryBoundData* getData();
252 const OrientedGeometryBoundData* getData()
const;
289 inline OrientedGeometryBoundInstance
agx::Physics::HierarchicalGrid::OrientedGeometryBoundData::operator[] (
size_t index) {
return OrientedGeometryBoundInstance(
this, (
agx::Index)index); }
296 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
303 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
311 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
320 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
327 AGX_FORCE_INLINE OrientedGeometryBoundSemantics* OrientedGeometryBoundPtr::operator->() {
return (OrientedGeometryBoundSemantics* )
this; }
328 AGX_FORCE_INLINE const OrientedGeometryBoundSemantics* OrientedGeometryBoundPtr::operator->()
const {
return (
const OrientedGeometryBoundSemantics* )
this; }
335 AGX_FORCE_INLINE agx::Bound3& OrientedGeometryBoundPtr::localBound() { verifyIndex();
return getData()->localBound[calculateIndex()]; }
336 AGX_FORCE_INLINE agx::Bound3 const& OrientedGeometryBoundPtr::localBound()
const { verifyIndex();
return getData()->localBound[calculateIndex()]; }
338 AGX_FORCE_INLINE agx::Vec3& OrientedGeometryBoundPtr::halfExtents() { verifyIndex();
return getData()->halfExtents[calculateIndex()]; }
339 AGX_FORCE_INLINE agx::Vec3 const& OrientedGeometryBoundPtr::halfExtents()
const { verifyIndex();
return getData()->halfExtents[calculateIndex()]; }
345 AGX_FORCE_INLINE OrientedGeometryBoundInstance::OrientedGeometryBoundInstance() {}
346 AGX_FORCE_INLINE OrientedGeometryBoundInstance::OrientedGeometryBoundInstance(OrientedGeometryBoundData* data,
agx::Index index) :
agxData::EntityInstance(data, index) {}
351 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
358 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
369 AGX_FORCE_INLINE agx::Bound3& OrientedGeometryBoundInstance::localBound() { verifyIndex();
return getData()->localBound[getIndex()]; }
370 AGX_FORCE_INLINE agx::Bound3 const& OrientedGeometryBoundInstance::localBound()
const { verifyIndex();
return getData()->localBound[getIndex()]; }
372 AGX_FORCE_INLINE agx::Vec3& OrientedGeometryBoundInstance::halfExtents() { verifyIndex();
return getData()->halfExtents[getIndex()]; }
373 AGX_FORCE_INLINE agx::Vec3 const& OrientedGeometryBoundInstance::halfExtents()
const { verifyIndex();
return getData()->halfExtents[getIndex()]; }
379 AGX_FORCE_INLINE OrientedGeometryBoundSemantics::OrientedGeometryBoundSemantics() {}
387 AGX_TYPE_BINDING(
agx::Physics::HierarchicalGrid::OrientedGeometryBoundInstance, "Physics.HierarchicalGrid.OrientedGeometryBoundInstance")
390 # pragma warning(pop)
393 #undef AGX_ENTITY_WRAPPER
394 #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
Pointer to a entity instance of type Physics.Geometry.
Abstract description of the data attributes for the Physics.HierarchicalGrid.OrientedGeometryBound en...
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
void construct(agx::Physics::HierarchicalGrid::OrientedGeometryBoundPtr orientedGeometryBound)
virtual ~OrientedGeometryBoundModel()
static agxData::ScalarAttributeT< agx::Physics::GeometryPtr > * geometryAttribute
OrientedGeometryBoundPtr PtrT
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
virtual void construct(agxData::EntityPtr instance) override
virtual void initAttributeAccessors() override
static agxData::ScalarAttributeT< agx::Vec3 > * halfExtentsAttribute
static agxData::EntityStorage * defaultStorage()
virtual void configure(agx::TiXmlElement *eEntity) override
OrientedGeometryBoundModel(const agx::String &name="OrientedGeometryBound")
static OrientedGeometryBoundPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::ScalarAttributeT< agx::Bound3 > * localBoundAttribute
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * invTransformAttribute
static OrientedGeometryBoundModel * instance()
Pointer to a entity instance of type Physics.HierarchicalGrid.OrientedGeometryBound.
AGXPHYSICS_EXPORT agx::Vec3 & halfExtents()
AGXPHYSICS_EXPORT agx::Bound3 const & localBound() const
AGXPHYSICS_EXPORT OrientedGeometryBoundPtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT agx::AffineMatrix4x4 & invTransform()
OrientedGeometryBoundInstance InstanceType
const OrientedGeometryBoundData * getData() const
AGXPHYSICS_EXPORT agx::Physics::GeometryPtr const & geometry() const
AGXPHYSICS_EXPORT OrientedGeometryBoundSemantics * operator->()
OrientedGeometryBoundData DataType
AGXPHYSICS_EXPORT agx::Vec3 const & halfExtents() const
AGXPHYSICS_EXPORT agx::Bound3 & localBound()
AGXPHYSICS_EXPORT const OrientedGeometryBoundInstance instance() const
OrientedGeometryBoundData * getData()
AGXPHYSICS_EXPORT agx::AffineMatrix4x4 const & invTransform() const
AGXPHYSICS_EXPORT OrientedGeometryBoundInstance instance()
OrientedGeometryBoundModel ModelType
AGXPHYSICS_EXPORT OrientedGeometryBoundPtr()
AGXPHYSICS_EXPORT const OrientedGeometryBoundSemantics * operator->() const
AGXPHYSICS_EXPORT OrientedGeometryBoundPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::Physics::GeometryPtr & geometry()
AGXPHYSICS_EXPORT OrientedGeometryBoundPtr(agxData::EntityStorage *storage, agx::Index id)
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())