Viskores  1.0
MapperWireframer.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_rendering_MapperWireframer_h
19 #define viskores_rendering_MapperWireframer_h
20 
21 #include <memory>
22 
25 #include <viskores/cont/Field.h>
30 
31 namespace viskores
32 {
33 namespace rendering
34 {
35 
40 class VISKORES_RENDERING_EXPORT MapperWireframer : public Mapper
41 {
42 public:
45  virtual ~MapperWireframer();
46 
47  virtual viskores::rendering::Canvas* GetCanvas() const override;
48  virtual void SetCanvas(viskores::rendering::Canvas* canvas) override;
49 
55  bool GetShowInternalZones() const;
57  void SetShowInternalZones(bool showInternalZones);
58  void SetCompositeBackground(bool on);
59 
60  bool GetIsOverlay() const;
61  void SetIsOverlay(bool isOverlay);
62 
63  virtual viskores::rendering::Mapper* NewCopy() const override;
64 
65 private:
66  struct InternalsType;
67  std::shared_ptr<InternalsType> Internals;
68 
69  virtual void RenderCellsImpl(const viskores::cont::UnknownCellSet& cellset,
71  const viskores::cont::Field& scalarField,
72  const viskores::cont::ColorTable& colorTable,
73  const viskores::rendering::Camera& camera,
74  const viskores::Range& scalarRange,
75  const viskores::cont::Field& ghostField) override;
76 }; // class MapperWireframer
77 }
78 } // namespace viskores::rendering
79 #endif // viskores_rendering_MapperWireframer_h
viskores::rendering::MapperWireframer
Mapper that renders the edges of a mesh.
Definition: MapperWireframer.h:40
UnknownCellSet.h
viskores::cont::CoordinateSystem
Manages a coordinate system for a DataSet.
Definition: CoordinateSystem.h:38
ColorTable.h
CoordinateSystem.h
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::cont::ColorTable
Color Table for coloring arbitrary fields.
Definition: cont/ColorTable.h:97
viskores::rendering::MapperWireframer::Internals
std::shared_ptr< InternalsType > Internals
Definition: MapperWireframer.h:66
Field.h
viskores::rendering::Mapper
Converts data into commands to a rendering system.
Definition: Mapper.h:37
viskores::Range
Represent a continuous scalar range of values.
Definition: Range.h:39
viskores::cont::UnknownCellSet
A CellSet of an unknown type.
Definition: UnknownCellSet.h:56
viskores::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:45
Camera.h
Canvas.h
Mapper.h
viskores::cont::Field
A Field encapsulates an array on some piece of the mesh, such as the points, a cell set,...
Definition: Field.h:39
viskores::rendering::Canvas
Represents the image space that is the target of rendering.
Definition: Canvas.h:43