ScalarMapper.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: Visualization
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2014, 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/RefCountedObject.h"
16 #include "CeeVisualization/Base.h"
17 #include "CeeCore/Color3f.h"
18 #include "CeeCore/Vec2f.h"
19 
20 
21 namespace cee {
22 class Image;
23 
24 namespace vis {
25 
26 //==================================================================================================
38 //==================================================================================================
39 
40 class CEE_VIS_EXPORT ScalarMapper : public RefCountedObject
41 {
42 public:
43  virtual ~ScalarMapper() {};
44 
45  virtual Vec2f mapToTextureCoordinate(double scalarValue) const = 0;
46  virtual Color3f mapToColor(double scalarValue) const = 0;
47 
48  virtual bool updateTexture(Image* image) const = 0;
49 };
50 
51 } // namespace vis
52 } // namespace cee
Stores an RGBA image with 8 bits per pixel.
Definition: Image.h:25
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Abstract base class for scalar mappers.
Definition: ScalarMapper.h:40
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
Class for storing an RGB color triplet.
Definition: Color3f.h:25
Vector class for a 2D float vector.
Definition: Vec2f.h:24