VTK-m  2.0
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 
13 #include <vtkm/rendering/vtkm_rendering_export.h>
14 
15 #include <vtkm/rendering/Color.h>
16 #include <vtkm/rendering/Scene.h>
18 
19 namespace vtkm
20 {
21 namespace rendering
22 {
23 
24 class VTKM_RENDERING_EXPORT AxisAnnotation
25 {
26 protected:
27  void CalculateTicks(const vtkm::Range& range,
28  bool minor,
29  std::vector<vtkm::Float64>& positions,
30  std::vector<vtkm::Float64>& proportions,
31  int modifyTickQuantity) const;
32  void CalculateTicksLogarithmic(const vtkm::Range& range,
33  bool minor,
34  std::vector<vtkm::Float64>& positions,
35  std::vector<vtkm::Float64>& proportions) const;
36 
37 public:
39 
40  virtual ~AxisAnnotation();
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
Scene.h
vtkm::rendering::Canvas
Definition: Canvas.h:34
WorldAnnotator.h
vtkm::rendering::WorldAnnotator
Definition: WorldAnnotator.h:27
Color.h
vtkm::rendering::Camera
Definition: Camera.h:28
vtkm::rendering::AxisAnnotation
Definition: AxisAnnotation.h:24
vtkm::Range
Represent a continuous scalar range of values.
Definition: Range.h:31