AGX Dynamics 2.40.0.0
Loading...
Searching...
No Matches
agx::Physics::Particle::ParticleBodyContactConstraintModel Class Reference

Abstract description of the data attributes for the Physics.Particle.ParticleBodyContactConstraint entity. More...

#include <ParticleBodyContactConstraintEntity.h>

+ Inheritance diagram for agx::Physics::Particle::ParticleBodyContactConstraintModel:

Public Types

typedef ParticleBodyContactConstraintPtr PtrT
 
- Public Types inherited from agx::Physics::InteractionModel
typedef InteractionPtr PtrT
 
- Public Types inherited from agxData::EntityModel
typedef agx::Event1< EntityStorage * > StorageEvent
 
- Public Types inherited from agx::Component
typedef Event2< Component *, Object * > ObjectEvent
 Event when adding removing child objects.
 
typedef Callback1< Object * > TraverseCallback
 
- Public Types inherited from agx::Object
typedef agx::observer_ptr< const EventEventConstObserver
 
typedef agx::ref_ptr< const EventEventConstRef
 
typedef agx::observer_ptr< EventEventObserver
 
typedef agx::Vector< EventObserverEventObserverVector
 
typedef agx::VectorPOD< Event * > EventPtrVector
 
typedef agx::ref_ptr< EventEventRef
 
typedef agx::Vector< EventRefEventRefVector
 

Public Member Functions

 ParticleBodyContactConstraintModel (const agx::String &name="ParticleBodyContactConstraint")
 
virtual void shutdownCleanup () override
 This is part of internal cleanup and should not be called by users.
 
- Public Member Functions inherited from agx::Physics::InteractionModel
 InteractionModel (const agx::String &name="Interaction")
 
virtual void shutdownCleanup () override
 This is part of internal cleanup and should not be called by users.
 
- Public Member Functions inherited from agxData::EntityModel
 EntityModel (const agx::Name &name)
 
virtual ~Loader ()
 
void addAttribute (Attribute *attribute)
 Add an attribute to the entity.
 
virtual void configure (agx::TiXmlElement *eEntity)
 
virtual void construct (agxData::EntityPtr)
 
virtual EntityData * createData (EntityStorage *storage)
 
AttributegetAttribute (const agx::Name &name)
 
const AttributegetAttribute (const agx::Name &name) const
 
const AttributePtrVectorgetAttributes () const
 
EntityStoragegetDefaultStorage ()
 
size_t getNumBytes ()
 
size_t getNumBytes (agx::Device *device)
 
EntityModelgetSource ()
 
const EntityModelgetSource () const
 
bool hasConstructor () const
 
virtual void initAttributeAccessors ()
 
virtual EntityModelload ()=0
 
 Loader (const char *modelPath)
 
void print () const
 
void print (std::ostream &stream) const
 Print the registered attributes.
 
void setBaseEntity (EntityModel *base)
 
void setHasConstructor (bool flag)
 
void setUseInstanceTable (bool flag)
 
virtual void shutdownCleanup ()
 
bool useInstanceTable () const
 
- Public Member Functions inherited from agx::Model
 Model (const agx::Name &name, agx::Model *source)
 
 Model (const agx::Name &name, const agx::Name &implementation=agx::Name())
 
virtual void buildNavigationTree (agxJson::Value &eNode) const override
 
agx::String fullInheritancePath () const
 The active instances of this model.
 
agx::String fullName () const
 
agx::String fullPath () const
 
const agx::NamegetImplementationName () const
 
agx::NamespacegetNamespace ()
 
const agx::NamespacegetNamespace () const
 
agx::Path getPath () const
 
agx::Path getPath (const agx::Object *root) const
 
agx::ModelgetSource ()
 
const agx::ModelgetSource () const
 
const agx::StringgetSourcePath () const
 
bool hasParent (const agx::Model *parent) const
 
bool hasSource (const agx::Model *source) const
 
template<typename T >
bool is () const
 Subclass test.
 
bool is (const agx::Model *other) const
 
bool isShutdown () const
 
void setSource (Model *source)
 
void setSourcePath (const String &path)
 
- Public Member Functions inherited from agx::Component
 Component (const agx::Name &name=agx::Name(), agx::Model *model=agx::Component::ClassModel(), agx::Device *device=nullptr)
 
virtual void addObject (agx::Object *object, bool assignContext=true)
 Add an object to the component.
 
virtual String autoComplete (const String &partialName, StringVector &matchingNames) const
 
virtual void buildNavigationTree (agxJson::Value &eNode) const override
 
void configure (Model *model)
 
virtual void configure (TiXmlElement *eComponent) override
 
agx::DevicegetDevice ()
 
template<typename T >
T * getDevice ()
 
const agx::DevicegetDevice () const
 
template<typename T >
const T * getDevice () const
 
size_t getNumObjects (const agx::Name &name) const
 
agx::ObjectgetObject (const agx::Name &name, agx::Model *model, size_t index=0)
 
const agx::ObjectgetObject (const agx::Name &name, agx::Model *model, size_t index=0) const
 
agx::ObjectgetObject (const agx::Name &name, size_t index=0)
 
template<typename T >
T * getObject (const agx::Name &name, size_t index=0)
 
const agx::ObjectgetObject (const agx::Name &name, size_t index=0) const
 
template<typename T >
const T * getObject (const agx::Name &name, size_t index=0) const
 
const agx::ObjectRefVectorgetObjects () const
 
template<typename T >
void getObjects (agx::ObjectPtrVector &result, bool recursive=false) const
 
void getObjects (agx::ObjectPtrVector &result, const agx::Model *model, bool recursive=false) const
 
virtual ObjectgetResourceImpl (const Path &path, agx::Model *model) override
 
virtual void printSubtree () const override
 
void printSubtree (std::ostream &stream, int depth=0) const
 
virtual void rebind () override
 
void removeAllObjects ()
 Remove all components.
 
virtual void removeObject (agx::Object *object)
 Remove an object from the component.
 
void removeObject (const agx::Name &name, size_t index=0)
 Remove an object with a specified name (and optional index) from the component.
 
virtual void snapshot (TiXmlNode *eParent, const String &directory) const override
 
void traverse (ComponentVisitor *)
 
void traverse (const TraverseCallback &callback)
 
- Public Member Functions inherited from agx::Object
 Object (const Name &name=Name(), Model *model=Object::ClassModel())
 
void addListener (EventListener *listener)
 
virtual void buildNavigationTree (agxJson::Value &eNode) const
 
virtual void configure (TiXmlElement *)
 
agx::String fullName () const
 
agx::String fullPath () const
 
agx::String fullPath (const agx::Object *root) const
 
template<typename T >
T * getAutoScopedResource (const agx::Path &path)
 
template<typename T >
const T * getAutoScopedResource (const agx::Path &path) const
 
agx::ObjectgetAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr)
 
const agx::ObjectgetAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) const
 
agx::ObjectgetContext ()
 
template<typename T >
T * getContext ()
 
const agx::ObjectgetContext () const
 
template<typename T >
const T * getContext () const
 
agx::UInt32 getId () const
 
const agx::NamegetImplementationName () const
 
agx::ModelgetModel ()
 
const agx::ModelgetModel () const
 
const agx::NamegetName () const
 
agx::ObjectgetNextSibling ()
 
const agx::ObjectgetNextSibling () const
 
agx::Path getPath () const
 
agx::Path getPath (const agx::Object *root) const
 
template<typename T >
T * getResource (const agx::Path &path)
 
template<typename T >
const T * getResource (const agx::Path &path) const
 
agx::ObjectgetResource (const agx::Path &path, agx::Model *model=nullptr)
 
const agx::ObjectgetResource (const agx::Path &path, agx::Model *model=nullptr) const
 
virtual agx::ObjectgetResourceImpl (const agx::Path &path, agx::Model *model)
 
agx::ObjectgetRootContext ()
 
const agx::ObjectgetRootContext () const
 
bool hasListener (EventListener *listener)
 
bool hasParent (const agx::Object *node) const
 
bool isUnique () const
 
virtual void printSubtree () const
 
virtual void rebind ()
 
void removeListener (EventListener *listener)
 
virtual void save (TiXmlElement *) const
 
virtual void setContext (agx::Object *context)
 
void setId (UInt32 id)
 
void setModel (agx::Model *model)
 Set the object model (handled automatically).
 
void setName (const agx::Name &name)
 Set the name of the object.
 
virtual void snapshot (TiXmlNode *, const String &) const
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referencedoperator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 

Static Public Member Functions

static ParticleBodyContactConstraintPtr createInstance ()
 Create and return a pointer to a new instance in the default storage for this entity model.
 
static agxData::EntityStoragedefaultStorage ()
 
static ParticleBodyContactConstraintModelinstance ()
 
- Static Public Member Functions inherited from agx::Physics::InteractionModel
static InteractionPtr createInstance ()
 Create and return a pointer to a new instance in the default storage for this entity model.
 
static agxData::EntityStoragedefaultStorage ()
 
static InteractionModelinstance ()
 
- Static Public Member Functions inherited from agxData::EntityModel
static agx::ModelClassModel ()
 
static bool findEntityPath (const agx::Path &entityPath, agx::Path &fullEntityPath, agx::String &filePath, agx::String &classPath, agx::TiXmlElement *relativeRoot=nullptr, agxIO::Environment::Type envType=agxIO::Environment::RUNTIME_PATH)
 
static EntityModelgetRootModel ()
 
static bool getThreadSafe ()
 
static EntityModelload (agx::TiXmlElement *eEntity, agx::Device *device)
 
static agx::Namespaceroot ()
 
static void setThreadSafe (bool flag)
 
- Static Public Member Functions inherited from agx::Model
static ModelClassModel ()
 
static agx::ModelcreateModel (const agx::Path &path, const agx::Name &implementation, agx::Model *source)
 
static bool getDiskPath (const Path &modelPath, Path &fullModelPath, String &filePath, TiXmlElement *relativeRoot, agxIO::Environment::Type envType, const String &fileExtension)
 Locate a model definition file.
 
static agx::String getFileSystemRoot (agx::TiXmlElement *element, agxIO::Environment::Type pathType=agxIO::Environment::RUNTIME_PATH)
 
static agx::Path getNamespace (agx::TiXmlElement *element, agxIO::Environment::Type pathType=agxIO::Environment::RUNTIME_PATH)
 
static agx::Path getNamespace (const agx::String &filePath, agxIO::Environment::Type pathType=agxIO::Environment::RUNTIME_PATH)
 
static agx::Path getPath (agx::TiXmlElement *element, agx::Name &implementation, agxIO::Environment::Type pathType=agxIO::Environment::RUNTIME_PATH)
 
static agx::Path getPath (agx::TiXmlElement *element, agxIO::Environment::Type pathType=agxIO::Environment::RUNTIME_PATH)
 
static agx::Path getPath (const agx::String &filePath, agxIO::Environment::Type pathType=agxIO::Environment::RUNTIME_PATH)
 
static void parsePathString (const agx::String &pathStr, agx::Path &path, agx::Name &implementation)
 
static agx::Namespaceroot ()
 
- Static Public Member Functions inherited from agx::Component
static Component_load (TiXmlElement *eComponent, Device *device)
 
static agx::ModelClassModel ()
 
static Componentload (const Path &path, const Name &implementation, Device *device, const Path &_namespace=Path())
 
static Componentload (const String &path, const Path &_namespace=Path())
 
static Componentload (const String &path, Device *device, const Path &_namespace=Path())
 
static Componentload (TiXmlElement *eComponent, Device *device)
 
- Static Public Member Functions inherited from agx::Object
static agx::ModelClassModel ()
 
static agx::String generateName (const agx::String &bindPath)
 
static const HashSet< Object * > & getActiveObjects ()
 
static bool getEnableRebind ()
 Should rebinding be allowed? Right now a global setting.
 
static Objectload (const String &path, Device *device, const String &type, const String &attribute, const String &value)
 
template<typename T >
static T * load (const String &path, Device *device, const String &type, const String &attribute, const String &value)
 
static Objectload (const String &path, Device *device, const String &type="", size_t instance=0)
 
template<typename T >
static T * load (const String &path, Device *device, const String &type="", size_t instance=0)
 
static void load (const String &path, Device *device, ObjectPtrVector &loadedObjects)
 
static Objectload (TiXmlElement *eObject, Device *device)
 
template<typename T >
static T * load (TiXmlElement *eObject, Device *device)
 
static TiXmlDocument openDocument (const String &path)
 
static void setEnableRebind (bool flag)
 Sets if rebinding of objects should be allowed (Right now a global setting).
 
- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 

Static Public Attributes

static agxData::ScalarAttributeT< agx::UInt32 > * bodyAttribute
 
static agxData::ScalarAttributeT< agx::UInt32 > * contactIndexAttribute
 
static agxData::ScalarAttributeT< agx::ParticleBodyContactJacobian > * GAttribute
 
static agxData::ScalarAttributeT< agx::ParticleBodyContactJacobian > * GMInvAttribute
 
static agxData::ScalarAttributeT< agx::Bool > * isImpactingAttribute
 
static agxData::ScalarAttributeT< agx::UInt32 > * materialIndexAttribute
 
static agxData::ScalarAttributeT< agx::UInt32 > * particleAttribute
 
- Static Public Attributes inherited from agx::Physics::InteractionModel
static agxData::ScalarAttributeT< agx::Physics::GraphNodePtr > * graphNodeAttribute
 
static agxData::PointerAttributeT< agx::SolveModel * > * solveModelAttribute
 
- Static Public Attributes inherited from agxData::EntityModel
static ScalarAttributeT< EntityPtr > * instanceAttribute
 

Protected Member Functions

virtual ~ParticleBodyContactConstraintModel ()
 
virtual void configure (agx::TiXmlElement *eEntity) override
 
void construct (agx::Physics::Particle::ParticleBodyContactConstraintPtr particleBodyContactConstraint)
 
virtual void construct (agxData::EntityPtr instance) override
 
virtual agxData::EntityData * createData (agxData::EntityStorage *storage) override
 
virtual void initAttributeAccessors () override
 
- Protected Member Functions inherited from agx::Physics::InteractionModel
virtual ~InteractionModel ()
 
virtual void configure (agx::TiXmlElement *eEntity) override
 
void construct (agx::Physics::InteractionPtr interaction)
 
virtual void construct (agxData::EntityPtr instance) override
 
virtual agxData::EntityData * createData (agxData::EntityStorage *storage) override
 
virtual void initAttributeAccessors () override
 
- Protected Member Functions inherited from agxData::EntityModel
virtual ~EntityModel ()
 
void addChild (EntityModel *child)
 
EntityPtr createInstanceWrapper ()
 
void propagateNewAttribute (Attribute *attribute)
 
void removeChild (EntityModel *child)
 
- Protected Member Functions inherited from agx::Model
virtual ~Model ()
 
- Protected Member Functions inherited from agx::Component
virtual ~Component ()
 
String expandAutoCompletionMatch (const String &query, const StringVector &matchingNames) const
 
void setDevice (Device *device)
 
- Protected Member Functions inherited from agx::Object
virtual ~Object ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Public Attributes inherited from agxData::EntityModel
StorageEvent storageCreationEvent
 
- Public Attributes inherited from agx::Component
ObjectEvent addObjectEvent
 
ObjectEvent removeObjectEvent
 
- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandlergetDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
 
- Protected Attributes inherited from agx::Model
bool m_isShutdown
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Abstract description of the data attributes for the Physics.Particle.ParticleBodyContactConstraint entity.

Definition at line 71 of file ParticleBodyContactConstraintEntity.h.

Member Typedef Documentation

◆ PtrT

Constructor & Destructor Documentation

◆ ParticleBodyContactConstraintModel()

agx::Physics::Particle::ParticleBodyContactConstraintModel::ParticleBodyContactConstraintModel ( const agx::String name = "ParticleBodyContactConstraint")

◆ ~ParticleBodyContactConstraintModel()

virtual agx::Physics::Particle::ParticleBodyContactConstraintModel::~ParticleBodyContactConstraintModel ( )
protectedvirtual

Member Function Documentation

◆ configure()

virtual void agx::Physics::Particle::ParticleBodyContactConstraintModel::configure ( agx::TiXmlElement *  eEntity)
overrideprotectedvirtual

Reimplemented from agx::Physics::InteractionModel.

◆ construct() [1/2]

void agx::Physics::Particle::ParticleBodyContactConstraintModel::construct ( agx::Physics::Particle::ParticleBodyContactConstraintPtr  particleBodyContactConstraint)
protected

◆ construct() [2/2]

virtual void agx::Physics::Particle::ParticleBodyContactConstraintModel::construct ( agxData::EntityPtr  instance)
overrideprotectedvirtual

Reimplemented from agx::Physics::InteractionModel.

◆ createData()

virtual agxData::EntityData * agx::Physics::Particle::ParticleBodyContactConstraintModel::createData ( agxData::EntityStorage storage)
overrideprotectedvirtual

Reimplemented from agx::Physics::InteractionModel.

◆ createInstance()

static ParticleBodyContactConstraintPtr agx::Physics::Particle::ParticleBodyContactConstraintModel::createInstance ( )
static

Create and return a pointer to a new instance in the default storage for this entity model.

◆ defaultStorage()

static agxData::EntityStorage * agx::Physics::Particle::ParticleBodyContactConstraintModel::defaultStorage ( )
static
Returns
The default storage for this entity model.

◆ initAttributeAccessors()

virtual void agx::Physics::Particle::ParticleBodyContactConstraintModel::initAttributeAccessors ( )
overrideprotectedvirtual

Reimplemented from agx::Physics::InteractionModel.

◆ instance()

static ParticleBodyContactConstraintModel * agx::Physics::Particle::ParticleBodyContactConstraintModel::instance ( )
static
Returns
The entity model singleton.

◆ shutdownCleanup()

virtual void agx::Physics::Particle::ParticleBodyContactConstraintModel::shutdownCleanup ( )
overridevirtual

This is part of internal cleanup and should not be called by users.

Reimplemented from agx::Physics::InteractionModel.

Member Data Documentation

◆ bodyAttribute

agxData::ScalarAttributeT< agx::UInt32 >* agx::Physics::Particle::ParticleBodyContactConstraintModel::bodyAttribute
static

Definition at line 94 of file ParticleBodyContactConstraintEntity.h.

◆ contactIndexAttribute

agxData::ScalarAttributeT< agx::UInt32 >* agx::Physics::Particle::ParticleBodyContactConstraintModel::contactIndexAttribute
static

Definition at line 95 of file ParticleBodyContactConstraintEntity.h.

◆ GAttribute

agxData::ScalarAttributeT< agx::ParticleBodyContactJacobian >* agx::Physics::Particle::ParticleBodyContactConstraintModel::GAttribute
static

Definition at line 98 of file ParticleBodyContactConstraintEntity.h.

◆ GMInvAttribute

agxData::ScalarAttributeT< agx::ParticleBodyContactJacobian >* agx::Physics::Particle::ParticleBodyContactConstraintModel::GMInvAttribute
static

Definition at line 99 of file ParticleBodyContactConstraintEntity.h.

◆ isImpactingAttribute

agxData::ScalarAttributeT< agx::Bool >* agx::Physics::Particle::ParticleBodyContactConstraintModel::isImpactingAttribute
static

Definition at line 97 of file ParticleBodyContactConstraintEntity.h.

◆ materialIndexAttribute

agxData::ScalarAttributeT< agx::UInt32 >* agx::Physics::Particle::ParticleBodyContactConstraintModel::materialIndexAttribute
static

Definition at line 96 of file ParticleBodyContactConstraintEntity.h.

◆ particleAttribute

agxData::ScalarAttributeT< agx::UInt32 >* agx::Physics::Particle::ParticleBodyContactConstraintModel::particleAttribute
static

Definition at line 93 of file ParticleBodyContactConstraintEntity.h.


The documentation for this class was generated from the following file: