VTK-m  2.1
MapperRayTracer.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_MapperRayTracer_h
11 #define vtk_m_rendering_MapperRayTracer_h
12 
13 #include <vtkm/cont/ColorTable.h>
14 #include <vtkm/rendering/Camera.h>
15 #include <vtkm/rendering/Mapper.h>
16 
17 #include <memory>
18 
19 namespace vtkm
20 {
21 namespace rendering
22 {
23 
29 {
30 public:
32 
33  ~MapperRayTracer();
34 
35  void SetCanvas(vtkm::rendering::Canvas* canvas) override;
36  virtual vtkm::rendering::Canvas* GetCanvas() const override;
37 
38  void SetCompositeBackground(bool on);
39  vtkm::rendering::Mapper* NewCopy() const override;
40  void SetShadingOn(bool on);
41 
42 private:
43  struct InternalsType;
44  std::shared_ptr<InternalsType> Internals;
45  struct CompareIndices;
46 
47  void RenderCellsImpl(const vtkm::cont::UnknownCellSet& cellset,
48  const vtkm::cont::CoordinateSystem& coords,
49  const vtkm::cont::Field& scalarField,
50  const vtkm::cont::ColorTable& colorTable,
51  const vtkm::rendering::Camera& camera,
52  const vtkm::Range& scalarRange,
53  const vtkm::cont::Field& ghostField) override;
54 };
55 }
56 } //namespace vtkm::rendering
57 
58 #endif //vtk_m_rendering_MapperRayTracer_h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::cont::ColorTable
Color Table for coloring arbitrary fields.
Definition: cont/ColorTable.h:89
VTKM_RENDERING_EXPORT
#define VTKM_RENDERING_EXPORT
Definition: vtkm_rendering_export.h:44
vtkm::rendering::MapperRayTracer::Internals
std::shared_ptr< InternalsType > Internals
Definition: MapperRayTracer.h:43
vtkm::cont::UnknownCellSet
A CellSet of an unknown type.
Definition: UnknownCellSet.h:48
ColorTable.h
vtkm::cont::CoordinateSystem
Manages a coordinate system for a DataSet.
Definition: CoordinateSystem.h:30
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
vtkm::cont::Field
A Field encapsulates an array on some piece of the mesh, such as the points, a cell set,...
Definition: Field.h:31
vtkm::rendering::MapperRayTracer
Mapper to render surfaces using ray tracing.
Definition: MapperRayTracer.h:28
Camera.h
vtkm::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:37
Mapper.h
vtkm::Range
Represent a continuous scalar range of values.
Definition: Range.h:31