iMSTK
Interactive Medical Simulation Toolkit
|
A SceneBehaviour that can update via a lambda function. More...
#include <imstkComponent.h>
Public Member Functions | |
LambdaBehaviour (const std::string &name="LambdaBehaviour") | |
void | update (const double &dt) override |
void | visualUpdate (const double &dt) override |
void | setUpdate (std::function< void(const double &dt)> updateFunc) |
void | setVisualUpdate (std::function< void(const double &dt)> updateFunc) |
![]() | |
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 Attributes | |
std::function< void(const double &dt)> | m_updateFunc |
std::function< void(const double &dt)> | m_visualUpdateFunc |
![]() | |
std::shared_ptr< TaskGraph > | m_taskGraph = nullptr |
![]() | |
std::string | m_name |
std::weak_ptr< Entity > | m_entity |
Parent entity this component exists on. | |
Additional Inherited Members | |
![]() | |
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") | |
virtual void | init () |
Initialize the component, called at a later time after all component construction is complete. | |
A SceneBehaviour that can update via a lambda function.
Definition at line 148 of file imstkComponent.h.