Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CInterpolationColor.hpp
Go to the documentation of this file.
1#ifndef LIBS_GRAPHICS_CINTERPOLATIONCOLOR_HPP_
2#define LIBS_GRAPHICS_CINTERPOLATIONCOLOR_HPP_
3
4#include <cstdint>
5#include <vector>
7{
8public:
10 CInterpolationColor(uint64_t rgb0, uint64_t rgb1);
12
13 void addInterpolation(double t, uint64_t rgb);
14 void getColorRGB(double t, double *rValue, double *gValue, double *bValue) const;
15
16private:
18 {
19 bool operator==(const SPrvInterpolation &b) const;
20 double m_t;
21 uint64_t m_rgb;
22 };
23
24 std::vector<SPrvInterpolation> m_interpolations;
25};
26
27#endif /* LIBS_GRAPHICS_CINTERPOLATIONCOLOR_HPP_ */
Definition CInterpolationColor.hpp:7
void addInterpolation(double t, uint64_t rgb)
Definition CInterpolationColor.cpp:29
CInterpolationColor()=delete
void getColorRGB(double t, double *rValue, double *gValue, double *bValue) const
Definition CInterpolationColor.cpp:70
std::vector< SPrvInterpolation > m_interpolations
Definition CInterpolationColor.hpp:24
Definition CInterpolationColor.hpp:18
uint64_t m_rgb
Definition CInterpolationColor.hpp:21
double m_t
Definition CInterpolationColor.hpp:20
bool operator==(const SPrvInterpolation &b) const
Definition CInterpolationColor.cpp:9