Home
Getting started
Components overview
Topics
Components
Classes
Tutorials and Examples
Code snippets
Support
ScalarMapperFilledContours.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
ScalarMapperFilledContours
:
public
ScalarMapperContinuousDomain
30
{
31
public
:
32
ScalarMapperFilledContours
();
33
virtual
~
ScalarMapperFilledContours
();
34
35
double
rangeMinimum()
const
;
36
double
rangeMaximum()
const
;
37
38
void
setColorsAtValues(
const
std::vector<Color3f>& colorArray, std::vector<double> values);
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
virtual
std::vector<double> tickValuesHint()
const
;
51
52
private
:
53
CEE_PRIVATE_IMPL(
ScalarMapperFilledContours
);
54
CEE_DISALLOW_COPY_AND_ASSIGN(
ScalarMapperFilledContours
);
55
56
virtual
cvf::ScalarMapperContinuousDomain* internal_cvfScalarMapper();
57
};
58
59
}
// namespace vis
60
}
// 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::ScalarMapperFilledContours
Maps scalar values to texture coordinates/colors using a filled contours style with user defined cont...
Definition:
ScalarMapperFilledContours.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
ScalarMapperFilledContours.h
Updated: Fri Dec 17 2021 - Copyright © 2021 Ceetron AS