Viskores  1.0
View2D.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_rendering_View2D_h
19 #define viskores_rendering_View2D_h
20 
22 
25 
26 namespace viskores
27 {
28 namespace rendering
29 {
30 
34 class VISKORES_RENDERING_EXPORT View2D : public viskores::rendering::View
35 {
36 public:
37  View2D(
38  const viskores::rendering::Scene& scene,
39  const viskores::rendering::Mapper& mapper,
40  const viskores::rendering::Canvas& canvas,
41  const viskores::rendering::Color& backgroundColor = viskores::rendering::Color(0, 0, 0, 1),
42  const viskores::rendering::Color& foregroundColor = viskores::rendering::Color(1, 1, 1, 1));
43 
44  View2D(
45  const viskores::rendering::Scene& scene,
46  const viskores::rendering::Mapper& mapper,
47  const viskores::rendering::Canvas& canvas,
48  const viskores::rendering::Camera& camera,
49  const viskores::rendering::Color& backgroundColor = viskores::rendering::Color(0, 0, 0, 1),
50  const viskores::rendering::Color& foregroundColor = viskores::rendering::Color(1, 1, 1, 1));
51 
52  void Paint() override;
53 
54  void RenderScreenAnnotations() override;
55 
56  void RenderWorldAnnotations() override;
57 
58 private:
59  void UpdateCameraProperties();
60 
61  // 2D-specific annotations
65 };
66 }
67 } // namespace viskores::rendering
68 
69 #endif //viskores_rendering_View2D_h
viskores::rendering::View2D::HorizontalAxisAnnotation
viskores::rendering::AxisAnnotation2D HorizontalAxisAnnotation
Definition: View2D.h:62
viskores::rendering::View
The abstract class representing the view of a rendering scene.
Definition: View.h:39
viskores::rendering::Scene
A simple collection of things to render.
Definition: Scene.h:38
viskores::rendering::View2D
A view for a 3D data set.
Definition: View2D.h:34
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::rendering::View2D::ColorBarAnnotation
viskores::rendering::ColorBarAnnotation ColorBarAnnotation
Definition: View2D.h:64
viskores::rendering::Mapper
Converts data into commands to a rendering system.
Definition: Mapper.h:37
AxisAnnotation2D.h
viskores::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:45
ColorBarAnnotation.h
viskores::rendering::ColorBarAnnotation
Definition: ColorBarAnnotation.h:34
View.h
viskores::rendering::View2D::VerticalAxisAnnotation
viskores::rendering::AxisAnnotation2D VerticalAxisAnnotation
Definition: View2D.h:63
viskores::rendering::Canvas
Represents the image space that is the target of rendering.
Definition: Canvas.h:43
viskores::rendering::Color
Representation of a color.
Definition: Color.h:37
viskores::rendering::AxisAnnotation2D
Definition: AxisAnnotation2D.h:37