Viskores  1.0
View3D.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_View3D_h
19 #define viskores_rendering_View3D_h
20 
22 
26 
27 namespace viskores
28 {
29 namespace rendering
30 {
31 
33 class VISKORES_RENDERING_EXPORT View3D : public viskores::rendering::View
34 {
35 public:
36  View3D(
37  const viskores::rendering::Scene& scene,
38  const viskores::rendering::Mapper& mapper,
39  const viskores::rendering::Canvas& canvas,
40  const viskores::rendering::Color& backgroundColor = viskores::rendering::Color(0, 0, 0, 1),
41  const viskores::rendering::Color& foregroundColor = viskores::rendering::Color(1, 1, 1, 1));
42 
43  View3D(
44  const viskores::rendering::Scene& scene,
45  const viskores::rendering::Mapper& mapper,
46  const viskores::rendering::Canvas& canvas,
47  const viskores::rendering::Camera& camera,
48  const viskores::rendering::Color& backgroundColor = viskores::rendering::Color(0, 0, 0, 1),
49  const viskores::rendering::Color& foregroundColor = viskores::rendering::Color(1, 1, 1, 1));
50 
51  void Paint() override;
52 
53  void RenderScreenAnnotations() override;
54 
55  void RenderWorldAnnotations() override;
56 
57 private:
58  // 3D-specific annotations
65 };
66 }
67 } // namespace viskores::rendering
68 
69 #endif //viskores_rendering_View3D_h
viskores::rendering::View3D
A view for a 3D data set.
Definition: View3D.h:33
viskores::rendering::View3D::XAxisAnnotation
viskores::rendering::AxisAnnotation3D XAxisAnnotation
Definition: View3D.h:61
viskores::rendering::View
The abstract class representing the view of a rendering scene.
Definition: View.h:39
viskores::rendering::View3D::YAxisAnnotation
viskores::rendering::AxisAnnotation3D YAxisAnnotation
Definition: View3D.h:62
AxisAnnotation3D.h
viskores::rendering::View3D::ColorBarAnnotation
viskores::rendering::ColorBarAnnotation ColorBarAnnotation
Definition: View3D.h:64
viskores::rendering::Scene
A simple collection of things to render.
Definition: Scene.h:38
viskores::rendering::BoundingBoxAnnotation
Definition: BoundingBoxAnnotation.h:31
viskores::rendering::AxisAnnotation3D
Definition: AxisAnnotation3D.h:40
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
BoundingBoxAnnotation.h
viskores::rendering::View3D::ZAxisAnnotation
viskores::rendering::AxisAnnotation3D ZAxisAnnotation
Definition: View3D.h:63
viskores::rendering::Mapper
Converts data into commands to a rendering system.
Definition: Mapper.h:37
viskores::rendering::LineRendererBatcher
Definition: LineRendererBatcher.h:34
viskores::rendering::View3D::BoxAnnotation
viskores::rendering::BoundingBoxAnnotation BoxAnnotation
Definition: View3D.h:60
viskores::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:45
ColorBarAnnotation.h
viskores::rendering::ColorBarAnnotation
Definition: ColorBarAnnotation.h:34
viskores::rendering::View3D::LineBatcher
viskores::rendering::LineRendererBatcher LineBatcher
Definition: View3D.h:59
View.h
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