VTK-m  2.2
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 
18 
19 namespace vtkm
20 {
21 namespace rendering
22 {
23 
26 {
27 public:
28  View3D(const vtkm::rendering::Scene& scene,
29  const vtkm::rendering::Mapper& mapper,
30  const vtkm::rendering::Canvas& canvas,
31  const vtkm::rendering::Color& backgroundColor = vtkm::rendering::Color(0, 0, 0, 1),
32  const vtkm::rendering::Color& foregroundColor = vtkm::rendering::Color(1, 1, 1, 1));
33 
34  View3D(const vtkm::rendering::Scene& scene,
35  const vtkm::rendering::Mapper& mapper,
36  const vtkm::rendering::Canvas& canvas,
37  const vtkm::rendering::Camera& camera,
38  const vtkm::rendering::Color& backgroundColor = vtkm::rendering::Color(0, 0, 0, 1),
39  const vtkm::rendering::Color& foregroundColor = vtkm::rendering::Color(1, 1, 1, 1));
40 
41  void Paint() override;
42 
43  void RenderScreenAnnotations() override;
44 
45  void RenderWorldAnnotations() override;
46 
47 private:
48  // 3D-specific annotations
55 };
56 }
57 } // namespace vtkm::rendering
58 
59 #endif //vtk_m_rendering_View3D_h
vtkm::rendering::View3D::LineBatcher
vtkm::rendering::LineRendererBatcher LineBatcher
Definition: View3D.h:49
vtkm::rendering::AxisAnnotation3D
Definition: AxisAnnotation3D.h:32
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::View3D::XAxisAnnotation
vtkm::rendering::AxisAnnotation3D XAxisAnnotation
Definition: View3D.h:51
vtkm::rendering::BoundingBoxAnnotation
Definition: BoundingBoxAnnotation.h:23
AxisAnnotation3D.h
vtkm::rendering::View3D::YAxisAnnotation
vtkm::rendering::AxisAnnotation3D YAxisAnnotation
Definition: View3D.h:52
vtkm::rendering::LineRendererBatcher
Definition: LineRendererBatcher.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
BoundingBoxAnnotation.h
vtkm::rendering::View3D::ColorBarAnnotation
vtkm::rendering::ColorBarAnnotation ColorBarAnnotation
Definition: View3D.h:54
vtkm::rendering::View
The abstract class representing the view of a rendering scene.
Definition: View.h:31
vtkm::rendering::View3D
A view for a 3D data set.
Definition: View3D.h:25
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
ColorBarAnnotation.h
View.h
vtkm::rendering::ColorBarAnnotation
Definition: ColorBarAnnotation.h:26
vtkm::rendering::View3D::BoxAnnotation
vtkm::rendering::BoundingBoxAnnotation BoxAnnotation
Definition: View3D.h:50
vtkm::rendering::View3D::ZAxisAnnotation
vtkm::rendering::AxisAnnotation3D ZAxisAnnotation
Definition: View3D.h:53