|
AGXDynamics
2.31.1.0
|
A one row constraint. More...
#include <WireContactSolver.h>
Inheritance diagram for agx::WireContactConstraint:Public Member Functions | |
| WireContactConstraint () | |
| bool | addWireParticle (WireParticle *wp, size_t contactIndex) |
| 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 |
| void | calculateD (Real timestep) |
| void | calculateEpsilon (Real timestep) |
| void | calculateInitialLambda (Real timestep) |
| virtual void | calculateJacobian ()=0 |
| virtual void | calculateRHS (Real invTimestep, Real violation) |
| virtual void | calculateViolation ()=0 |
| Real | getD () const |
| Real | getEpsilon () const |
| size_t | getFirstParticleGlobalIndex () const |
| Real | getForceOnParticle (size_t globalIndex, Real timestep) |
| bool | getHasBounds () |
| Real | getInvMass (size_t particleIndex) |
| bool | getJacobian (size_t particleIndex, Real &G) |
| Real | getLambda () const |
| Real | getLowerBounds () const |
| Real | getMass (size_t particleIndex) |
| WireParticleRefVector & | getParticles () |
| bool | getReachedBounds () |
| int | getReferenceCount () const |
| Real | getRHS () const |
| Real | getUpperBounds () const |
| Real | getViolation () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| virtual void | postCallback (Real) |
| 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 | setBounds (RangeReal bounds) |
| void | setCompliance (Real compliance) |
| void | setLambda (Real lambda) |
| void | setReachedBounds (bool reached) |
| 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... | |
Static Public Member Functions | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| virtual | ~WireContactConstraint () |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Static Protected Member Functions | |
| 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... | |
A one row constraint.
Definition at line 142 of file WireContactSolver.h.
| agx::WireContactConstraint::WireContactConstraint | ( | ) |
|
inlineprotectedvirtual |
Definition at line 279 of file WireContactSolver.h.
|
inline |
Definition at line 158 of file WireContactSolver.h.
References agx::Container::empty(), m_firstParticleGlobalIndex, m_jacobianVector, m_particles, agx::Vector< T, Allocator >::push_back(), and agx::VectorPOD< T, Allocator >::push_back().
Referenced by agx::WireContactBendConstraint::WireContactBendConstraint(), agx::WireContactFrictionConstraint::WireContactFrictionConstraint(), and agx::WireContactSpringConstraint::WireContactSpringConstraint().
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), and agx::InternalData::getOrCreate().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
Definition at line 228 of file WireContactSolver.h.
References calculateEpsilon(), getEpsilon(), getFirstParticleGlobalIndex(), getInvMass(), getJacobian(), m_jacobianVector, and agx::Container::size().
Definition at line 253 of file WireContactSolver.h.
References m_compliance, and m_damping.
Referenced by calculateD().
Definition at line 153 of file WireContactSolver.h.
References m_compliance, and m_violation.
|
pure virtual |
Implemented in agx::WireContactSpringConstraint, agx::WireContactBendConstraint, and agx::WireContactDistanceConstraint.
|
inlinevirtual |
Reimplemented in agx::WireContactFrictionConstraint.
Definition at line 206 of file WireContactSolver.h.
References m_damping, m_jacobianVector, m_particles, m_rhs, and agx::Container::size().
|
pure virtual |
|
protectedinherited |
|
inline |
Definition at line 222 of file WireContactSolver.h.
|
staticprotectedinherited |
|
inline |
Definition at line 221 of file WireContactSolver.h.
Referenced by calculateD().
|
inline |
Definition at line 203 of file WireContactSolver.h.
References m_firstParticleGlobalIndex.
Referenced by calculateD().
Definition at line 258 of file WireContactSolver.h.
References m_firstParticleGlobalIndex, m_jacobianVector, and agx::Container::size().
|
inline |
Definition at line 266 of file WireContactSolver.h.
References m_hasBounds.
|
inline |
Definition at line 181 of file WireContactSolver.h.
References agx::Container::empty(), m_firstParticleGlobalIndex, m_particles, and agx::Container::size().
Referenced by calculateD().
|
inline |
Definition at line 168 of file WireContactSolver.h.
References agx::Container::empty(), m_firstParticleGlobalIndex, m_jacobianVector, and agx::Container::size().
Referenced by calculateD().
|
inline |
Definition at line 219 of file WireContactSolver.h.
|
inline |
Definition at line 273 of file WireContactSolver.h.
|
inline |
Definition at line 192 of file WireContactSolver.h.
References agx::Container::empty(), m_firstParticleGlobalIndex, m_particles, and agx::Container::size().
|
inline |
Definition at line 252 of file WireContactSolver.h.
References m_particles.
|
inline |
Definition at line 226 of file WireContactSolver.h.
|
inherited |
|
inline |
Definition at line 205 of file WireContactSolver.h.
References m_rhs.
|
inline |
Definition at line 274 of file WireContactSolver.h.
|
inline |
Definition at line 223 of file WireContactSolver.h.
References m_violation.
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::Buffer::getElement(), and agx::Object::getResource().
Reimplemented in agx::WireContactDistanceConstraint.
Definition at line 147 of file WireContactSolver.h.
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.
Referenced by agxData::Val< UInt >::Val().
Definition at line 267 of file WireContactSolver.h.
References agx::Range< T >::lower(), m_hasBounds, and agx::Range< T >::upper().
Definition at line 276 of file WireContactSolver.h.
References m_compliance.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
Definition at line 220 of file WireContactSolver.h.
|
inline |
Definition at line 225 of file WireContactSolver.h.
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.
|
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.
|
staticinherited |
|
protected |
Definition at line 286 of file WireContactSolver.h.
Referenced by calculateEpsilon(), calculateInitialLambda(), setCompliance(), agx::WireContactBendConstraint::WireContactBendConstraint(), agx::WireContactDistanceConstraint::WireContactDistanceConstraint(), agx::WireContactFrictionConstraint::WireContactFrictionConstraint(), and agx::WireContactSpringConstraint::WireContactSpringConstraint().
|
protected |
Definition at line 290 of file WireContactSolver.h.
Referenced by calculateEpsilon(), calculateRHS(), and agx::WireContactBendConstraint::WireContactBendConstraint().
|
protected |
Definition at line 287 of file WireContactSolver.h.
Referenced by addWireParticle(), getFirstParticleGlobalIndex(), getForceOnParticle(), getInvMass(), getJacobian(), getMass(), agx::WireContactBendConstraint::WireContactBendConstraint(), agx::WireContactFrictionConstraint::WireContactFrictionConstraint(), and agx::WireContactSpringConstraint::WireContactSpringConstraint().
|
protected |
Definition at line 288 of file WireContactSolver.h.
Referenced by getHasBounds(), setBounds(), and agx::WireContactFrictionConstraint::WireContactFrictionConstraint().
|
protected |
Definition at line 283 of file WireContactSolver.h.
Referenced by addWireParticle(), calculateD(), agx::WireContactSpringConstraint::calculateJacobian(), calculateRHS(), getForceOnParticle(), and getJacobian().
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
protected |
Definition at line 284 of file WireContactSolver.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
protected |
Definition at line 282 of file WireContactSolver.h.
Referenced by addWireParticle(), calculateRHS(), getInvMass(), getMass(), and getParticles().
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protected |
Definition at line 289 of file WireContactSolver.h.
Referenced by calculateRHS(), agx::WireContactFrictionConstraint::calculateRHS(), and getRHS().
|
protected |
Definition at line 285 of file WireContactSolver.h.
Referenced by calculateInitialLambda(), agx::WireContactSpringConstraint::calculateViolation(), agx::WireContactFrictionConstraint::calculateViolation(), and getViolation().