VTK-m  2.0
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 
23 class VTKM_RENDERING_EXPORT View2D : public vtkm::rendering::View
24 {
25 public:
26  View2D(const vtkm::rendering::Scene& scene,
27  const vtkm::rendering::Mapper& mapper,
28  const vtkm::rendering::Canvas& canvas,
29  const vtkm::rendering::Color& backgroundColor = vtkm::rendering::Color(0, 0, 0, 1),
30  const vtkm::rendering::Color& foregroundColor = vtkm::rendering::Color(1, 1, 1, 1));
31 
32  View2D(const vtkm::rendering::Scene& scene,
33  const vtkm::rendering::Mapper& mapper,
34  const vtkm::rendering::Canvas& canvas,
35  const vtkm::rendering::Camera& camera,
36  const vtkm::rendering::Color& backgroundColor = vtkm::rendering::Color(0, 0, 0, 1),
37  const vtkm::rendering::Color& foregroundColor = vtkm::rendering::Color(1, 1, 1, 1));
38 
39  ~View2D();
40 
41  void Paint() override;
42 
43  void RenderScreenAnnotations() override;
44 
45  void RenderWorldAnnotations() override;
46 
47 private:
48  void UpdateCameraProperties();
49 
50  // 2D-specific annotations
54 };
55 }
56 } // namespace vtkm::rendering
57 
58 #endif //vtk_m_rendering_View2D_h
vtkm::rendering::View2D::HorizontalAxisAnnotation
vtkm::rendering::AxisAnnotation2D HorizontalAxisAnnotation
Definition: View2D.h:51
vtkm::rendering::View2D::VerticalAxisAnnotation
vtkm::rendering::AxisAnnotation2D VerticalAxisAnnotation
Definition: View2D.h:52
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::View2D
Definition: View2D.h:23
vtkm::rendering::Mapper
Definition: Mapper.h:24
vtkm::rendering::Canvas
Definition: Canvas.h:34
vtkm::rendering::AxisAnnotation2D
Definition: AxisAnnotation2D.h:29
AxisAnnotation2D.h
vtkm::rendering::View
Definition: View.h:30
vtkm::rendering::Camera
Definition: Camera.h:28
vtkm::rendering::Scene
Definition: Scene.h:27
vtkm::rendering::View2D::ColorBarAnnotation
vtkm::rendering::ColorBarAnnotation ColorBarAnnotation
Definition: View2D.h:53
ColorBarAnnotation.h
View.h
vtkm::rendering::ColorBarAnnotation
Definition: ColorBarAnnotation.h:26