Viskores  1.0
AxisAnnotation.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_AxisAnnotation_h
19 #define viskores_rendering_AxisAnnotation_h
20 
22 
26 
27 namespace viskores
28 {
29 namespace rendering
30 {
31 
32 class VISKORES_RENDERING_EXPORT AxisAnnotation
33 {
34 protected:
35  static void CalculateTicks(const viskores::Range& range,
36  bool minor,
37  std::vector<viskores::Float64>& positions,
38  std::vector<viskores::Float64>& proportions,
39  int modifyTickQuantity);
40  static void CalculateTicksLogarithmic(const viskores::Range& range,
41  bool minor,
42  std::vector<viskores::Float64>& positions,
43  std::vector<viskores::Float64>& proportions);
44 
45 public:
46  AxisAnnotation() = default;
47 
48  virtual ~AxisAnnotation() = default;
49 
50  virtual void Render(const viskores::rendering::Camera& camera,
51  const viskores::rendering::WorldAnnotator& worldAnnotator,
52  viskores::rendering::Canvas& canvas) = 0;
53 };
54 }
55 } //namespace viskores::rendering
56 
57 #endif // viskores_rendering_AxisAnnotation_h
Scene.h
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
WorldAnnotator.h
viskores::rendering::AxisAnnotation
Definition: AxisAnnotation.h:32
viskores::Range
Represent a continuous scalar range of values.
Definition: Range.h:39
viskores::rendering::Camera
Specifies the viewport for a rendering.
Definition: Camera.h:45
Color.h
viskores_rendering_export.h
viskores::rendering::WorldAnnotator
Definition: WorldAnnotator.h:35
viskores::rendering::Canvas
Represents the image space that is the target of rendering.
Definition: Canvas.h:43