VTK-m
2.0
vtkm
rendering
View3D.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_View3D_h
11
#define vtk_m_rendering_View3D_h
12
13
#include <
vtkm/rendering/View.h
>
14
15
#include <
vtkm/rendering/AxisAnnotation3D.h
>
16
#include <
vtkm/rendering/BoundingBoxAnnotation.h
>
17
#include <
vtkm/rendering/ColorBarAnnotation.h
>
18
19
namespace
vtkm
20
{
21
namespace
rendering
22
{
23
24
class
VTKM_RENDERING_EXPORT
View3D
:
public
vtkm::rendering::View
25
{
26
public
:
27
View3D
(
const
vtkm::rendering::Scene
& scene,
28
const
vtkm::rendering::Mapper
& mapper,
29
const
vtkm::rendering::Canvas
& canvas,
30
const
vtkm::rendering::Color
& backgroundColor =
vtkm::rendering::Color
(0, 0, 0, 1),
31
const
vtkm::rendering::Color
& foregroundColor =
vtkm::rendering::Color
(1, 1, 1, 1));
32
33
View3D
(
const
vtkm::rendering::Scene
& scene,
34
const
vtkm::rendering::Mapper
& mapper,
35
const
vtkm::rendering::Canvas
& canvas,
36
const
vtkm::rendering::Camera
& camera,
37
const
vtkm::rendering::Color
& backgroundColor =
vtkm::rendering::Color
(0, 0, 0, 1),
38
const
vtkm::rendering::Color
& foregroundColor =
vtkm::rendering::Color
(1, 1, 1, 1));
39
40
~
View3D
();
41
42
void
Paint()
override
;
43
44
void
RenderScreenAnnotations()
override
;
45
46
void
RenderWorldAnnotations()
override
;
47
48
private
:
49
// 3D-specific annotations
50
vtkm::rendering::LineRendererBatcher
LineBatcher
;
51
vtkm::rendering::BoundingBoxAnnotation
BoxAnnotation
;
52
vtkm::rendering::AxisAnnotation3D
XAxisAnnotation
;
53
vtkm::rendering::AxisAnnotation3D
YAxisAnnotation
;
54
vtkm::rendering::AxisAnnotation3D
ZAxisAnnotation
;
55
vtkm::rendering::ColorBarAnnotation
ColorBarAnnotation
;
56
};
57
}
58
}
// namespace vtkm::rendering
59
60
#endif //vtk_m_rendering_View3D_h
vtkm::rendering::View3D::LineBatcher
vtkm::rendering::LineRendererBatcher LineBatcher
Definition:
View3D.h:50
vtkm::rendering::AxisAnnotation3D
Definition:
AxisAnnotation3D.h:32
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::View3D::XAxisAnnotation
vtkm::rendering::AxisAnnotation3D XAxisAnnotation
Definition:
View3D.h:52
vtkm::rendering::BoundingBoxAnnotation
Definition:
BoundingBoxAnnotation.h:23
AxisAnnotation3D.h
vtkm::rendering::View3D::YAxisAnnotation
vtkm::rendering::AxisAnnotation3D YAxisAnnotation
Definition:
View3D.h:53
vtkm::rendering::LineRendererBatcher
Definition:
LineRendererBatcher.h:26
vtkm::rendering::Mapper
Definition:
Mapper.h:24
vtkm::rendering::Canvas
Definition:
Canvas.h:34
BoundingBoxAnnotation.h
vtkm::rendering::View3D::ColorBarAnnotation
vtkm::rendering::ColorBarAnnotation ColorBarAnnotation
Definition:
View3D.h:55
vtkm::rendering::View
Definition:
View.h:30
vtkm::rendering::View3D
Definition:
View3D.h:24
vtkm::rendering::Camera
Definition:
Camera.h:28
vtkm::rendering::Scene
Definition:
Scene.h:27
ColorBarAnnotation.h
View.h
vtkm::rendering::ColorBarAnnotation
Definition:
ColorBarAnnotation.h:26
vtkm::rendering::View3D::BoxAnnotation
vtkm::rendering::BoundingBoxAnnotation BoxAnnotation
Definition:
View3D.h:51
vtkm::rendering::View3D::ZAxisAnnotation
vtkm::rendering::AxisAnnotation3D ZAxisAnnotation
Definition:
View3D.h:54
Generated by
1.8.17