21 #ifndef GENERATED_AGX_PHYSICS_STRONGINTERACTION_H_PLUGIN
22 #define GENERATED_AGX_PHYSICS_STRONGINTERACTION_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 agx {
class StrongInteraction; }
57 class StrongInteractionModel;
58 class StrongInteractionData;
59 class StrongInteractionPtr;
60 class StrongInteractionInstance;
61 class StrongInteractionSemantics;
86 virtual void shutdownCleanup()
override;
98 virtual void configure(agx::TiXmlElement* eEntity)
override;
99 virtual void initAttributeAccessors()
override;
106 #ifndef AGX_PHYSICS_STRONGINTERACTION_DATA_SET_OVERRIDE
107 #define AGX_PHYSICS_STRONGINTERACTION_DATA_SET
108 class AGXPHYSICS_EXPORT StrongInteractionData :
public agx::Physics::InteractionData
111 StrongInteractionInstance operator[] (
size_t index);
126 StrongInteractionData();
129 virtual ~StrongInteractionData() {}
130 virtual void setNumElements(
agx::Index numElements)
override;
133 StrongInteractionData& operator= (
const StrongInteractionData&) {
return *
this; }
159 friend class StrongInteractionPtr;
160 friend class StrongInteractionInstance;
161 StrongInteractionSemantics();
189 StrongInteractionData* getData();
190 const StrongInteractionData* getData()
const;
215 StrongInteractionInstance();
216 StrongInteractionInstance(StrongInteractionData* data,
agx::Index index);
221 StrongInteractionData* getData();
222 const StrongInteractionData* getData()
const;
254 inline StrongInteractionInstance
agx::Physics::StrongInteractionData::operator[] (
size_t index) {
return StrongInteractionInstance(
this, (
agx::Index)index); }
261 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
268 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
276 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
285 "Entity type mismatch. Storage contains entity data for type \'%s\', instance pointer is of type \'%s\'",
292 AGX_FORCE_INLINE StrongInteractionSemantics* StrongInteractionPtr::operator->() {
return (StrongInteractionSemantics* )
this; }
293 AGX_FORCE_INLINE const StrongInteractionSemantics* StrongInteractionPtr::operator->()
const {
return (
const StrongInteractionSemantics* )
this; }
301 AGX_FORCE_INLINE agx::UInt const& StrongInteractionPtr::body1()
const { verifyIndex();
return getData()->body1[calculateIndex()]; }
304 AGX_FORCE_INLINE agx::UInt const& StrongInteractionPtr::body2()
const { verifyIndex();
return getData()->body2[calculateIndex()]; }
308 AGX_FORCE_INLINE StrongInteractionInstance::StrongInteractionInstance(StrongInteractionData* data,
agx::Index index) :
agx::Physics::InteractionInstance(data, index) {}
313 "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\'",
332 AGX_FORCE_INLINE agx::UInt const& StrongInteractionInstance::body1()
const { verifyIndex();
return getData()->body1[getIndex()]; }
335 AGX_FORCE_INLINE agx::UInt const& StrongInteractionInstance::body2()
const { verifyIndex();
return getData()->body2[getIndex()]; }
338 AGX_FORCE_INLINE StrongInteractionSemantics::StrongInteractionSemantics() {}
345 AGX_TYPE_BINDING(
agx::Physics::StrongInteractionInstance, "Physics.StrongInteractionInstance")
348 # pragma warning(pop)
351 #undef AGX_ENTITY_WRAPPER
352 #undef AGX_ENTITY_NAMESPACE