com.supermap.ar.areffect
Class TransformCalibrationResult
- java.lang.Object
-
- com.supermap.ar.areffect.CalibrationResult
-
- com.supermap.ar.areffect.TransformCalibrationResult
-
public class TransformCalibrationResult extends CalibrationResult
The calibration results of geographical registration were used Get the geographical position and azimuth when mobile phone starts AR scene through two-point positioning- See Also:
Calibration point
,Use examples by offset correction * //Correct the scene if (arSceneLoader == null){ //If the scenario is not loaded arView.setDeviceLocation(result.getDeviceLocation()); arView.setAzimuth(result.getDeltaAzimuth()); //do sth.(initArScene(this)) }else { //If the scene is loaded, take out the node of the scene and set the position offset and rotation Angle arSceneLoader.getSceneElement().setPosition(offset); arSceneLoader.getSceneElement().setRotationAngleNoRepeat(new Quaternion(new Vector3(0,1,0),deltaAzimuth)); }
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Transformation
getToArTransformation()
The data registration class transformed from AR coordinates to geographic coordinates is obtainedTransformation
getToGeoTransformation()
The data registration class transformed from AR coordinates to geographic coordinates is obtainedjava.util.List<Point3D>
toArPoint(Point2Ds points)
The geographical coordinates are converted into AR coordinate sets by correction resultsPoint2Ds
toGeoPoint(java.util.List<Point3D> pointList)
The AR coordinate point set is converted into geographic coordinates by correction results-
Methods inherited from class com.supermap.ar.areffect.CalibrationResult
calculate, calculate, getCalibrationPoints, getDeltaAzimuth, getDeviceLocation, getOffset, getScale
-
-
-
-
Method Detail
-
toArPoint
public java.util.List<Point3D> toArPoint(Point2Ds points)
The geographical coordinates are converted into AR coordinate sets by correction results- Parameters:
points
-- Returns:
-
toGeoPoint
public Point2Ds toGeoPoint(java.util.List<Point3D> pointList)
The AR coordinate point set is converted into geographic coordinates by correction results- Parameters:
pointList
-- Returns:
-
getToGeoTransformation
public Transformation getToGeoTransformation()
The data registration class transformed from AR coordinates to geographic coordinates is obtained- Returns:
Transformation
-
getToArTransformation
public Transformation getToArTransformation()
The data registration class transformed from AR coordinates to geographic coordinates is obtained- Returns:
Transformation
-
-