VTK-m
2.0
vtkm
rendering
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
13
#include <vtkm/rendering/vtkm_rendering_export.h>
14
15
#include <
vtkm/rendering/Canvas.h
>
16
#include <
vtkm/rendering/raytracing/Ray.h
>
17
18
namespace
vtkm
19
{
20
namespace
rendering
21
{
22
23
class
VTKM_RENDERING_EXPORT
CanvasRayTracer
:
public
Canvas
24
{
25
public
:
26
CanvasRayTracer
(
vtkm::Id
width = 1024,
vtkm::Id
height = 1024);
27
28
~
CanvasRayTracer
();
29
30
vtkm::rendering::Canvas
* NewCopy()
const override
;
31
32
void
WriteToCanvas(
const
vtkm::rendering::raytracing::Ray<vtkm::Float32>
& rays,
33
const
vtkm::cont::ArrayHandle<vtkm::Float32>
& colors,
34
const
vtkm::rendering::Camera
& camera);
35
36
void
WriteToCanvas(
const
vtkm::rendering::raytracing::Ray<vtkm::Float64>
& rays,
37
const
vtkm::cont::ArrayHandle<vtkm::Float64>
& colors,
38
const
vtkm::rendering::Camera
& camera);
39
};
// class CanvasRayTracer
40
}
41
}
// namespace vtkm::rendering
42
43
#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::Id
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition:
Types.h:191
vtkm::rendering::raytracing::Ray
Definition:
Ray.h:37
vtkm::rendering::Canvas
Definition:
Canvas.h:34
vtkm::rendering::CanvasRayTracer
Definition:
CanvasRayTracer.h:23
vtkm::rendering::Camera
Definition:
Camera.h:28
Canvas.h
Ray.h
Generated by
1.8.17