VTK-m  2.2
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 
33 {
34 public:
35  VTKM_CONT
37  virtual ~MapperWireframer();
38 
39  virtual vtkm::rendering::Canvas* GetCanvas() const override;
40  virtual void SetCanvas(vtkm::rendering::Canvas* canvas) override;
41 
47  bool GetShowInternalZones() const;
49  void SetShowInternalZones(bool showInternalZones);
50  void SetCompositeBackground(bool on);
51 
52  bool GetIsOverlay() const;
53  void SetIsOverlay(bool isOverlay);
54 
55  virtual vtkm::rendering::Mapper* NewCopy() const override;
56 
57 private:
58  struct InternalsType;
59  std::shared_ptr<InternalsType> Internals;
60 
61  virtual void RenderCellsImpl(const vtkm::cont::UnknownCellSet& cellset,
62  const vtkm::cont::CoordinateSystem& coords,
63  const vtkm::cont::Field& scalarField,
64  const vtkm::cont::ColorTable& colorTable,
65  const vtkm::rendering::Camera& camera,
66  const vtkm::Range& scalarRange,
67  const vtkm::cont::Field& ghostField) override;
68 }; // class MapperWireframer
69 }
70 } // namespace vtkm::rendering
71 #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
VTKM_RENDERING_EXPORT
#define VTKM_RENDERING_EXPORT
Definition: vtkm_rendering_export.h:44
UnknownCellSet.h
vtkm::cont::UnknownCellSet
A CellSet of an unknown type.
Definition: UnknownCellSet.h:48
ColorTable.h
CoordinateSystem.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::MapperWireframer::Internals
std::shared_ptr< InternalsType > Internals
Definition: MapperWireframer.h:58
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
Field.h
vtkm::rendering::MapperWireframer
Mapper that renders the edges of a mesh.
Definition: MapperWireframer.h:32
Camera.h
vtkm::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:37
Canvas.h
Mapper.h
vtkm::Range
Represent a continuous scalar range of values.
Definition: Range.h:31