VTK-m
2.0
vtkm
rendering
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
13
#include <
vtkm/rendering/TextAnnotation.h
>
14
15
namespace
vtkm
16
{
17
namespace
rendering
18
{
19
20
class
VTKM_RENDERING_EXPORT
TextAnnotationBillboard
:
public
TextAnnotation
21
{
22
protected
:
23
vtkm::Vec3f_32
Position
;
24
vtkm::Float32
Angle
;
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
~
TextAnnotationBillboard
();
34
35
void
SetPosition(
const
vtkm::Vec3f_32
& position);
36
37
void
SetPosition(
vtkm::Float32
posx,
vtkm::Float32
posy,
vtkm::Float32
posz);
38
39
void
Render(
const
vtkm::rendering::Camera
& camera,
40
const
vtkm::rendering::WorldAnnotator
& worldAnnotator,
41
vtkm::rendering::Canvas
& canvas)
const override
;
42
};
43
}
44
}
// namespace vtkm::rendering
45
46
#endif //vtkm_rendering_TextAnnotationBillboard_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::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
Definition:
Canvas.h:34
TextAnnotation.h
vtkm::rendering::WorldAnnotator
Definition:
WorldAnnotator.h:27
vtkm::Vec< vtkm::Float32, 3 >
vtkm::Float32
float Float32
Definition:
Types.h:154
vtkm::rendering::TextAnnotationBillboard
Definition:
TextAnnotationBillboard.h:20
vtkm::rendering::Camera
Definition:
Camera.h:28
Generated by
1.8.17