Itasca C++ Interface
|
Interface for a ball. More...
#include <iball.h>
Public Member Functions | |
virtual IThing * | getIThing ()=0 |
Return an IThing interface for this object. | |
virtual const IThing * | getIThing () const =0 |
Return a const IThing interface for this object. | |
virtual IPiece * | getIPiece ()=0 |
Return an IPiece interface for this object. | |
virtual const IPiece * | getIPiece () const =0 |
Return a const IPiece interface for this object. | |
virtual IPieceMechanical * | getIPieceMechanical ()=0 |
Return an IPieceMechanical interface for this object. | |
virtual const IPieceMechanical * | getIPieceMechanical () const =0 |
Return a const IPieceMechanical interface for this object. | |
virtual IBody * | getIBody ()=0 |
Return an IBody interface for this object. | |
virtual const IBody * | getIBody () const =0 |
Return a const IBody interface for this object. | |
virtual IBodyMechanical * | getIBodyMechanical ()=0 |
Return an IBodyMechanical interface for this object. | |
virtual const IBodyMechanical * | getIBodyMechanical () const =0 |
Return a const IBodyMechanical interface for this object. | |
virtual IRigidBodyMechanical * | getIRigidBodyMechanical ()=0 |
Return an IRigidBodyMechanical interface for this object. | |
virtual const IRigidBodyMechanical * | getIRigidBodyMechanical () const =0 |
Return a const IRigidBodyMechanical interface for this object. | |
virtual DExtent | getCellExtent () const =0 |
Return the ball's cell extent. | |
virtual DExtent | getToleranceExtent () const =0 |
Return the ball's tolerance extent. | |
virtual DMatrix< DIM, DIM > | getStress () const =0 |
Return the current stress computed for this ball. | |
virtual double | getInertialMoi () const =0 |
Return the ball scaled moment of inertia. | |
virtual double | getMoi () const =0 |
Return the ball real moment of inertia. | |
virtual double | getRadius () const =0 |
Return the ball radius. | |
virtual int | getFragmentIndex () const =0 |
Return the ball fragment index. | |
virtual void | setFragmentIndex (int ind)=0 |
Set the ball fragment index. | |
virtual bool | getIsIn (const DVect &) const =0 |
Returns a boolean indicating whether a point in space is inside or outside of the ball. | |
virtual void | setRadius (const double &d, bool lock=false)=0 |
virtual void | setRadiusNoLock (const double &d)=0 |
virtual bool | getFix (uint32 dof) const =0 |
virtual QString | getFixLabel () const =0 |
Return a fixity label. | |
virtual QVariant | getPieceProperty (const QString &name, const IPiece *p=0) const =0 |
Return the property of the piece. | |
virtual double | getDensity () const =0 |
Return the density. | |
virtual double | getInertialMass () const =0 |
Return the inertial mass. | |
virtual double | getMass () const =0 |
Return the mass. | |
virtual DVect | getContactForce () const =0 |
Return the resultant of all contact forces. | |
virtual DAVect | getContactMoment () const =0 |
Return the resultant of all contact moments. | |
virtual DVect | getAppliedForce () const =0 |
Return the applied force. | |
virtual DAVect | getAppliedMoment () const =0 |
Return the applied moment. | |
virtual DVect | getUnbalancedForce () const =0 |
Return the unbalanced force. | |
virtual DAVect | getUnbalancedMoment () const =0 |
Return the unbalanced moment. | |
virtual double | getLocalDamping () const =0 |
Return the local damping coefficient. | |
virtual void | setFix (uint32 dof, bool b)=0 |
Set the fixity condition. | |
virtual bool | setPieceProperty (const QString &name, const QVariant &v, IPiece *p=0)=0 |
Set the property name. | |
virtual void | setDensity (const double &d)=0 |
Set the density. | |
virtual void | setContactForce (const DVect &v)=0 |
Set the contact force. | |
virtual void | setContactMoment (const DAVect &v)=0 |
Set the contact moment. | |
virtual void | setAppliedForce (const DVect &v)=0 |
Set the applied force. | |
virtual void | setAppliedMoment (const DAVect &v)=0 |
Set the applied moment. | |
virtual void | setLocalDamping (const double &d)=0 |
Set the local damping coefficient. | |
virtual void | scaleVolumePreserveMass (const double &d, bool checkState=true, bool lock=false)=0 |
Scale the volume to the specified value while preserving the mass. | |
virtual DVect | getCentroid () const =0 |
IRigidBodyMechanical interface. | |
virtual DVect | getVelocity () const =0 |
virtual DAVect | getAngVelocity () const =0 |
virtual DVect | getDisplacement () const =0 |
virtual double | getVolume () const =0 |
virtual Quat | getOrient () const =0 |
virtual void | setCentroid (const DVect &p)=0 |
virtual void | setVelocity (const DVect &p)=0 |
virtual void | setAngVelocity (const DAVect &p)=0 |
virtual void | setDisplacement (const DVect &v)=0 |
virtual void | setOrient (const Quat &q)=0 |
Static Public Attributes | |
static const TType | type_ = 0x51c13f16 |
TType for type casting. | |
Interface for a ball.
*
A ball is a rigid mechanical body composed of one unique mechanical piece. This interface provides basic functionality for accessing the body attributes and the piece properties associated with a ball.
|
pure virtual |
Methods from the IBodyMechanical interface for convenience Return a boolean indicating the fixity condition.
|
pure virtual |
Set the ball radius
d | New radius |
lock | Optional boolean to lock the ball for multithreading purpose (default to false) |