VTK-m  2.0
MapperGlyphBase.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_MapperGlyphBase_h
11 #define vtk_m_rendering_MapperGlyphBase_h
12 
13 #include <vtkm/cont/ColorTable.h>
14 #include <vtkm/rendering/Camera.h>
15 #include <vtkm/rendering/Mapper.h>
16 
17 #include <memory>
18 
19 namespace vtkm
20 {
21 namespace rendering
22 {
23 
24 class CanvasRayTracer;
25 
26 class VTKM_RENDERING_EXPORT MapperGlyphBase : public Mapper
27 {
28 public:
30 
31  virtual ~MapperGlyphBase();
32 
33  void SetCanvas(vtkm::rendering::Canvas* canvas) override;
34  virtual vtkm::rendering::Canvas* GetCanvas() const override;
35 
36  virtual bool GetUseCells() const;
37  virtual void SetUseCells();
38  virtual bool GetUseNodes() const;
39  virtual void SetUseNodes();
40 
41  virtual bool GetUseStride() const;
42  virtual void SetUseStride(bool on);
43  virtual vtkm::Id GetStride() const;
44  virtual void SetStride(vtkm::Id stride);
45 
46  virtual vtkm::Float32 GetBaseSize() const;
47  virtual void SetBaseSize(vtkm::Float32 size);
48  virtual bool GetScaleByValue() const;
49  virtual void SetScaleByValue(bool on);
50  virtual vtkm::Float32 GetScaleDelta() const;
51  virtual void SetScaleDelta(vtkm::Float32 delta);
52 
53  virtual void SetCompositeBackground(bool on);
54 
55 protected:
56  virtual vtkm::cont::DataSet FilterPoints(const vtkm::cont::UnknownCellSet& cellSet,
57  const vtkm::cont::CoordinateSystem& coords,
58  const vtkm::cont::Field& scalarField) const;
59 
60 
63 
64  bool UseNodes;
65 
66  bool UseStride;
68 
72 };
73 }
74 } //namespace vtkm::rendering
75 
76 #endif //vtk_m_rendering_MapperGlyphBase_h
vtkm::rendering::MapperGlyphBase::Canvas
vtkm::rendering::CanvasRayTracer * Canvas
Definition: MapperGlyphBase.h:61
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::rendering::MapperGlyphBase::ScaleDelta
vtkm::Float32 ScaleDelta
Definition: MapperGlyphBase.h:71
vtkm::cont::DataSet
Definition: DataSet.h:34
vtkm::rendering::MapperGlyphBase
Definition: MapperGlyphBase.h:26
vtkm::cont::UnknownCellSet
A CellSet of an unknown type.
Definition: UnknownCellSet.h:48
ColorTable.h
vtkm::rendering::MapperGlyphBase::CompositeBackground
bool CompositeBackground
Definition: MapperGlyphBase.h:62
vtkm::Id
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
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::MapperGlyphBase::BaseSize
vtkm::Float32 BaseSize
Definition: MapperGlyphBase.h:70
vtkm::rendering::MapperGlyphBase::UseNodes
bool UseNodes
Definition: MapperGlyphBase.h:64
vtkm::Float32
float Float32
Definition: Types.h:154
Camera.h
vtkm::rendering::CanvasRayTracer
Definition: CanvasRayTracer.h:23
vtkm::rendering::MapperGlyphBase::Stride
vtkm::Id Stride
Definition: MapperGlyphBase.h:67
Mapper.h
vtkm::rendering::MapperGlyphBase::UseStride
bool UseStride
Definition: MapperGlyphBase.h:66
vtkm::rendering::MapperGlyphBase::ScaleByValue
bool ScaleByValue
Definition: MapperGlyphBase.h:69