21#ifndef GENERATED_AGX_PHYSICS_GEOMETRYPAIR_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_GEOMETRYPAIR_H_PLUGIN
24#define AGX_ENTITY_WRAPPER 1
30# pragma warning( disable : 4505 )
32# pragma warning( disable : 4251 )
34# pragma warning( disable : 4355 )
36# pragma warning( disable: 4714 )
49namespace agx {
namespace Physics {
class GeometryPtr; }}
50namespace agx {
namespace Physics {
class GeometryPtr; }}
57 class GeometryPairModel;
58 class GeometryPairData;
59 class GeometryPairPtr;
60 class GeometryPairInstance;
61 class GeometryPairSemantics;
97 virtual void configure(agx::TiXmlElement* eEntity)
override;
105 #ifndef AGX_PHYSICS_GEOMETRYPAIR_DATA_SET_OVERRIDE
106 #define AGX_PHYSICS_GEOMETRYPAIR_DATA_SET
110 GeometryPairInstance operator[] (
size_t index);
126 virtual ~GeometryPairData() {}
127 virtual void setNumElements(
agx::Index numElements)
override;
130 GeometryPairData& operator= (
const GeometryPairData&) {
return *
this; }
154 friend class GeometryPairPtr;
155 friend class GeometryPairInstance;
156 GeometryPairSemantics();
205 GeometryPairInstance();
206 GeometryPairInstance(GeometryPairData* data,
agx::Index index);
211 GeometryPairData* getData();
212 const GeometryPairData* getData()
const;
239 inline GeometryPairInstance
agx::Physics::GeometryPairData::operator[] (
size_t index) {
return GeometryPairInstance(
this, (
agx::Index)index); }
246 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
253 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
261 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
262 EntityPtr::getModel()->fullPath().c_str(), GeometryPairModel::instance()->fullPath().c_str());
270 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
271 EntityPtr::getModel()->fullPath().c_str(), GeometryPairModel::instance()->fullPath().c_str());
277 AGX_FORCE_INLINE GeometryPairSemantics* GeometryPairPtr::operator->() {
return (GeometryPairSemantics* )
this; }
278 AGX_FORCE_INLINE const GeometryPairSemantics* GeometryPairPtr::operator->()
const {
return (
const GeometryPairSemantics* )
this; }
295 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
302 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
330#undef AGX_ENTITY_WRAPPER
331#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...
EntityPtr & operator=(const EntityPtr &other)=default
bool isInstanceOf(agxData::EntityModel *model) const
agxData::EntityData * getData()
agxData::EntityInstance instance()
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.GeometryPair entity.
virtual void initAttributeAccessors() override
void construct(agx::Physics::GeometryPairPtr geometryPair)
virtual ~GeometryPairModel()
virtual void configure(agx::TiXmlElement *eEntity) override
virtual void construct(agxData::EntityPtr instance) override
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
static agxData::ScalarAttributeT< agx::Physics::GeometryPtr > * geometry2Attribute
static agxData::EntityStorage * defaultStorage()
static GeometryPairPtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
static agxData::ScalarAttributeT< agx::Physics::GeometryPtr > * geometry1Attribute
static GeometryPairModel * instance()
GeometryPairModel(const agx::String &name="GeometryPair")
Pointer to a entity instance of type Physics.GeometryPair.
AGXPHYSICS_EXPORT agx::Physics::GeometryPtr & geometry2()
GeometryPairData DataType
GeometryPairInstance InstanceType
AGXPHYSICS_EXPORT GeometryPairInstance instance()
AGXPHYSICS_EXPORT GeometryPairPtr(const agxData::EntityInstance &instance)
GeometryPairModel ModelType
AGXPHYSICS_EXPORT GeometryPairPtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT const GeometryPairInstance instance() const
AGXPHYSICS_EXPORT agx::Physics::GeometryPtr const & geometry2() const
const GeometryPairData * getData() const
AGXPHYSICS_EXPORT GeometryPairPtr(agxData::EntityStorage *storage, agx::Index id)
GeometryPairData * getData()
AGXPHYSICS_EXPORT GeometryPairSemantics * operator->()
AGXPHYSICS_EXPORT agx::Physics::GeometryPtr const & geometry1() const
AGXPHYSICS_EXPORT const GeometryPairSemantics * operator->() const
AGXPHYSICS_EXPORT agx::Physics::GeometryPtr & geometry1()
AGXPHYSICS_EXPORT GeometryPairPtr()
Pointer to a entity instance of type Physics.Geometry.
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.