iMSTK
Interactive Medical Simulation Toolkit
imstkSceneControlText.h
1 /*
2 ** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3 ** iMSTK is distributed under the Apache License, Version 2.0.
4 ** See accompanying NOTICE for details.
5 */
6 
7 #pragma once
8 
9 #include "imstkTextVisualModel.h"
10 
11 namespace imstk
12 {
13 class SceneManager;
14 
22 {
23 public:
24  SceneControlText(const std::string& name = "SceneControlText");
25 
30  void setUseTextStatus(const bool useTextStatus) { m_useTextStatus = useTextStatus; }
31  bool getUseTextStatus() const { return m_useTextStatus; }
33 
37  void setSceneManager(std::weak_ptr<SceneManager> sceneManager) { m_sceneManager = sceneManager; }
38 
39 protected:
40  void init() override;
41 
42 protected:
43  std::weak_ptr<SceneManager> m_sceneManager;
44  bool m_useTextStatus = true;
45 };
46 } // namespace imstk
void setUseTextStatus(const bool useTextStatus)
If on, text status will be shown when paused. On by default.
Compound Geometry.
void setSceneManager(std::weak_ptr< SceneManager > sceneManager)
Set the scene manager whose fps we should track.
void init() override
Initialize the component, called at a later time after all component construction is complete...
Renders text to the screen.
This implements a text on screen that will notify the user of the current state of the simulation...