diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-11-06 10:28:35 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-11-06 11:14:54 +0200 |
commit | d493ae2fcef2ed63413b78e6afc16d13c82131ac (patch) | |
tree | 92d6bec4af629696a9f834f8e233f8436bdec7e4 /src/datavisualization/engine/scatter3dcontroller.cpp | |
parent | 582dc50a49c60d7224f9ebbf5b5cbdf687b5f8d0 (diff) |
Added GL_POINTS for scatter
Task-number: QTRD-2535
Change-Id: Icf2d4ab1d8a46ea38864d2b587411ed05c58de38
Change-Id: Icf2d4ab1d8a46ea38864d2b587411ed05c58de38
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/datavisualization/engine/scatter3dcontroller.cpp')
-rw-r--r-- | src/datavisualization/engine/scatter3dcontroller.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/datavisualization/engine/scatter3dcontroller.cpp b/src/datavisualization/engine/scatter3dcontroller.cpp index 1b865adc..065f1f02 100644 --- a/src/datavisualization/engine/scatter3dcontroller.cpp +++ b/src/datavisualization/engine/scatter3dcontroller.cpp @@ -73,11 +73,6 @@ void Scatter3DController::synchDataToRenderer() return; // Notify changes to renderer - if (m_changeTracker.slicingActiveChanged) { - // TODO: Add notification. - m_changeTracker.slicingActiveChanged = false; - } - if (m_changeTracker.selectedItemIndexChanged) { m_renderer->updateSelectedItemIndex(m_selectedItemIndex); m_changeTracker.selectedItemIndexChanged = false; @@ -89,7 +84,6 @@ void Scatter3DController::synchDataToRenderer() } } - void Scatter3DController::setActiveDataProxy(QAbstractDataProxy *proxy) { // Setting null proxy indicates default proxy @@ -202,20 +196,22 @@ void Scatter3DController::setObjectType(QDataVis::MeshStyle style, bool smooth) objFile = QStringLiteral(":/defaultMeshes/sphereSmooth"); else objFile = QStringLiteral(":/defaultMeshes/sphere"); - } else { + } else if (style == QDataVis::MeshStyleDots) { if (smooth) objFile = QStringLiteral(":/defaultMeshes/dotSmooth"); else objFile = QStringLiteral(":/defaultMeshes/dot"); + } else { + objFile = QString(); } Abstract3DController::setMeshFileName(objFile); } void Scatter3DController::setSelectionMode(QDataVis::SelectionFlags mode) { - // We only support single item selection mode - if (int(mode ^ QDataVis::SelectionItem) != 0) { - qWarning("Unsupported selection mode - only item selection mode is supported."); + // We only support single item selection mode and no selection mode + if (mode != QDataVis::SelectionItem && mode != QDataVis::SelectionNone) { + qWarning("Unsupported selection mode - only none and item selection modes are supported."); return; } Abstract3DController::setSelectionMode(mode); |