Viskores  1.0
MapperQuad.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_MapperQuad_h
19 #define viskores_rendering_MapperQuad_h
20 
24 
25 #include <memory>
26 
27 namespace viskores
28 {
29 namespace rendering
30 {
31 
39 class VISKORES_RENDERING_EXPORT MapperQuad : public Mapper
40 {
41 public:
42  MapperQuad();
43 
44  ~MapperQuad();
45 
46  void SetCanvas(viskores::rendering::Canvas* canvas) override;
47  virtual viskores::rendering::Canvas* GetCanvas() const override;
48 
49  void SetCompositeBackground(bool on);
50  viskores::rendering::Mapper* NewCopy() const override;
51 
52 private:
53  struct InternalsType;
54  std::shared_ptr<InternalsType> Internals;
55 
56  struct RenderFunctor;
57 
58  void RenderCellsImpl(const viskores::cont::UnknownCellSet& cellset,
60  const viskores::cont::Field& scalarField,
61  const viskores::cont::ColorTable& colorTable,
62  const viskores::rendering::Camera& camera,
63  const viskores::Range& scalarRange,
64  const viskores::cont::Field& ghostField) override;
65 };
66 }
67 } //namespace viskores::rendering
68 
69 #endif //viskores_rendering_MapperQuad_h
viskores::rendering::MapperQuad::Internals
std::shared_ptr< InternalsType > Internals
Definition: MapperQuad.h:53
viskores::cont::CoordinateSystem
Manages a coordinate system for a DataSet.
Definition: CoordinateSystem.h:38
ColorTable.h
viskores::rendering::MapperQuad
A mapper that renderers quad faces from a cell set via ray tracing.
Definition: MapperQuad.h:39
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::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
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