VTK-m  2.1
TextAnnotationBillboard.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 vtkm_rendering_TextAnnotationBillboard_h
11 #define vtkm_rendering_TextAnnotationBillboard_h
12 
14 
15 namespace vtkm
16 {
17 namespace rendering
18 {
19 
21 {
22 protected:
25 
26 public:
27  TextAnnotationBillboard(const std::string& text,
28  const vtkm::rendering::Color& color,
29  vtkm::Float32 scalar,
30  const vtkm::Vec3f_32& position,
31  vtkm::Float32 angleDegrees = 0);
32 
33  void SetPosition(const vtkm::Vec3f_32& position);
34 
35  void SetPosition(vtkm::Float32 posx, vtkm::Float32 posy, vtkm::Float32 posz);
36 
37  void Render(const vtkm::rendering::Camera& camera,
38  const vtkm::rendering::WorldAnnotator& worldAnnotator,
39  vtkm::rendering::Canvas& canvas) const override;
40 };
41 }
42 } // namespace vtkm::rendering
43 
44 #endif //vtkm_rendering_TextAnnotationBillboard_h
vtkm::rendering::Color
Representation of a color.
Definition: Color.h:29
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_RENDERING_EXPORT
#define VTKM_RENDERING_EXPORT
Definition: vtkm_rendering_export.h:44
vtkm::rendering::TextAnnotationBillboard::Position
vtkm::Vec3f_32 Position
Definition: TextAnnotationBillboard.h:23
vtkm::rendering::TextAnnotationBillboard::Angle
vtkm::Float32 Angle
Definition: TextAnnotationBillboard.h:24
vtkm::rendering::TextAnnotation
Definition: TextAnnotation.h:24
vtkm::rendering::Canvas
Represents the image space that is the target of rendering.
Definition: Canvas.h:35
TextAnnotation.h
vtkm::rendering::WorldAnnotator
Definition: WorldAnnotator.h:27
vtkm::Vec< vtkm::Float32, 3 >
vtkm::Float32
float Float32
Base type to use for 32-bit floating-point numbers.
Definition: Types.h:157
vtkm::rendering::TextAnnotationBillboard
Definition: TextAnnotationBillboard.h:20
vtkm::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:37