ColorTableFactory.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: Visualization
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2011, 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 "CeeVisualization/Base.h"
16 #include "CeeCore/Color3f.h"
17 #include <vector>
18 
19 namespace cee {
20 namespace vis {
21 
22 //==================================================================================================
23 //
24 // Factory functions for creating color tables for e.g. color legends/scalar mappers
25 //
26 //==================================================================================================
27 class CEE_VIS_EXPORT ColorTableFactory
28 {
29 public:
32  {
43  METAL_CASTING
44  };
45 
46 public:
47  static std::vector<Color3f> colorTableArray(ColorTable colorTable, size_t colorCount);
48  static std::vector<Color3f> interpolateColorArray(const std::vector<Color3f>& colorArray, size_t targetColorCount);
49 };
50 
51 } // namespace vis
52 } // namespace cee
A map suitable for thermal scalars.
Definition: ColorTableFactory.h:41
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
The standard color map for scalar mapping in CDC. Following the color spectra, but starting on blue a...
Definition: ColorTableFactory.h:33
Blue to green color map.
Definition: ColorTableFactory.h:36
A map suitable for thermal scalars.
Definition: ColorTableFactory.h:42
A red to yellow color map.
Definition: ColorTableFactory.h:39
Blue to red color map.
Definition: ColorTableFactory.h:35
ColorTable
The predefined color schemes supported by the color table factory.
Definition: ColorTableFactory.h:31
Factory functions for creating color tables based on a predefined number of color schemes...
Definition: ColorTableFactory.h:27
Yellow to red color map.
Definition: ColorTableFactory.h:37
A map from Green through yellow ending up in red.
Definition: ColorTableFactory.h:38
Black to while color map.
Definition: ColorTableFactory.h:34
A map suitable for thermal scalars.
Definition: ColorTableFactory.h:40