iMSTK
Interactive Medical Simulation Toolkit
|
Displays virtual coupling force text in the top right. More...
#include <imstkControllerForceText.h>
Public Member Functions | |
ControllerForceText (const std::string &name="ControllerForceText") | |
void | visualUpdate (const double &dt) |
Update the display of the last frames update times. | |
std::shared_ptr< TextVisualModel > | getText () const |
void | setController (std::shared_ptr< PbdObjectController > controller) |
Get/Set the controller to display the device force of. | |
std::shared_ptr< PbdObjectController > | getPbdController () const |
void | setController (std::shared_ptr< RigidObjectController > controller) |
std::shared_ptr< RigidObjectController > | getRbdController () const |
void | setCollision (std::shared_ptr< PbdObjectCollision > collision) |
Get/Set the collision to display the contact force of. | |
std::shared_ptr< PbdObjectCollision > | getCollision () const |
![]() | |
virtual void | update (const UpdateInfo &imstkNotUsed(updateData)) |
virtual void | visualUpdate (const UpdateInfo &imstkNotUsed(updateData)) |
void | initTaskGraphEdges () |
Setup the edges/connections of the TaskGraph. | |
std::shared_ptr< TaskGraph > | getTaskGraph () const |
![]() | |
const std::string & | getName () const |
void | setName (const std::string &name) |
std::weak_ptr< Entity > | getEntity () const |
Get parent entity. | |
void | initialize () |
Initialize the component, called at a later time after all component construction is complete. | |
Protected Member Functions | |
void | computePbdContactForceAndTorque (Vec3d &force, Vec3d &torque) const |
void | init () override |
Initialize the component, called at a later time after all component construction is complete. | |
![]() | |
Behaviour (const std::string &name="Behaviour") | |
Behaviour (const bool useTaskGraph, const std::string &name="Behaviour") | |
virtual void | initGraphEdges (std::shared_ptr< TaskNode > imstkNotUsed(source), std::shared_ptr< TaskNode > imstkNotUsed(sink)) |
Setup the edges/connections of the TaskGraph. More... | |
![]() | |
Component (const std::string &name="Component") | |
Protected Attributes | |
std::shared_ptr< TextVisualModel > | m_textVisualModel = nullptr |
std::shared_ptr< PbdObjectCollision > | m_collision = nullptr |
std::shared_ptr< PbdObjectController > | m_pbdController = nullptr |
std::shared_ptr< RigidObjectController > | m_rbdController = nullptr |
double | m_t = 0.0 |
![]() | |
std::shared_ptr< TaskGraph > | m_taskGraph = nullptr |
![]() | |
std::string | m_name |
std::weak_ptr< Entity > | m_entity |
Parent entity this component exists on. | |
Displays virtual coupling force text in the top right.
Definition at line 24 of file imstkControllerForceText.h.