21#ifndef GENERATED_AGX_PHYSICS_FRAME_H_PLUGIN
22#define GENERATED_AGX_PHYSICS_FRAME_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 )
96 virtual void configure(agx::TiXmlElement* eEntity)
override;
104 #ifndef AGX_PHYSICS_FRAME_DATA_SET_OVERRIDE
105 #define AGX_PHYSICS_FRAME_DATA_SET
109 FrameInstance operator[] (
size_t index);
125 virtual ~FrameData() {}
126 virtual void setNumElements(
agx::Index numElements)
override;
129 FrameData& operator= (
const FrameData&) {
return *
this; }
153 friend class FramePtr;
154 friend class FrameInstance;
208 FrameInstance(FrameData* data,
agx::Index index);
213 FrameData* getData();
214 const FrameData* getData()
const;
241 inline FrameInstance
agx::Physics::FrameData::operator[] (
size_t index) {
return FrameInstance(
this, (
agx::Index)index); }
248 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
255 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
263 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
264 EntityPtr::getModel()->fullPath().c_str(), FrameModel::instance()->fullPath().c_str());
272 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
273 EntityPtr::getModel()->fullPath().c_str(), FrameModel::instance()->fullPath().c_str());
279 AGX_FORCE_INLINE FrameSemantics* FramePtr::operator->() {
return (FrameSemantics* )
this; }
280 AGX_FORCE_INLINE const FrameSemantics* FramePtr::operator->()
const {
return (
const FrameSemantics* )
this; }
297 "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\'",
332#undef AGX_ENTITY_WRAPPER
333#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()
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.Frame entity.
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * globalTransformAttribute
virtual void shutdownCleanup() override
This is part of internal cleanup and should not be called by users.
void construct(agx::Physics::FramePtr frame)
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
virtual void configure(agx::TiXmlElement *eEntity) override
static FramePtr createInstance()
Create and return a pointer to a new instance in the default storage for this entity model.
FrameModel(const agx::String &name="Frame")
virtual void initAttributeAccessors() override
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * localTransformAttribute
static agxData::EntityStorage * defaultStorage()
virtual void construct(agxData::EntityPtr instance) override
static FrameModel * instance()
Pointer to a entity instance of type Physics.Frame.
AGXPHYSICS_EXPORT FramePtr(agxData::EntityStorage *storage, agx::Index id)
const FrameData * getData() const
AGXPHYSICS_EXPORT const FrameSemantics * operator->() const
AGXPHYSICS_EXPORT FrameInstance instance()
AGXPHYSICS_EXPORT const FrameInstance instance() const
AGXPHYSICS_EXPORT agx::AffineMatrix4x4 & globalTransform()
AGXPHYSICS_EXPORT FramePtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT agx::AffineMatrix4x4 const & globalTransform() const
FrameInstance InstanceType
AGXPHYSICS_EXPORT agx::AffineMatrix4x4 & localTransform()
AGXPHYSICS_EXPORT agx::AffineMatrix4x4 const & localTransform() const
AGXPHYSICS_EXPORT FramePtr()
AGXPHYSICS_EXPORT FramePtr(const agxData::EntityInstance &instance)
AGXPHYSICS_EXPORT FrameSemantics * operator->()
Abstract description of the data attributes for the Referenced entity.
Pointer to a entity instance of type Referenced.
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.
agxData::EntityRef< FramePtr > FrameRef
The agx namespace contains the dynamics/math part of the AGX Dynamics API.