AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agx::WireParticle Class Reference

#include <WireContactSolver.h>

+ Inheritance diagram for agx::WireParticle:

Public Member Functions

 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 ()
 
Vec3 getEdge ()
 
Real getExternalForce () const
 
Real getFrictionCoefficient ()
 
Real getInvMass ()
 
Real getMass ()
 
Real getNormalForce () const
 
Vec3 getPosition () const
 
Real getTotalForce ()
 
Real getVelocity () const
 
void integrateExternalForce (Real timestep)
 
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 updatePosition (Real timestep, Real maxVelocity=agx::Infinity)
 
- 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.
 
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.
 

Protected Member Functions

virtual ~WireParticle ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- 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.
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Definition at line 29 of file WireContactSolver.h.

Constructor & Destructor Documentation

◆ WireParticle()

agx::WireParticle::WireParticle ( Vec3  position,
Vec3  edgeStart,
Vec3  edgeEnd,
Real  mass,
Real  velocity = Real(0),
Real  normalForce = 0,
Real  frictionCoeff = 0 
)
inline

Definition at line 32 of file WireContactSolver.h.

References agx::Vec3T< T >::normalize().

◆ ~WireParticle()

virtual agx::WireParticle::~WireParticle ( )
inlineprotectedvirtual

Definition at line 90 of file WireContactSolver.h.

Member Function Documentation

◆ addToTotalForce()

void agx::WireParticle::addToTotalForce ( Real  constraintForce)
inline

Definition at line 85 of file WireContactSolver.h.

◆ applyVelocityDamping()

void agx::WireParticle::applyVelocityDamping ( )

◆ getEdge()

Vec3 agx::WireParticle::getEdge ( )
inline

Definition at line 53 of file WireContactSolver.h.

◆ getExternalForce()

Real agx::WireParticle::getExternalForce ( ) const
inline

Definition at line 81 of file WireContactSolver.h.

◆ getFrictionCoefficient()

Real agx::WireParticle::getFrictionCoefficient ( )
inline

Definition at line 62 of file WireContactSolver.h.

◆ getInvMass()

Real agx::WireParticle::getInvMass ( )
inline

Definition at line 52 of file WireContactSolver.h.

◆ getMass()

Real agx::WireParticle::getMass ( )
inline

Definition at line 51 of file WireContactSolver.h.

◆ getNormalForce()

Real agx::WireParticle::getNormalForce ( ) const
inline

Definition at line 59 of file WireContactSolver.h.

◆ getPosition()

◆ getTotalForce()

Real agx::WireParticle::getTotalForce ( )
inline

Definition at line 87 of file WireContactSolver.h.

◆ getVelocity()

Real agx::WireParticle::getVelocity ( ) const
inline

Definition at line 50 of file WireContactSolver.h.

◆ integrateExternalForce()

void agx::WireParticle::integrateExternalForce ( Real  timestep)
inline

Definition at line 71 of file WireContactSolver.h.

◆ resetTotalForce()

void agx::WireParticle::resetTotalForce ( )
inline

Definition at line 83 of file WireContactSolver.h.

◆ setEdge()

void agx::WireParticle::setEdge ( Vec3  edge)
inline

Definition at line 54 of file WireContactSolver.h.

References agx::Vec3T< T >::normalize().

◆ setExternalForce()

void agx::WireParticle::setExternalForce ( Vec3  externalForce)
inline

Definition at line 76 of file WireContactSolver.h.

◆ setFrictionCoefficient()

void agx::WireParticle::setFrictionCoefficient ( Real  frictionCoeff)
inline

Definition at line 61 of file WireContactSolver.h.

◆ setNormalForce()

void agx::WireParticle::setNormalForce ( Real  normalForce)
inline

Definition at line 60 of file WireContactSolver.h.

◆ setPosition()

void agx::WireParticle::setPosition ( Vec3  pos)
inline

◆ setVelocity()

void agx::WireParticle::setVelocity ( Real  velocity)
inline

Definition at line 49 of file WireContactSolver.h.

◆ updatePosition()

void agx::WireParticle::updatePosition ( Real  timestep,
Real  maxVelocity = agx::Infinity 
)
inline

Definition at line 64 of file WireContactSolver.h.

References agx::clamp().


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