VTK-m  2.1
View2D.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_View2D_h
11 #define vtk_m_rendering_View2D_h
12 
13 #include <vtkm/rendering/View.h>
14 
17 
18 namespace vtkm
19 {
20 namespace rendering
21 {
22 
27 {
28 public:
29  View2D(const vtkm::rendering::Scene& scene,
30  const vtkm::rendering::Mapper& mapper,
31  const vtkm::rendering::Canvas& canvas,
32  const vtkm::rendering::Color& backgroundColor = vtkm::rendering::Color(0, 0, 0, 1),
33  const vtkm::rendering::Color& foregroundColor = vtkm::rendering::Color(1, 1, 1, 1));
34 
35  View2D(const vtkm::rendering::Scene& scene,
36  const vtkm::rendering::Mapper& mapper,
37  const vtkm::rendering::Canvas& canvas,
38  const vtkm::rendering::Camera& camera,
39  const vtkm::rendering::Color& backgroundColor = vtkm::rendering::Color(0, 0, 0, 1),
40  const vtkm::rendering::Color& foregroundColor = vtkm::rendering::Color(1, 1, 1, 1));
41 
42  void Paint() override;
43 
44  void RenderScreenAnnotations() override;
45 
46  void RenderWorldAnnotations() override;
47 
48 private:
49  void UpdateCameraProperties();
50 
51  // 2D-specific annotations
55 };
56 }
57 } // namespace vtkm::rendering
58 
59 #endif //vtk_m_rendering_View2D_h
vtkm::rendering::View2D::HorizontalAxisAnnotation
vtkm::rendering::AxisAnnotation2D HorizontalAxisAnnotation
Definition: View2D.h:52
vtkm::rendering::View2D::VerticalAxisAnnotation
vtkm::rendering::AxisAnnotation2D VerticalAxisAnnotation
Definition: View2D.h:53
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::View2D
A view for a 3D data set.
Definition: View2D.h:26
vtkm::rendering::Mapper
Converts data into commands to a rendering system.
Definition: Mapper.h:29
vtkm::rendering::Canvas
Represents the image space that is the target of rendering.
Definition: Canvas.h:35
vtkm::rendering::AxisAnnotation2D
Definition: AxisAnnotation2D.h:29
AxisAnnotation2D.h
vtkm::rendering::View
The abstract class representing the view of a rendering scene.
Definition: View.h:31
vtkm::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:37
vtkm::rendering::Scene
A simple collection of things to render.
Definition: Scene.h:30
vtkm::rendering::View2D::ColorBarAnnotation
vtkm::rendering::ColorBarAnnotation ColorBarAnnotation
Definition: View2D.h:54
ColorBarAnnotation.h
View.h
vtkm::rendering::ColorBarAnnotation
Definition: ColorBarAnnotation.h:26