Viskores  1.0
TextAnnotationScreen.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_rendering_TextAnnotationScreen_h
19 #define viskores_rendering_TextAnnotationScreen_h
20 
22 
23 namespace viskores
24 {
25 namespace rendering
26 {
27 
28 class VISKORES_RENDERING_EXPORT TextAnnotationScreen : public TextAnnotation
29 {
30 protected:
33 
34 public:
35  TextAnnotationScreen(const std::string& text,
36  const viskores::rendering::Color& color,
37  viskores::Float32 scale,
38  const viskores::Vec2f_32& position,
39  viskores::Float32 angleDegrees = 0);
40 
41  void SetPosition(const viskores::Vec2f_32& position);
42 
43  void SetPosition(viskores::Float32 posx, viskores::Float32 posy);
44 
45  void Render(const viskores::rendering::Camera& camera,
46  const viskores::rendering::WorldAnnotator& annotator,
47  viskores::rendering::Canvas& canvas) const override;
48 };
49 }
50 } // namespace viskores::rendering
51 
52 #endif //viskores_rendering_TextAnnotationScreen_h
viskores::rendering::TextAnnotationScreen
Definition: TextAnnotationScreen.h:28
TextAnnotation.h
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::Float32
float Float32
Base type to use for 32-bit floating-point numbers.
Definition: Types.h:165
viskores::rendering::TextAnnotationScreen::Angle
viskores::Float32 Angle
Definition: TextAnnotationScreen.h:32
viskores::rendering::TextAnnotationScreen::Position
viskores::Vec2f_32 Position
Definition: TextAnnotationScreen.h:31
viskores::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:45
viskores::rendering::TextAnnotation
Definition: TextAnnotation.h:32
viskores::rendering::WorldAnnotator
Definition: WorldAnnotator.h:35
viskores::Vec< viskores::Float32, 2 >
viskores::rendering::Canvas
Represents the image space that is the target of rendering.
Definition: Canvas.h:43
viskores::rendering::Color
Representation of a color.
Definition: Color.h:37