iMSTK
Interactive Medical Simulation Toolkit
imstkVTKTextRenderDelegate.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 #include "imstkVTKRenderDelegate.h"
8 
9 class vtkActor2D;
10 class vtkTextMapper;
11 
12 namespace imstk
13 {
20 {
21 public:
22  VTKTextRenderDelegate() = default;
23  ~VTKTextRenderDelegate() override = default;
24 
28  void processEvents() override;
29 
30  void updateRenderProperties() override;
31 
32 protected:
33  void init() override;
34 
35  vtkSmartPointer<vtkActor2D> m_textActor;
36  vtkSmartPointer<vtkTextMapper> m_textMapper;
37 };
38 } // namespace imstk
void updateRenderProperties() override
Updates the actor and mapper properties from the currently set VisualModel.
Compound Geometry.
Base class for VTK render delegates.
void processEvents() override
Plot text and track updates to TextVisualModel.
Delegates rendering of text to VTK from TextVisualModel.