21 #ifndef GENERATED_AGX_PHYSICS_GRAPHNODE_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_GRAPHNODE_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 )
49 namespace agxData {
class EntityPtr; }
59 class GraphNodeInstance;
60 class GraphNodeSemantics;
85 virtual void shutdownCleanup()
override;
102 virtual void configure(agx::TiXmlElement* eEntity)
override;
103 virtual void initAttributeAccessors()
override;
110 #ifndef AGX_PHYSICS_GRAPHNODE_DATA_SET_OVERRIDE
111 #define AGX_PHYSICS_GRAPHNODE_DATA_SET
115 GraphNodeInstance operator[] (
size_t index);
143 virtual ~GraphNodeData() {}
144 virtual void setNumElements(
agx::Index numElements)
override;
147 GraphNodeData& operator= (
const GraphNodeData&) {
return *
this; }
183 friend class GraphNodePtr;
184 friend class GraphNodeInstance;
185 GraphNodeSemantics();
213 GraphNodeData* getData();
214 const GraphNodeData* getData()
const;
259 #ifdef AGX_GENERATED_TOLUA_WRAPPER
262 inline agx::UInt8 const& getState()
const {
return (*this)->getState(); }
263 inline agx::UInt32 const& getColor()
const {
return (*this)->getColor(); }
264 inline agx::UInt32 const& getTag()
const {
return (*this)->getTag(); }
266 inline agx::UInt32 const& getIsland()
const {
return (*this)->getIsland(); }
267 inline agx::UInt32 const& getSubindex()
const {
return (*this)->getSubindex(); }
271 inline void setType(
agx::UInt8 const& value) { (*this)->setType(value); }
272 inline void setState(
agx::UInt8 const& value) { (*this)->setState(value); }
273 inline void setColor(
agx::UInt32 const& value) { (*this)->setColor(value); }
274 inline void setTag(
agx::UInt32 const& value) { (*this)->setTag(value); }
276 inline void setIsland(
agx::UInt32 const& value) { (*this)->setIsland(value); }
277 inline void setSubindex(
agx::UInt32 const& value) { (*this)->setSubindex(value); }
289 GraphNodeInstance(GraphNodeData* data,
agx::Index index);
294 GraphNodeData* getData();
295 const GraphNodeData* getData()
const;
352 inline GraphNodeInstance agx::Physics::GraphNodeData::operator[] (
size_t index) {
return GraphNodeInstance(
this, (
agx::Index)index); }
359 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
366 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
374 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
383 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
390 AGX_FORCE_INLINE GraphNodeSemantics* GraphNodePtr::operator->() {
return (GraphNodeSemantics* )
this; }
391 AGX_FORCE_INLINE const GraphNodeSemantics* GraphNodePtr::operator->()
const {
return (
const GraphNodeSemantics* )
this; }
417 AGX_FORCE_INLINE agx::UInt32 const& GraphNodePtr::subindex()
const { verifyIndex();
return getData()->subindex[calculateIndex()]; }
421 AGX_FORCE_INLINE GraphNodeInstance::GraphNodeInstance(GraphNodeData* data,
agx::Index index) : agxData::EntityInstance(data, index) {}
426 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
433 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
473 AGX_TYPE_BINDING(agx::Physics::GraphNodeInstance, "Physics.GraphNodeInstance")
476 # pragma warning(pop)
479 #undef AGX_ENTITY_WRAPPER
480 #undef AGX_ENTITY_NAMESPACE
AGXCORE_EXPORT Type * getType(const agx::String &name)
agxData::EntityData * getData()
static agxData::ScalarAttributeT< agx::UInt8 > * stateAttribute
agxData::EntityInstance instance()
Data storage for a collection of entity instances of a specified EntityModel.
#define agxAssertN(expr, format,...)
agxData::EntityData * getData()
#define AGX_TYPE_BINDING(_Type, _Name)
AGXCORE_EXPORT Model * getModel(const Path &path, const Path &_namespace=Path())
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ScalarAttributeT< agx::UInt32 > * subindexAttribute
#define AGXPHYSICS_EXPORT
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)
agx::String fullPath() const
Type-specific Array used for fast access into the data held by a Buffer.
Vector containing 'raw' data.
EntityPtr & operator=(const EntityPtr &other)=default
Pointer to a entity instance of type Physics.GraphNode.
Abstract description of the data attributes for the Physics.GraphNode entity.
GraphNodeInstance InstanceType
An abstract description of a data entity stored using SOA (structure of arrays) pattern in a EntitySt...
static agxData::ScalarAttributeT< agx::UInt32 > * islandAttribute
static agxData::ScalarAttributeT< agxData::EntityPtr > * sourceAttribute
bool isInstanceOf(agxData::EntityModel *model) const
static agxData::ArrayAttributeT< agx::UInt > * edgesAttribute
AGXPHYSICS_EXPORT GraphNodePtr()
static agxData::ScalarAttributeT< agx::UInt32 > * colorAttribute
static agxData::ScalarAttributeT< agx::UInt8 > * typeAttribute
#define DOXYGEN_END_INTERNAL_BLOCK()
static GraphNodeModel * instance()
#define DOXYGEN_START_INTERNAL_BLOCK()
static agxData::ScalarAttributeT< agx::UInt32 > * tagAttribute