Factory for the ElementaryMultiTangentsContactPoint contact model.
More...
#include <ElementaryMultiTangentsContactPoint.h>
|
| | ElementaryMultiTangentsContactPointFactory (UInt numTangents) |
| | Construct given number of friction directions (tangents) to be used for each contact point.
|
| |
| UInt | getNumTangents () const |
| |
| void | setNumTangents (UInt numTangents) |
| | Set number of friction directions (tangents) to be used for each contact point.
|
| |
| size_t | begin () |
| | Begin using 'get' given local index.
|
| |
| virtual ElementaryContactPoint * | createInstance ()=0 |
| | Create a new instance when the requested index exceeds the size of the cache.
|
| |
| void | end () |
| | Flag that the constraint won't call 'get' anymore.
|
| |
| 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();.
|
| |
| const ElementaryContactPointRefVector & | getCache () const |
| |
| void | reset () |
| | Reset the cache counter.
|
| |
| | 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.
|
| |
| Referenced & | operator= (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.
|
| |
◆ ElementaryMultiTangentsContactPointFactory()
| agx::ElementaryMultiTangentsContactPointFactory::ElementaryMultiTangentsContactPointFactory |
( |
UInt |
numTangents | ) |
|
Construct given number of friction directions (tangents) to be used for each contact point.
- Parameters
-
| numTangents | - number of tangents >= 0 |
◆ getNumTangents()
| UInt agx::ElementaryMultiTangentsContactPointFactory::getNumTangents |
( |
| ) |
const |
- Returns
- the number of tangents used for each contact point
◆ setNumTangents()
| void agx::ElementaryMultiTangentsContactPointFactory::setNumTangents |
( |
UInt |
numTangents | ) |
|
Set number of friction directions (tangents) to be used for each contact point.
- Parameters
-
| numTangents | - number of tangents |
The documentation for this class was generated from the following file: