ScalarMapperContinuousDomain.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: Visualization
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2016, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeCore/Color4f.h"
16 #include "CeeVisualization/Base.h"
17 #include "CeeVisualization/ScalarMapper.h"
18 
19 
20 #include <vector>
21 
22 
23 namespace cvf {
24  class ScalarMapperContinuousDomain;
25 }
26 
27 namespace cee {
28 class Image;
29 
30 namespace vis {
31 
32 
33 //==================================================================================================
34 //
37 //==================================================================================================
38 class CEE_VIS_EXPORT ScalarMapperContinuousDomain : public ScalarMapper
39 {
40 public:
42 
43  virtual double normalizedValue(double domainValue) const = 0;
44  virtual double domainValue(double normalizedPosition) const = 0;
45 
46  virtual unsigned int version() const = 0;
47 
48  virtual std::vector<double> tickValuesHint() const;
49 
50  Color4f undefinedColor() const;
51  void setUndefinedColor(const Color4f& color);
52 
53  bool aboveRangeColor(Color4f* color) const;
54  void setAboveRangeColor(const Color4f& color);
55  void clearAboveRangeColor();
56 
57  bool belowRangeColor(Color4f* color) const;
58  void setBelowRangeColor(const Color4f& color);
59  void clearBelowRangeColor();
60 
61 private:
62  virtual cvf::ScalarMapperContinuousDomain* internal_cvfScalarMapper() = 0;
63 
64 private:
66 };
67 
68 } // namespace vis
69 } // namespace cee
Definition: LogEvent.h:19
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Class for storing an RGBA color.
Definition: Color4f.h:25
Abstract base class for scalar mappers.
Definition: ScalarMapper.h:40
Base class for scalar mappers that implement normalizedValue / domainValue.
Definition: ScalarMapperContinuousDomain.h:38
The OverlayColorLegendContinuousDomain is capable of visualizing all scalar mappers that derives from...
Definition: OverlayColorLegendContinuousDomain.h:32