diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2014-09-04 15:00:28 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2014-09-08 09:21:04 +0300 |
commit | bb30ea555c71604de9a2bc5096fa35c9532b26bd (patch) | |
tree | 42825d3574e07136e4028f90abb1f719e2c8b6f6 /src/datavisualization/data/qcustom3dvolume.cpp | |
parent | 18413de96ea907ea5c7defdcb40248fdfbaa4de7 (diff) |
Add possibility to scale custom items according to data ranges
Proper behavior of volume objects that are shown only partially
will be added in a separate patch later.
Change-Id: I1fcd98faa6c4a7d09e3fef1645ed9816ff54654f
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/data/qcustom3dvolume.cpp')
-rw-r--r-- | src/datavisualization/data/qcustom3dvolume.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/datavisualization/data/qcustom3dvolume.cpp b/src/datavisualization/data/qcustom3dvolume.cpp index 393533c0..d0e0c139 100644 --- a/src/datavisualization/data/qcustom3dvolume.cpp +++ b/src/datavisualization/data/qcustom3dvolume.cpp @@ -623,7 +623,7 @@ void QCustom3DVolume::setSubTextureData(Qt::Axis axis, int index, const uchar *d * * \note Each X-line of the data needs to be 32bit aligned when targeting Y-axis or Z-axis. * If the textureFormat is QImage::Format_Indexed8 and textureWidth is not divisible by four, - * padding bytes need to be added to each X-line of the \a data in cases it is not already + * padding bytes need to be added to each X-line of the \a image in cases it is not already * properly aligned. The padding bytes should indicate an fully transparent color to avoid * rendering artifacts. It is not guaranteed QImage will do this automatically. * @@ -893,6 +893,8 @@ void QCustom3DVolumePrivate::resetDirtyBits() m_dirtyBitsVolume.colorTableDirty = false; m_dirtyBitsVolume.textureDataDirty = false; m_dirtyBitsVolume.textureFormatDirty = false; + m_dirtyBitsVolume.alphaDirty = false; + m_dirtyBitsVolume.shaderDirty = false; } QImage QCustom3DVolumePrivate::renderSlice(Qt::Axis axis, int index) |