VTK-m  2.0
Mapper.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_Mapper_h
11 #define vtk_m_rendering_Mapper_h
12 
13 #include <vtkm/cont/ColorTable.h>
15 #include <vtkm/cont/Field.h>
17 #include <vtkm/rendering/Camera.h>
18 #include <vtkm/rendering/Canvas.h>
19 namespace vtkm
20 {
21 namespace rendering
22 {
23 
24 class VTKM_RENDERING_EXPORT Mapper
25 {
26 public:
27  VTKM_CONT
28  Mapper() {}
29 
30  virtual ~Mapper();
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) = 0;
38 
39  virtual void SetActiveColorTable(const vtkm::cont::ColorTable& ct);
40 
41  virtual void SetCanvas(vtkm::rendering::Canvas* canvas) = 0;
42  virtual vtkm::rendering::Canvas* GetCanvas() const = 0;
43 
44  virtual vtkm::rendering::Mapper* NewCopy() const = 0;
45 
46  virtual void SetLogarithmX(bool l);
47  virtual void SetLogarithmY(bool l);
48 
49 protected:
51  bool LogarithmX = false;
52  bool LogarithmY = false;
53 };
54 }
55 } //namespace vtkm::rendering
56 #endif //vtk_m_rendering_Mapper_h
vtkm::cont::ArrayHandle< vtkm::Vec4f_32 >
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
UnknownCellSet.h
vtkm::cont::UnknownCellSet
A CellSet of an unknown type.
Definition: UnknownCellSet.h:48
ColorTable.h
CoordinateSystem.h
vtkm::rendering::Mapper::Mapper
VTKM_CONT Mapper()
Definition: Mapper.h:28
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_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
Field.h
Camera.h
vtkm::rendering::Camera
Definition: Camera.h:28
Canvas.h
vtkm::rendering::Mapper::ColorMap
vtkm::cont::ArrayHandle< vtkm::Vec4f_32 > ColorMap
Definition: Mapper.h:50
vtkm::Range
Represent a continuous scalar range of values.
Definition: Range.h:31