21 #include "AbstractColorMap.h"
52 double const * hsvColors,
double const * alphas =
nullptr, std::vector<std::string>
const& colorTitles = std::vector<std::string>(),
53 double const * indices =
nullptr);
60 DLL_IMPORT_OR_EXPORT
static const char*
XML_TAG;
65 DLL_IMPORT_OR_EXPORT
virtual std::string
getXmlTag()
const {
return XML_TAG; }
71 gsoap_eml2_3::resqml22__HsvColor* getColor(
double colorIndex)
const;
81 DiscreteColorMap(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : AbstractColorMap(partialObject) {}
86 DiscreteColorMap(gsoap_eml2_3::resqml22__DiscreteColorMap* fromGsoap) :
87 AbstractColorMap(fromGsoap) {}
Map of abstract colors.
Definition: AbstractColorMap.h:27
Map of discrete colors. This class cannot be inherited.
Definition: DiscreteColorMap.h:27
virtual ~DiscreteColorMap()=default
virtual std::string getXmlTag() const
Definition: DiscreteColorMap.h:65
static const char * XML_TAG
Definition: DiscreteColorMap.h:60
unsigned int getColorCount() const
Gets color count.
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)
https://en.wikipedia.org/wiki/HSV_color_space