Skip to content

Commit

Permalink
Merge pull request python-qt-tools#100 from altendky/visualization_te…
Browse files Browse the repository at this point in the history
…xture_array

Fill generic parameter as sip.array[int] for QtDataVisualization textures
  • Loading branch information
altendky authored Oct 4, 2020
2 parents 21ce3e6 + a407a67 commit 0e770e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* [#51](https://github.com/stlehmann/PyQt5-stubs/pull/51) adds `pyqtBoundSignal.signal` hinted as `str`

### Changed
* [#100](https://github.com/stlehmann/PyQt5-stubs/pull/100) fill generic parameter as `sip.array[int]` for QtDataVisualization textures
* [#92](https://github.com/stlehmann/PyQt5-stubs/pull/92) remove self from `qDefaultSurfaceFormat()` and `qIdForNode()`
* [#83](https://github.com/stlehmann/PyQt5-stubs/pull/83) fixes `sip.array` to be generic
* [#79](https://github.com/stlehmann/PyQt5-stubs/pull/79) fixes extra class layer in several modules
Expand Down
10 changes: 5 additions & 5 deletions PyQt5-stubs/QtDataVisualization.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ class QCustom3DVolume('QCustom3DItem'):
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, position: QtGui.QVector3D, scaling: QtGui.QVector3D, rotation: QtGui.QQuaternion, textureWidth: int, textureHeight: int, textureDepth: int, textureData: sip.array, textureFormat: QtGui.QImage.Format, colorTable: typing.Iterable[int], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def __init__(self, position: QtGui.QVector3D, scaling: QtGui.QVector3D, rotation: QtGui.QQuaternion, textureWidth: int, textureHeight: int, textureDepth: int, textureData: sip.array[int], textureFormat: QtGui.QImage.Format, colorTable: typing.Iterable[int], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

def sliceFrameThicknessesChanged(self, values: QtGui.QVector3D) -> None: ...
def sliceFrameGapsChanged(self, values: QtGui.QVector3D) -> None: ...
Expand All @@ -846,7 +846,7 @@ class QCustom3DVolume('QCustom3DItem'):
def preserveOpacityChanged(self, enabled: bool) -> None: ...
def alphaMultiplierChanged(self, mult: float) -> None: ...
def textureFormatChanged(self, format: QtGui.QImage.Format) -> None: ...
def textureDataChanged(self, data: sip.array) -> None: ...
def textureDataChanged(self, data: sip.array[int]) -> None: ...
def colorTableChanged(self) -> None: ...
def sliceIndexZChanged(self, value: int) -> None: ...
def sliceIndexYChanged(self, value: int) -> None: ...
Expand Down Expand Up @@ -879,9 +879,9 @@ class QCustom3DVolume('QCustom3DItem'):
def setSubTextureData(self, axis: QtCore.Qt.Axis, index: int, data: sip.voidptr) -> None: ...
@typing.overload
def setSubTextureData(self, axis: QtCore.Qt.Axis, index: int, image: QtGui.QImage) -> None: ...
def textureData(self) -> sip.array: ...
def createTextureData(self, images: typing.Iterable[QtGui.QImage]) -> sip.array: ...
def setTextureData(self, data: sip.array) -> None: ...
def textureData(self) -> sip.array[int]: ...
def createTextureData(self, images: typing.Iterable[QtGui.QImage]) -> sip.array[int]: ...
def setTextureData(self, data: sip.array[int]) -> None: ...
def colorTable(self) -> typing.List[int]: ...
def setColorTable(self, colors: typing.Iterable[int]) -> None: ...
def setSliceIndices(self, x: int, y: int, z: int) -> None: ...
Expand Down

0 comments on commit 0e770e3

Please sign in to comment.