#include <WireContactSolver.h>
|
| | WireParticle (Vec3 position, Vec3 edgeStart, Vec3 edgeEnd, Real mass, Real velocity=Real(0), Real normalForce=0, Real frictionCoeff=0) |
| |
| void | addToTotalForce (Real constraintForce) |
| |
| void | applyVelocityDamping () |
| |
| 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 |
| |
| Vec3 | getEdge () |
| |
| Real | getExternalForce () const |
| |
| Real | getFrictionCoefficient () |
| |
| Real | getInvMass () |
| |
| Real | getMass () |
| |
| Real | getNormalForce () const |
| |
| Vec3 | getPosition () const |
| |
| int | getReferenceCount () const |
| |
| Real | getTotalForce () |
| |
| Real | getVelocity () const |
| |
| void | integrateExternalForce (Real timestep) |
| |
| template<typename T > |
| bool | is () const |
| | Subclass test. 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 | resetTotalForce () |
| |
| void | setEdge (Vec3 edge) |
| |
| void | setExternalForce (Vec3 externalForce) |
| |
| void | setFrictionCoefficient (Real frictionCoeff) |
| |
| void | setNormalForce (Real normalForce) |
| |
| void | setPosition (Vec3 pos) |
| |
| void | setVelocity (Real velocity) |
| |
| 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...
|
| |
| void | updatePosition (Real timestep, Real maxVelocity=agx::Infinity) |
| |
Definition at line 29 of file WireContactSolver.h.
◆ WireParticle()
| agx::WireParticle::WireParticle |
( |
Vec3 |
position, |
|
|
Vec3 |
edgeStart, |
|
|
Vec3 |
edgeEnd, |
|
|
Real |
mass, |
|
|
Real |
velocity = Real(0), |
|
|
Real |
normalForce = 0, |
|
|
Real |
frictionCoeff = 0 |
|
) |
| |
|
inline |
◆ ~WireParticle()
| virtual agx::WireParticle::~WireParticle |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ addToTotalForce()
| void agx::WireParticle::addToTotalForce |
( |
Real |
constraintForce | ) |
|
|
inline |
◆ allocateObserverVector()
| void agx::Referenced::allocateObserverVector |
( |
| ) |
const |
|
protectedinherited |
◆ applyVelocityDamping()
| void agx::WireParticle::applyVelocityDamping |
( |
| ) |
|
◆ as() [1/2]
template<typename T >
| T* agx::Referenced::as |
( |
| ) |
|
|
inherited |
◆ as() [2/2]
template<typename T >
| const T* agx::Referenced::as |
( |
| ) |
const |
|
inherited |
◆ asSafe() [1/2]
template<typename T >
| T* agx::Referenced::asSafe |
( |
| ) |
|
|
inherited |
◆ asSafe() [2/2]
template<typename T >
| const T* agx::Referenced::asSafe |
( |
| ) |
const |
|
inherited |
◆ deleteUsingDeleteHandler()
| void agx::Referenced::deleteUsingDeleteHandler |
( |
| ) |
const |
|
protectedinherited |
◆ getDeleteHandler()
◆ getEdge()
| Vec3 agx::WireParticle::getEdge |
( |
| ) |
|
|
inline |
◆ getExternalForce()
| Real agx::WireParticle::getExternalForce |
( |
| ) |
const |
|
inline |
◆ getFrictionCoefficient()
| Real agx::WireParticle::getFrictionCoefficient |
( |
| ) |
|
|
inline |
◆ getInvMass()
| Real agx::WireParticle::getInvMass |
( |
| ) |
|
|
inline |
◆ getMass()
| Real agx::WireParticle::getMass |
( |
| ) |
|
|
inline |
◆ getNormalForce()
| Real agx::WireParticle::getNormalForce |
( |
| ) |
const |
|
inline |
◆ getPosition()
| Vec3 agx::WireParticle::getPosition |
( |
| ) |
const |
|
inline |
◆ getReferenceCount()
| int agx::Referenced::getReferenceCount |
( |
| ) |
const |
|
inherited |
- Returns
- the number pointers currently referencing this object.
◆ getTotalForce()
| Real agx::WireParticle::getTotalForce |
( |
| ) |
|
|
inline |
◆ getVelocity()
| Real agx::WireParticle::getVelocity |
( |
| ) |
const |
|
inline |
◆ integrateExternalForce()
| void agx::WireParticle::integrateExternalForce |
( |
Real |
timestep | ) |
|
|
inline |
◆ is()
template<typename T >
| bool agx::Referenced::is |
( |
| ) |
const |
|
inherited |
◆ reference()
| void agx::Referenced::reference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
◆ resetTotalForce()
| void agx::WireParticle::resetTotalForce |
( |
| ) |
|
|
inline |
◆ setDeleteHandler()
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
◆ setEdge()
| void agx::WireParticle::setEdge |
( |
Vec3 |
edge | ) |
|
|
inline |
◆ setExternalForce()
| void agx::WireParticle::setExternalForce |
( |
Vec3 |
externalForce | ) |
|
|
inline |
◆ setFrictionCoefficient()
| void agx::WireParticle::setFrictionCoefficient |
( |
Real |
frictionCoeff | ) |
|
|
inline |
◆ setNormalForce()
| void agx::WireParticle::setNormalForce |
( |
Real |
normalForce | ) |
|
|
inline |
◆ setPosition()
| void agx::WireParticle::setPosition |
( |
Vec3 |
pos | ) |
|
|
inline |
◆ setVelocity()
| void agx::WireParticle::setVelocity |
( |
Real |
velocity | ) |
|
|
inline |
◆ unreference()
| void agx::Referenced::unreference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
◆ unreference_nodelete()
| void agx::Referenced::unreference_nodelete |
( |
| ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
◆ updatePosition()
◆ ValidateCast()
template<typename T >
| static bool agx::Referenced::ValidateCast |
( |
const Referenced * |
object | ) |
|
|
staticinherited |
◆ m_mutex
| Mutex agx::Referenced::m_mutex |
|
mutableprotectedinherited |
◆ m_observers
|
|
mutableprotectedinherited |
◆ m_refCount
|
|
mutableprotectedinherited |
The documentation for this class was generated from the following file: