21 #include "../common/AbstractObject.h"
39 virtual DLL_IMPORT_OR_EXPORT
void setHsvColors(
unsigned int colorCount,
40 double const* hsvColors,
double const* alphas =
nullptr, std::vector<std::string>
const& colorTitles = std::vector<std::string>(),
41 double const* indices =
nullptr) = 0;
52 double const* rgbColors,
double const* alphas =
nullptr, std::vector<std::string>
const& colorTitles = std::vector<std::string>(),
53 double const* indices =
nullptr);
64 unsigned int const* rgbColors,
double const* alphas =
nullptr, std::vector<std::string>
const& colorTitles = std::vector<std::string>(),
65 double const* indices =
nullptr);
78 DLL_IMPORT_OR_EXPORT
double getHue(
double colorIndex)
const;
90 DLL_IMPORT_OR_EXPORT
double getValue(
double colorIndex)
const;
96 DLL_IMPORT_OR_EXPORT
double getAlpha(
double colorIndex)
const;
104 DLL_IMPORT_OR_EXPORT
void getRgbColor(
double colorIndex,
double& red,
double& green,
double& blue)
const;
112 DLL_IMPORT_OR_EXPORT
void getRgbColor(
double colorIndex,
unsigned int& red,
unsigned int& green,
unsigned int& blue)
const;
138 virtual gsoap_eml2_3::resqml22__HsvColor* getColor(
double colorIndex)
const = 0;
144 DLL_IMPORT_OR_EXPORT
AbstractColorMap(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : COMMON_NS::AbstractObject(partialObject) {}
149 AbstractColorMap(gsoap_eml2_3::resqml22__AbstractColorMap* fromGsoap) : COMMON_NS::AbstractObject(fromGsoap) {}
155 AbstractColorMap() {}
Map of abstract colors.
Definition: AbstractColorMap.h:27
double getHue(double colorIndex) const
double getAlpha(double colorIndex) const
bool hasColorTitle(double colorIndex) const
Queries if 'colorIndex' has color title.
double getValue(double colorIndex) const
std::string getColorTitle(double colorIndex) const
Gets color title.
double getSaturation(double colorIndex) const
void getRgbColor(double colorIndex, double &red, double &green, double &blue) const
void loadTargetRelationships()
Definition: AbstractColorMap.h:132
void setRgbColors(unsigned int colorCount, double const *rgbColors, double const *alphas=nullptr, std::vector< std::string > const &colorTitles=std::vector< std::string >(), double const *indices=nullptr)
void setRgbColors(unsigned int colorCount, unsigned int const *rgbColors, double const *alphas=nullptr, std::vector< std::string > const &colorTitles=std::vector< std::string >(), double const *indices=nullptr)
virtual void setHsvColors(unsigned int colorCount, double const *hsvColors, double const *alphas=nullptr, std::vector< std::string > const &colorTitles=std::vector< std::string >(), double const *indices=nullptr)=0
virtual unsigned int getColorCount() const =0
Gets color count.
void getRgbColor(double colorIndex, unsigned int &red, unsigned int &green, unsigned int &blue) const