VTK-m  2.0
MapperVolume.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_MapperVolume_h
11 #define vtk_m_rendering_MapperVolume_h
12 
13 #include <vtkm/rendering/Mapper.h>
14 
15 #include <memory>
16 
17 namespace vtkm
18 {
19 namespace rendering
20 {
21 
22 class VTKM_RENDERING_EXPORT MapperVolume : public Mapper
23 {
24 public:
25  MapperVolume();
26 
27  ~MapperVolume();
28 
29  void SetCanvas(vtkm::rendering::Canvas* canvas) override;
30  virtual vtkm::rendering::Canvas* GetCanvas() const override;
31 
32  virtual void RenderCells(const vtkm::cont::UnknownCellSet& cellset,
33  const vtkm::cont::CoordinateSystem& coords,
34  const vtkm::cont::Field& scalarField,
35  const vtkm::cont::ColorTable&, //colorTable
36  const vtkm::rendering::Camera& camera,
37  const vtkm::Range& scalarRange) override;
38 
39  vtkm::rendering::Mapper* NewCopy() const override;
40  void SetSampleDistance(const vtkm::Float32 distance);
41  void SetCompositeBackground(const bool compositeBackground);
42 
43 private:
44  struct InternalsType;
45  std::shared_ptr<InternalsType> Internals;
46 };
47 }
48 } //namespace vtkm::rendering
49 
50 #endif //vtk_m_rendering_MapperVolume_h
vtkm::rendering::MapperVolume
Definition: MapperVolume.h:22
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::cont::UnknownCellSet
A CellSet of an unknown type.
Definition: UnknownCellSet.h:48
vtkm::cont::CoordinateSystem
Definition: CoordinateSystem.h:25
vtkm::rendering::Mapper
Definition: Mapper.h:24
vtkm::rendering::Canvas
Definition: Canvas.h:34
vtkm::cont::Field
A Field encapsulates an array on some piece of the mesh, such as the points, a cell set,...
Definition: cont/Field.h:31
vtkm::Float32
float Float32
Definition: Types.h:154
vtkm::rendering::MapperVolume::Internals
std::shared_ptr< InternalsType > Internals
Definition: MapperVolume.h:44
vtkm::rendering::Camera
Definition: Camera.h:28
Mapper.h
vtkm::Range
Represent a continuous scalar range of values.
Definition: Range.h:31