|
AGX Dynamics
2.35.0.1
|
Factory for the ElementaryMultiTangentsContactPoint contact model. More...
#include <ElementaryMultiTangentsContactPoint.h>
Inheritance diagram for agx::ElementaryMultiTangentsContactPointFactory:Public Member Functions | |
| ElementaryMultiTangentsContactPointFactory (UInt numTangents) | |
| Construct given number of friction directions (tangents) to be used for each contact point. More... | |
| UInt | getNumTangents () const |
| void | setNumTangents (UInt numTangents) |
| Set number of friction directions (tangents) to be used for each contact point. More... | |
Public Member Functions inherited from agx::ElementaryContactPointFactory | |
| size_t | begin () |
| Begin using 'get' given local index. More... | |
| virtual ElementaryContactPoint * | createInstance ()=0 |
| Create a new instance when the requested index exceeds the size of the cache. More... | |
| void | end () |
| Flag that the constraint won't call 'get' anymore. More... | |
| ElementaryContactPoint * | get (size_t localIndex) |
| Returns an instance at the given index in the cache, e.g., this method can be used as (in a constraint implementation): factory->begin(); m_ec.push_back( factory->get( m_ec.size() ) ); m_ec.push_back( factory->get( m_ec.size() ) ); factory->end();. More... | |
| const ElementaryContactPointRefVector & | getCache () const |
| void | reset () |
| Reset the cache counter. More... | |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions inherited from agx::ElementaryContactPointFactory | |
| ElementaryContactPointFactory () | |
| virtual | ~ElementaryContactPointFactory () |
| void | increaseCache (size_t size) |
| Increases the cache with the given size. More... | |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Static Protected Member Functions inherited from agx::Referenced | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Factory for the ElementaryMultiTangentsContactPoint contact model.
Definition at line 70 of file ElementaryMultiTangentsContactPoint.h.
| agx::ElementaryMultiTangentsContactPointFactory::ElementaryMultiTangentsContactPointFactory | ( | UInt | numTangents | ) |
Construct given number of friction directions (tangents) to be used for each contact point.
| numTangents | - number of tangents >= 0 |
| UInt agx::ElementaryMultiTangentsContactPointFactory::getNumTangents | ( | ) | const |
| void agx::ElementaryMultiTangentsContactPointFactory::setNumTangents | ( | UInt | numTangents | ) |
Set number of friction directions (tangents) to be used for each contact point.
| numTangents | - number of tangents |