21 #ifndef GENERATED_AGX_PHYSICS_FRAME_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_FRAME_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 )
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;
199 #ifdef AGX_GENERATED_TOLUA_WRAPPER
200 inline agx::AffineMatrix4x4 const& getGlobalTransform()
const {
return (*this)->getGlobalTransform(); }
201 inline agx::AffineMatrix4x4 const& getLocalTransform()
const {
return (*this)->getLocalTransform(); }
204 inline void setGlobalTransform(
agx::AffineMatrix4x4 const& value) { (*this)->setGlobalTransform(value); }
205 inline void setLocalTransform(
agx::AffineMatrix4x4 const& value) { (*this)->setLocalTransform(value); }
220 FrameInstance(FrameData* data,
agx::Index index);
225 FrameData* getData();
226 const FrameData* getData()
const;
253 inline FrameInstance
agx::Physics::FrameData::operator[] (
size_t index) {
return FrameInstance(
this, (
agx::Index)index); }
260 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
267 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
275 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
284 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
291 AGX_FORCE_INLINE FrameSemantics* FramePtr::operator->() {
return (FrameSemantics* )
this; }
292 AGX_FORCE_INLINE const FrameSemantics* FramePtr::operator->()
const {
return (
const FrameSemantics* )
this; }
309 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
316 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
341 # pragma warning(pop)
344 #undef AGX_ENTITY_WRAPPER
345 #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...
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
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 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")
static FrameModel * instance()
virtual void initAttributeAccessors() override
static agxData::EntityStorage * defaultStorage()
static agxData::ScalarAttributeT< agx::AffineMatrix4x4 > * localTransformAttribute
virtual void construct(agxData::EntityPtr instance) override
virtual agxData::EntityData * createData(agxData::EntityStorage *storage) override
Pointer to a entity instance of type Physics.Frame.
AGXPHYSICS_EXPORT agx::AffineMatrix4x4 const & localTransform() const
AGXPHYSICS_EXPORT FramePtr(agxData::EntityStorage *storage, agx::Index id)
AGXPHYSICS_EXPORT FrameInstance instance()
AGXPHYSICS_EXPORT const FrameInstance instance() const
const FrameData * getData() const
AGXPHYSICS_EXPORT agx::AffineMatrix4x4 & globalTransform()
AGXPHYSICS_EXPORT agx::AffineMatrix4x4 const & globalTransform() const
AGXPHYSICS_EXPORT FramePtr(const agxData::EntityPtr &ptr)
AGXPHYSICS_EXPORT FrameSemantics * operator->()
AGXPHYSICS_EXPORT const FrameSemantics * operator->() const
FrameInstance InstanceType
AGXPHYSICS_EXPORT agx::AffineMatrix4x4 & localTransform()
AGXPHYSICS_EXPORT FramePtr()
AGXPHYSICS_EXPORT FramePtr(const agxData::EntityInstance &instance)
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.
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())