summaryrefslogtreecommitdiffstats
path: root/examples/qmlscatter
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-08-08 13:03:08 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-08-08 13:27:10 +0300
commite516c51ebf6e8c6c257e479f23196a54b15d6b2c (patch)
tree50b6d821186d677ad90c5784c0e2ea508e3de7f5 /examples/qmlscatter
parent19d6ebceee9b68f746914fc9123cb1cf64d225f2 (diff)
Q3DScatter: Autoscaling finished
+ dot size is scaled based on item count + autoscaling works on scenes where x and z are different sizes + added an option to force uniform x and z scaling (using a compile-time flag for now) + changed default dot mesh to sphere Change-Id: Iadfef69489856d7f2c76678eade8896cc916e94e Change-Id: Iadfef69489856d7f2c76678eade8896cc916e94e Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'examples/qmlscatter')
-rw-r--r--examples/qmlscatter/qml/qmlscatter/main.qml21
1 files changed, 10 insertions, 11 deletions
diff --git a/examples/qmlscatter/qml/qmlscatter/main.qml b/examples/qmlscatter/qml/qmlscatter/main.qml
index 9de3a6a3..dadf9aa4 100644
--- a/examples/qmlscatter/qml/qmlscatter/main.qml
+++ b/examples/qmlscatter/qml/qmlscatter/main.qml
@@ -54,29 +54,28 @@ Item {
ListElement{ xPos: 0.0; yPos: 0.0; zPos: 0.0 }
ListElement{ xPos: 0.0; yPos: 2.0; zPos: 0.0 }
ListElement{ xPos: 0.0; yPos: -2.0; zPos: 0.0 }
- ListElement{ xPos: -1.0; yPos: 4.9; zPos: -1.0 }
- ListElement{ xPos: 1.0; yPos: 4.9; zPos: -1.0 }
- ListElement{ xPos: -1.0; yPos: 4.9; zPos: 1.0 }
- ListElement{ xPos: 1.0; yPos: 4.9; zPos: 1.0 }
- ListElement{ xPos: -1.0; yPos: -4.9; zPos: -1.0 }
- ListElement{ xPos: 1.0; yPos: -4.9; zPos: -1.0 }
- ListElement{ xPos: -1.0; yPos: -4.9; zPos: 1.0 }
- ListElement{ xPos: 1.0; yPos: -4.9; zPos: 1.0 }
+ ListElement{ xPos: -10.0; yPos: 4.9; zPos: -5.0 }
+ ListElement{ xPos: 10.0; yPos: 4.9; zPos: -5.0 }
+ ListElement{ xPos: -10.0; yPos: 4.9; zPos: 5.0 }
+ ListElement{ xPos: 10.0; yPos: 4.9; zPos: 5.0 }
+ ListElement{ xPos: -10.0; yPos: -4.9; zPos: -5.0 }
+ ListElement{ xPos: 10.0; yPos: -4.9; zPos: -5.0 }
+ ListElement{ xPos: -10.0; yPos: -4.9; zPos: 5.0 }
+ ListElement{ xPos: 10.0; yPos: -4.9; zPos: 5.0 }
}
Scatter3D {
id: testscatter
width: dataView.width
height: dataView.height
- fontSize: 300.0
+ fontSize: 30.0
mapping: scatterMapping
Component.onCompleted: {
console.log("testscatter complete");
- //setTickCount(10, 0.5, -5.0);
shadowQuality = Scatter3D.ShadowNone
selectionMode = Scatter3D.ModeBar
- labelTransparency = Scatter3D.TransparencyNoBackground//.TransparencyFromTheme
+ labelTransparency = Scatter3D.TransparencyNoBackground
data = dataModel
}
}