VTK-m  2.2
AxisAnnotation.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_AxisAnnotation_h
11 #define vtk_m_rendering_AxisAnnotation_h
12 
14 
15 #include <vtkm/rendering/Color.h>
16 #include <vtkm/rendering/Scene.h>
18 
19 namespace vtkm
20 {
21 namespace rendering
22 {
23 
25 {
26 protected:
27  static void CalculateTicks(const vtkm::Range& range,
28  bool minor,
29  std::vector<vtkm::Float64>& positions,
30  std::vector<vtkm::Float64>& proportions,
31  int modifyTickQuantity);
32  static void CalculateTicksLogarithmic(const vtkm::Range& range,
33  bool minor,
34  std::vector<vtkm::Float64>& positions,
35  std::vector<vtkm::Float64>& proportions);
36 
37 public:
38  AxisAnnotation() = default;
39 
40  virtual ~AxisAnnotation() = default;
41 
42  virtual void Render(const vtkm::rendering::Camera& camera,
43  const vtkm::rendering::WorldAnnotator& worldAnnotator,
44  vtkm::rendering::Canvas& canvas) = 0;
45 };
46 }
47 } //namespace vtkm::rendering
48 
49 #endif // vtk_m_rendering_AxisAnnotation_h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_RENDERING_EXPORT
#define VTKM_RENDERING_EXPORT
Definition: vtkm_rendering_export.h:44
vtkm_rendering_export.h
Scene.h
vtkm::rendering::Canvas
Represents the image space that is the target of rendering.
Definition: Canvas.h:35
WorldAnnotator.h
vtkm::rendering::WorldAnnotator
Definition: WorldAnnotator.h:27
Color.h
vtkm::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:37
vtkm::rendering::AxisAnnotation
Definition: AxisAnnotation.h:24
vtkm::Range
Represent a continuous scalar range of values.
Definition: Range.h:31