Skip to content

PythonQt.QtOpenGL.QGLColormap · declarations 001

Back to PythonQt.QtOpenGL.QGLColormap

entryColor

entryColor(idx: int) -> Any

X.entryColor(idx) -> PythonQt.QtGui.QColor

Supplemental documentation: Qt 5 reference:

QColor QGLColormap::entryColor(int idx) const

Returns the QRgb value in the colorcell with index idx.

Upstream PySide2 reference signatures (binding differences may apply):

entryColor(self, idx: int) -> PySide2.QtGui.QColor

Source: https://doc.qt.io/archives/qt-5.15/qglcolormap.html#entryColor

entryRgb

entryRgb(idx: int) -> int

X.entryRgb(idx) -> int

Supplemental documentation: Qt 5 reference:

QRgb QGLColormap::entryRgb(int idx) const

Returns the QRgb value in the colorcell with index idx.

Upstream PySide2 reference signatures (binding differences may apply):

entryRgb(self, idx: int) -> int

Source: https://doc.qt.io/archives/qt-5.15/qglcolormap.html#entryRgb

find

find(color: int) -> int

X.find(color) -> int

Supplemental documentation: Qt 5 reference:

int QGLColormap::find(QRgb color) const

Returns the index of the color color. If color is not in the map, -1 is returned.

Upstream PySide2 reference signatures (binding differences may apply):

find(self, color: int) -> int

Source: https://doc.qt.io/archives/qt-5.15/qglcolormap.html#find

findNearest

findNearest(color: int) -> int

X.findNearest(color) -> int

Supplemental documentation: Qt 5 reference:

int QGLColormap::findNearest(QRgb color) const

Returns the index of the color that is the closest match to color color.

Upstream PySide2 reference signatures (binding differences may apply):

findNearest(self, color: int) -> int

Source: https://doc.qt.io/archives/qt-5.15/qglcolormap.html#findNearest

handle

handle() -> int

X.handle()

Upstream PySide2 reference signatures (binding differences may apply):

handle(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qglcolormap.html#handle

isEmpty

isEmpty() -> bool

X.isEmpty() -> bool

Supplemental documentation: Qt 5 reference:

bool QGLColormap::isEmpty() const

Returns true if the colormap is empty or it is not in use by a QGLWidget; otherwise returns false.

A colormap with no color values set is considered to be empty. For historical reasons, a colormap that has color values set but which is not in use by a QGLWidget is also considered empty.

Compare size() with zero to determine if the colormap is empty regardless of whether it is in use by a QGLWidget or not.

See also size().

Upstream PySide2 reference signatures (binding differences may apply):

isEmpty(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qglcolormap.html#isEmpty

setEntry

setEntry(idx: int, color: Any) -> None

X.setEntry(idx, color)

Supplemental documentation: Qt 5 reference:

void QGLColormap::setEntry(int idx, QRgb color)

Set cell at index idx in the colormap to color color.

void QGLColormap::setEntry(int idx, const QColor \&color)

This is an overloaded function.

Set the cell with index idx in the colormap to color color.

Upstream PySide2 reference signatures (binding differences may apply):

setEntry(self, idx: int, color: PySide2.QtGui.QColor) -> None
setEntry(self, idx: int, color: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qglcolormap.html#setEntry

setHandle

setHandle(ahandle: int) -> None

X.setHandle(ahandle)

Upstream PySide2 reference signatures (binding differences may apply):

setHandle(self, ahandle: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qglcolormap.html#setHandle

size

size() -> int

X.size() -> int

Supplemental documentation: Qt 5 reference:

int QGLColormap::size() const

Returns the number of colorcells in the colormap.

Upstream PySide2 reference signatures (binding differences may apply):

size(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qglcolormap.html#size