VTK-m  2.2
MapperConnectivity.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_MapperConnectivity_h
11 #define vtk_m_rendering_MapperConnectivity_h
12 
13 #include <vtkm/cont/ColorTable.h>
15 #include <vtkm/rendering/Mapper.h>
16 #include <vtkm/rendering/View.h>
17 
18 namespace vtkm
19 {
20 namespace rendering
21 {
22 
24 {
25 public:
27 
29  void SetSampleDistance(const vtkm::Float32&);
30  void SetCanvas(vtkm::rendering::Canvas* canvas) override;
31  virtual vtkm::rendering::Canvas* GetCanvas() const override;
32 
33  vtkm::rendering::Mapper* NewCopy() const override;
34  void CreateDefaultView();
35 
36 protected:
39  virtual void RenderCellsImpl(const vtkm::cont::UnknownCellSet& cellset,
40  const vtkm::cont::CoordinateSystem& coords,
41  const vtkm::cont::Field& scalarField,
42  const vtkm::cont::ColorTable&, //colorTable
43  const vtkm::rendering::Camera& camera,
44  const vtkm::Range& scalarRange,
45  const vtkm::cont::Field& ghostField) override;
46 };
47 }
48 } //namespace vtkm::rendering
49 #endif //vtk_m_rendering_SceneRendererVolume_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
CanvasRayTracer.h
vtkm::cont::UnknownCellSet
A CellSet of an unknown type.
Definition: UnknownCellSet.h:48
ColorTable.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::MapperConnectivity
Definition: MapperConnectivity.h:23
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::MapperConnectivity::SampleDistance
vtkm::Float32 SampleDistance
Definition: MapperConnectivity.h:37
vtkm::rendering::MapperConnectivity::CanvasRT
CanvasRayTracer * CanvasRT
Definition: MapperConnectivity.h:38
vtkm::Float32
float Float32
Base type to use for 32-bit floating-point numbers.
Definition: Types.h:157
vtkm::rendering::CanvasRayTracer
Represents the image space that is the target of rendering using the internal ray tracing code.
Definition: CanvasRayTracer.h:25
vtkm::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:37
Mapper.h
View.h
vtkm::Range
Represent a continuous scalar range of values.
Definition: Range.h:31