VTK-m  2.0
TextAnnotationScreen.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_rendering_TextAnnotationScreen_h
11 #define vtk_m_rendering_TextAnnotationScreen_h
12 
14 
15 namespace vtkm
16 {
17 namespace rendering
18 {
19 
20 class VTKM_RENDERING_EXPORT TextAnnotationScreen : public TextAnnotation
21 {
22 protected:
25 
26 public:
27  TextAnnotationScreen(const std::string& text,
28  const vtkm::rendering::Color& color,
29  vtkm::Float32 scale,
30  const vtkm::Vec2f_32& position,
31  vtkm::Float32 angleDegrees = 0);
32 
34 
35  void SetPosition(const vtkm::Vec2f_32& position);
36 
37  void SetPosition(vtkm::Float32 posx, vtkm::Float32 posy);
38 
39  void Render(const vtkm::rendering::Camera& camera,
40  const vtkm::rendering::WorldAnnotator& annotator,
41  vtkm::rendering::Canvas& canvas) const override;
42 };
43 }
44 } // namespace vtkm::rendering
45 
46 #endif //vtk_m_rendering_TextAnnotationScreen_h
vtkm::rendering::Color
It's a color!
Definition: Color.h:28
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::rendering::TextAnnotation
Definition: TextAnnotation.h:24
vtkm::rendering::TextAnnotationScreen::Angle
vtkm::Float32 Angle
Definition: TextAnnotationScreen.h:24
vtkm::rendering::TextAnnotationScreen::Position
vtkm::Vec2f_32 Position
Definition: TextAnnotationScreen.h:23
vtkm::rendering::Canvas
Definition: Canvas.h:34
TextAnnotation.h
vtkm::rendering::WorldAnnotator
Definition: WorldAnnotator.h:27
vtkm::Vec< vtkm::Float32, 2 >
vtkm::Float32
float Float32
Definition: Types.h:154
vtkm::rendering::TextAnnotationScreen
Definition: TextAnnotationScreen.h:20
vtkm::rendering::Camera
Definition: Camera.h:28