15#ifndef GDALCOLORTABLE_H_INCLUDED
16#define GDALCOLORTABLE_H_INCLUDED
35 std::vector<GDALColorEntry> aoEntries{};
59 int GetColorEntryCount()
const;
63 int CreateColorRamp(
int nStartIndex,
const GDALColorEntry *psStartColor,
65 bool IsIdentity()
const;
67 static std::unique_ptr<GDALColorTable>
68 LoadFromFile(
const char *pszFilename);
A color table / palette.
Definition gdal_colortable.h:32
static GDALColorTableH ToHandle(GDALColorTable *poCT)
Convert a GDALColorTable* to a GDALRasterBandH.
Definition gdal_colortable.h:72
GDALColorTable(const GDALColorTable &)=default
Copy constructor.
GDALColorTable & operator=(const GDALColorTable &)=default
Copy assignment operator.
~GDALColorTable()
Destructor.
GDALColorTable(GDALColorTable &&)=default
Move constructor.
GDALColorTable & operator=(GDALColorTable &&)=default
Move assignment operator.
static GDALColorTable * FromHandle(GDALColorTableH hCT)
Convert a GDALColorTableH to a GDALColorTable*.
Definition gdal_colortable.h:79
Core portability definitions for CPL.
Public (C callable) GDAL entry points.
GDALPaletteInterp
Definition gdal.h:377
@ GPI_RGB
Definition gdal.h:379
void * GDALColorTableH
Opaque type used for the C bindings of the C++ GDALColorTable class.
Definition gdal_fwd.h:54
Color tuple.
Definition gdal.h:2243