iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | Protected Attributes | List of all members
imstk::PerformanceGraph Class Reference

Displays task graph node durations of a scene as overlay on the screen. More...

#include <imstkPerformanceGraph.h>

Inheritance diagram for imstk::PerformanceGraph:
Inheritance graph
[legend]
Collaboration diagram for imstk::PerformanceGraph:
Collaboration graph
[legend]

Public Member Functions

 PerformanceGraph (const std::string &name="PerformanceGraph")
 
void visualUpdate (const double &dt)
 Update the display of the last frames update times.
 
void setViewer (std::weak_ptr< Viewer > viewer)
 
void setSceneManager (std::weak_ptr< SceneManager > sceneManager)
 
- Public Member Functions inherited from imstk::Behaviour< UpdateInfo >
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< TaskGraphgetTaskGraph () const
 
- Public Member Functions inherited from imstk::Component
const std::string & getName () const
 
void setName (const std::string &name)
 
std::weak_ptr< EntitygetEntity () const
 Get parent entity.
 
void initialize ()
 Initialize the component, called at a later time after all component construction is complete.
 

Protected Attributes

std::weak_ptr< Viewerm_viewer
 
std::weak_ptr< SceneManagerm_sceneManager
 
int m_prevInfoLevel = -1
 
double m_t = 0.0
 
double m_updateDuration = 0.15
 seconds long to wait before updating again
 
bool m_enabled = false
 
- Protected Attributes inherited from imstk::Behaviour< UpdateInfo >
std::shared_ptr< TaskGraphm_taskGraph = nullptr
 
- Protected Attributes inherited from imstk::Component
std::string m_name
 
std::weak_ptr< Entitym_entity
 Parent entity this component exists on.
 

Additional Inherited Members

- Protected Member Functions inherited from imstk::Behaviour< UpdateInfo >
 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...
 
- Protected Member Functions inherited from imstk::Component
 Component (const std::string &name="Component")
 
virtual void init ()
 Initialize the component, called at a later time after all component construction is complete.
 

Detailed Description

Displays task graph node durations of a scene as overlay on the screen.

Todo:
: There is no delegate for this yet, it hooks directly into VTKRenderer

Definition at line 22 of file imstkPerformanceGraph.h.


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