VTK-m
2.2
vtkm
rendering
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
13
#include <
vtkm/rendering/TextAnnotation.h
>
14
15
namespace
vtkm
16
{
17
namespace
rendering
18
{
19
20
class
VTKM_RENDERING_EXPORT
TextAnnotationScreen
:
public
TextAnnotation
21
{
22
protected
:
23
vtkm::Vec2f_32
Position
;
24
vtkm::Float32
Angle
;
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
33
void
SetPosition(
const
vtkm::Vec2f_32
& position);
34
35
void
SetPosition(
vtkm::Float32
posx,
vtkm::Float32
posy);
36
37
void
Render(
const
vtkm::rendering::Camera
& camera,
38
const
vtkm::rendering::WorldAnnotator
& annotator,
39
vtkm::rendering::Canvas
& canvas)
const override
;
40
};
41
}
42
}
// namespace vtkm::rendering
43
44
#endif //vtk_m_rendering_TextAnnotationScreen_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::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
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, 2 >
vtkm::Float32
float Float32
Base type to use for 32-bit floating-point numbers.
Definition:
Types.h:157
vtkm::rendering::TextAnnotationScreen
Definition:
TextAnnotationScreen.h:20
vtkm::rendering::Camera
Specifies the viewport for a rendering.
Definition:
Camera.h:37
Generated by
1.8.17