VTK-m  2.2
CanvasRayTracer.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_CanvasRayTracer_h
11 #define vtk_m_rendering_CanvasRayTracer_h
12 
14 
15 #include <vtkm/rendering/Canvas.h>
16 #include <vtkm/rendering/raytracing/Ray.h>
17 
18 namespace vtkm
19 {
20 namespace rendering
21 {
22 
26 {
27 public:
29  CanvasRayTracer(vtkm::Id width = 1024, vtkm::Id height = 1024);
30 
31  ~CanvasRayTracer();
32 
33  vtkm::rendering::Canvas* NewCopy() const override;
34 
35  void WriteToCanvas(const vtkm::rendering::raytracing::Ray<vtkm::Float32>& rays,
37  const vtkm::rendering::Camera& camera);
38 
39  void WriteToCanvas(const vtkm::rendering::raytracing::Ray<vtkm::Float64>& rays,
41  const vtkm::rendering::Camera& camera);
42 }; // class CanvasRayTracer
43 }
44 } // namespace vtkm::rendering
45 
46 #endif //vtk_m_rendering_CanvasRayTracer_h
vtkm::cont::ArrayHandle< vtkm::Float32 >
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_export.h
vtkm::rendering::Canvas
Represents the image space that is the target of rendering.
Definition: Canvas.h:35
vtkm::Id
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
vtkm::rendering::CanvasRayTracer
Represents the image space that is the target of rendering using the internal ray tracing code.
Definition: CanvasRayTracer.h:25
vtkm::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:37
Canvas.h