21#include "../common/AbstractObject.h"
39 virtual DLL_IMPORT_OR_EXPORT
void setHsvColors(uint64_t colorCount,
40 double const* hsvColors,
double const* alphas =
nullptr,
double const* indices =
nullptr,
41 std::vector<std::string>
const& colorTitles = std::vector<std::string>()) = 0;
52 double const* rgbColors,
double const* alphas =
nullptr,
53 double const* indices =
nullptr, std::vector<std::string>
const& colorTitles = std::vector<std::string>());
64 uint8_t
const* rgbColors,
double const* alphas =
nullptr,
65 double const* indices =
nullptr, std::vector<std::string>
const& colorTitles = std::vector<std::string>());
78 DLL_IMPORT_OR_EXPORT
double getHue(uint64_t colorIndex)
const;
90 DLL_IMPORT_OR_EXPORT
double getValue(uint64_t colorIndex)
const;
96 DLL_IMPORT_OR_EXPORT
double getAlpha(uint64_t colorIndex)
const;
104 DLL_IMPORT_OR_EXPORT
void getRgbColor(uint64_t colorIndex,
double& red,
double& green,
double& blue)
const;
112 DLL_IMPORT_OR_EXPORT
void getRgbColor(uint64_t colorIndex, uint8_t& red, uint8_t& green, uint8_t& blue)
const;
142 DLL_IMPORT_OR_EXPORT
void setNullHsvColor(
double hue,
double saturation,
double value,
double alpha = 1, std::string
const& colorTitle =
"");
154 DLL_IMPORT_OR_EXPORT
void setNullRgbColor(
double red,
double green,
double blue,
double alpha = 1, std::string
const& colorTitle =
"");
166 DLL_IMPORT_OR_EXPORT
void setNullRgbColor(uint8_t red, uint8_t green, uint8_t blue,
double alpha = 1, std::string
const& colorTitle =
"");
171 DLL_IMPORT_OR_EXPORT
bool hasNullColor()
const {
return static_cast<gsoap_eml2_3::resqml22__ContinuousColorMap const*
>(gsoapProxy2_3)->NullColor !=
nullptr; }
198 DLL_IMPORT_OR_EXPORT
void getNullRgbColor(
double& red,
double& green,
double& blue)
const;
205 DLL_IMPORT_OR_EXPORT
void getNullRgbColor(uint8_t& red, uint8_t& green, uint8_t& blue)
const;
213 DLL_IMPORT_OR_EXPORT
AbstractColorMap(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : COMMON_NS::AbstractObject(partialObject) {}
218 AbstractColorMap(gsoap_eml2_3::resqml22__AbstractColorMap* fromGsoap) : COMMON_NS::AbstractObject(fromGsoap) {}
224 AbstractColorMap() {}
230 virtual gsoap_eml2_3::resqml22__HsvColor* getColor(uint64_t colorIndex)
const = 0;
Map of abstract colors.
Definition AbstractColorMap.h:27
void getRgbColor(uint64_t colorIndex, double &red, double &green, double &blue) const
virtual uint64_t getColorCount() const =0
Gets color count.
double getValue(uint64_t colorIndex) const
void getRgbColor(uint64_t colorIndex, uint8_t &red, uint8_t &green, uint8_t &blue) const
double getSaturation(uint64_t colorIndex) const
void setNullRgbColor(uint8_t red, uint8_t green, uint8_t blue, double alpha=1, std::string const &colorTitle="")
Sets the NullColor value of a continuous color map.
void getNullRgbColor(double &red, double &green, double &blue) const
double getNullAlpha() const
bool hasNullColor() const
checks if the color map has a definition for the color of Null values.
Definition AbstractColorMap.h:171
void setRgbColors(uint64_t colorCount, double const *rgbColors, double const *alphas=nullptr, double const *indices=nullptr, std::vector< std::string > const &colorTitles=std::vector< std::string >())
void setNullRgbColor(double red, double green, double blue, double alpha=1, std::string const &colorTitle="")
Sets the NullColor value of a continuous color map.
void setNullHsvColor(double hue, double saturation, double value, double alpha=1, std::string const &colorTitle="")
Sets the NullColor value of a continuous color map.
virtual void setHsvColors(uint64_t colorCount, double const *hsvColors, double const *alphas=nullptr, double const *indices=nullptr, std::vector< std::string > const &colorTitles=std::vector< std::string >())=0
void loadTargetRelationships()
Definition AbstractColorMap.h:207
void getNullRgbColor(uint8_t &red, uint8_t &green, uint8_t &blue) const
double getNullValue() const
double getNullHue() const
double getHue(uint64_t colorIndex) const
bool hasColorTitle(uint64_t colorIndex) const
Queries if 'colorIndex' has color title.
std::string getColorTitle(uint64_t colorIndex) const
Gets color title.
double getAlpha(uint64_t colorIndex) const
void setRgbColors(uint64_t colorCount, uint8_t const *rgbColors, double const *alphas=nullptr, double const *indices=nullptr, std::vector< std::string > const &colorTitles=std::vector< std::string >())
double getNullSaturation() const