VTK-m  2.0
MapperWireframer.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_MapperWireframer_h
11 #define vtk_m_rendering_MapperWireframer_h
12 
13 #include <memory>
14 
15 #include <vtkm/cont/ColorTable.h>
17 #include <vtkm/cont/Field.h>
19 #include <vtkm/rendering/Camera.h>
20 #include <vtkm/rendering/Canvas.h>
21 #include <vtkm/rendering/Mapper.h>
22 
23 namespace vtkm
24 {
25 namespace rendering
26 {
27 
28 class VTKM_RENDERING_EXPORT MapperWireframer : public Mapper
29 {
30 public:
31  VTKM_CONT
33  virtual ~MapperWireframer();
34 
35  virtual vtkm::rendering::Canvas* GetCanvas() const override;
36  virtual void SetCanvas(vtkm::rendering::Canvas* canvas) override;
37 
38  bool GetShowInternalZones() const;
39  void SetShowInternalZones(bool showInternalZones);
40  void SetCompositeBackground(bool on);
41 
42  bool GetIsOverlay() const;
43  void SetIsOverlay(bool isOverlay);
44 
45  virtual void RenderCells(const vtkm::cont::UnknownCellSet& cellset,
46  const vtkm::cont::CoordinateSystem& coords,
47  const vtkm::cont::Field& scalarField,
48  const vtkm::cont::ColorTable& colorTable,
49  const vtkm::rendering::Camera& camera,
50  const vtkm::Range& scalarRange) override;
51 
52  virtual vtkm::rendering::Mapper* NewCopy() const override;
53 
54 private:
55  struct InternalsType;
56  std::shared_ptr<InternalsType> Internals;
57 }; // class MapperWireframer
58 }
59 } // namespace vtkm::rendering
60 #endif // vtk_m_rendering_MapperWireframer_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
UnknownCellSet.h
vtkm::cont::UnknownCellSet
A CellSet of an unknown type.
Definition: UnknownCellSet.h:48
ColorTable.h
CoordinateSystem.h
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::rendering::MapperWireframer::Internals
std::shared_ptr< InternalsType > Internals
Definition: MapperWireframer.h:55
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::rendering::MapperWireframer
Definition: MapperWireframer.h:28
Field.h
Camera.h
vtkm::rendering::Camera
Definition: Camera.h:28
Canvas.h
Mapper.h
vtkm::Range
Represent a continuous scalar range of values.
Definition: Range.h:31