Home
Getting started
Components overview
Topics
Components
Classes
Tutorials and Examples
Code snippets
Support
ScalarMapperContinuousPiecewise.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 "CeeVisualization/Base.h"
16
#include "CeeVisualization/ScalarMapperContinuousDomain.h"
17
#include "CeeVisualization/ColorTableFactory.h"
18
19
#include <vector>
20
21
namespace
cee
{
22
namespace
vis {
23
24
//==================================================================================================
25
//
26
//
27
//
28
//==================================================================================================
29
class
CEE_VIS_EXPORT
ScalarMapperContinuousPiecewise
:
public
ScalarMapperContinuousDomain
30
{
31
public
:
32
ScalarMapperContinuousPiecewise
();
33
virtual
~
ScalarMapperContinuousPiecewise
();
34
35
double
rangeMinimum()
const
;
36
double
rangeMaximum()
const
;
37
38
void
setup(
const
std::vector<Color3f>& colorsFromToArray,
const
std::vector<double>& tickValuesArray);
39
40
virtual
Vec2f
mapToTextureCoordinate(
double
scalarValue)
const
;
41
virtual
Color3f
mapToColor(
double
scalarValue)
const
;
42
43
virtual
bool
updateTexture(
Image
* image)
const
;
44
45
virtual
double
normalizedValue(
double
domainValue)
const
;
46
virtual
double
domainValue(
double
normalizedPosition)
const
;
47
48
virtual
unsigned
int
version()
const
;
49
50
private
:
51
CEE_PRIVATE_IMPL(
ScalarMapperContinuousPiecewise
);
52
CEE_DISALLOW_COPY_AND_ASSIGN(
ScalarMapperContinuousPiecewise
);
53
54
virtual
cvf::ScalarMapperContinuousDomain* internal_cvfScalarMapper();
55
};
56
57
}
// namespace vis
58
}
// namespace cee
cee::Image
Stores an RGBA image with 8 bits per pixel.
Definition:
Image.h:25
cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition:
AppComponent.cpp:26
cee::vis::ScalarMapperContinuousPiecewise
Maps scalar values to texture coordinates/colors using a continuous/gradient style color map with mul...
Definition:
ScalarMapperContinuousPiecewise.h:29
cee::vis::ScalarMapperContinuousDomain
Base class for scalar mappers that implement normalizedValue / domainValue.
Definition:
ScalarMapperContinuousDomain.h:38
cee::Color3f
Class for storing an RGB color triplet.
Definition:
Color3f.h:25
cee::Vec2f
Vector class for a 2D float vector.
Definition:
Vec2f.h:24
CeeVisualization
ScalarMapperContinuousPiecewise.h
Updated: Fri Jun 17 2022 - Copyright © 2022 Ceetron AS