Viskores
1.0
viskores
rendering
CanvasRayTracer.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_CanvasRayTracer_h
19
#define viskores_rendering_CanvasRayTracer_h
20
21
#include <
viskores/rendering/viskores_rendering_export.h
>
22
23
#include <
viskores/rendering/Canvas.h
>
24
#include <viskores/rendering/raytracing/Ray.h>
25
26
namespace
viskores
27
{
28
namespace
rendering
29
{
30
33
class
VISKORES_RENDERING_EXPORT
CanvasRayTracer
:
public
Canvas
34
{
35
public
:
37
CanvasRayTracer
(
viskores::Id
width = 1024,
viskores::Id
height = 1024);
38
39
~
CanvasRayTracer
();
40
41
viskores::rendering::Canvas
* NewCopy()
const override
;
42
43
void
WriteToCanvas(
const
viskores::rendering::raytracing::Ray<viskores::Float32>& rays,
44
const
viskores::cont::ArrayHandle<viskores::Float32>
& colors,
45
const
viskores::rendering::Camera
& camera);
46
47
void
WriteToCanvas(
const
viskores::rendering::raytracing::Ray<viskores::Float64>& rays,
48
const
viskores::cont::ArrayHandle<viskores::Float64>
& colors,
49
const
viskores::rendering::Camera
& camera);
50
};
// class CanvasRayTracer
51
}
52
}
// namespace viskores::rendering
53
54
#endif //viskores_rendering_CanvasRayTracer_h
viskores::cont::ArrayHandle< viskores::Float32 >
viskores::rendering::CanvasRayTracer
Represents the image space that is the target of rendering using the internal ray tracing code.
Definition:
CanvasRayTracer.h:33
viskores::Id
viskores::Int64 Id
Base type to use to index arrays.
Definition:
Types.h:235
viskores
Groups connected points that have the same field value.
Definition:
Atomic.h:27
viskores::rendering::Camera
Specifies the viewport for a rendering.
Definition:
Camera.h:45
viskores_rendering_export.h
Canvas.h
viskores::rendering::Canvas
Represents the image space that is the target of rendering.
Definition:
Canvas.h:43
Generated by
1.8.17