Skip to content

Commit 0454177

Browse files
Merge pull request #372 from Esri/james/qml_singletons
Use new factory object.
2 parents 9abf41c + f0c1554 commit 0454177

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Plugin/QmlApi/qml/ArcGISArView.qml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@ ArcGISArViewInternal {
4747

4848
onInitialTransformationChanged: {
4949
// Set the `initialTransformationMatrix` as the TransformationMatrix.identity - hit test matrix.
50-
const hitMatrix = TransformationMatrix.createWithQuaternionAndTranslation(
50+
const hitMatrix = Factory.TransformationMatrix.createWithQuaternionAndTranslation(
5151
quaternionX, quaternionY, quaternionZ, quaternionW,
5252
translationX, translationY, translationZ);
5353

54-
const identityTransformationMatrix = TransformationMatrix.createIdentityMatrix();
54+
const identityTransformationMatrix = Factory.TransformationMatrix.createIdentityMatrix();
5555
initialTransformationMatrix = identityTransformationMatrix.subtractTransformation(hitMatrix);
5656
}
5757

5858
// It's not possible to create the TransformationMatrix object directly in C++. This function
5959
// is used to create the TM object and assign it to the TMCC.
6060
onTransformationMatrixChanged: {
61-
const matrix = TransformationMatrix.createWithQuaternionAndTranslation(
61+
const matrix = Factory.TransformationMatrix.createWithQuaternionAndTranslation(
6262
quaternionX, quaternionY, quaternionZ, quaternionW,
6363
translationX, translationY, translationZ);
6464

6565
if (!initialTransformationMatrix)
66-
initialTransformationMatrix = TransformationMatrix.createIdentityMatrix();
66+
initialTransformationMatrix = Factory.TransformationMatrix.createIdentityMatrix();
6767

6868
const finalMatrix = initialTransformationMatrix.addTransformation(matrix);
6969
tmcc.transformationMatrix = finalMatrix;
@@ -138,8 +138,8 @@ ArcGISArViewInternal {
138138
const camera = ArcGISRuntimeEnvironment.createObject("Camera");
139139
tmcc.originCamera = camera;
140140

141-
initialTransformationMatrix = TransformationMatrix.createIdentityMatrix();
142-
tmcc.transformationMatrix = TransformationMatrix.createIdentityMatrix();
141+
initialTransformationMatrix = Factory.TransformationMatrix.createIdentityMatrix();
142+
tmcc.transformationMatrix = Factory.TransformationMatrix.createIdentityMatrix();
143143
}
144144

145145
/*!
@@ -148,7 +148,7 @@ ArcGISArViewInternal {
148148
function screenToLocation(x, y) {
149149
const hitTest = root.hitTest(x, y);
150150

151-
const hitMatrix = TransformationMatrix.createWithQuaternionAndTranslation(
151+
const hitMatrix = Factory.TransformationMatrix.createWithQuaternionAndTranslation(
152152
hitTest[0], hitTest[1], hitTest[2], hitTest[3], // quaternionX, quaternionY, quaternionZ, quaternionW
153153
hitTest[4], hitTest[5], hitTest[6]); // translationX, translationY, translationZ
154154

0 commit comments

Comments
 (0)