VTK-m
2.2
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
25
class
VTKM_RENDERING_EXPORT
CanvasRayTracer
:
public
Canvas
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,
36
const
vtkm::cont::ArrayHandle<vtkm::Float32>
& colors,
37
const
vtkm::rendering::Camera
& camera);
38
39
void
WriteToCanvas(
const
vtkm::rendering::raytracing::Ray<vtkm::Float64>& rays,
40
const
vtkm::cont::ArrayHandle<vtkm::Float64>
& colors,
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
Generated by
1.8.17