com.supermap.ar.areffect
Class CalibrationResult
- java.lang.Object
-
- com.supermap.ar.areffect.CalibrationResult
-
- Direct Known Subclasses:
- TransformCalibrationResult
public class CalibrationResult extends java.lang.Object
Calibration results Get the geographical position and azimuth when mobile phone starts AR scene through two-point positioning- See Also:
Calibration point
,Correction type
,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 Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static CalibrationResult
calculate(AREffectView arView, boolean isChangeScale, CalibrationPoint pointA, CalibrationPoint pointB)
The geographical location of the device is calculated by means of two corrections This method will calculate the offset before and after correctionstatic TransformCalibrationResult
calculate(AREffectView arView, boolean isChangeScale, TransformationMode transformationMode, CalibrationPoint... calibrationPoints)
Calculate the location of the device through registrationjava.util.List<CalibrationPoint>
getCalibrationPoints()
Gets the set of correction pointsfloat
getDeltaAzimuth()
Gets the azimuth of the AR scenario when it startsLocation
getDeviceLocation()
Gets the geographic coordinates when the AR scene is startedPoint3D
getOffset()
Gets the offset before and after correctionfloat
getScale()
-
-
-
Method Detail
-
calculate
public static CalibrationResult calculate(AREffectView arView, boolean isChangeScale, CalibrationPoint pointA, CalibrationPoint pointB)
The geographical location of the device is calculated by means of two corrections This method will calculate the offset before and after correction- Parameters:
arView
- AR viewisChangeScale
- Whether changing the scene scale is allowedpointA
- Calibration point ApointB
- Calibration point B- Returns:
CalibrationResult
Calibration results
-
calculate
public static TransformCalibrationResult calculate(AREffectView arView, boolean isChangeScale, TransformationMode transformationMode, CalibrationPoint... calibrationPoints)
Calculate the location of the device through registration- Parameters:
arView
-isChangeScale
- Whether changing the scene scale is allowedtransformationMode
-calibrationPoints
- Calibration point set- Returns:
TransformCalibrationResult
Calibration results
-
getOffset
public Point3D getOffset()
Gets the offset before and after correction- Returns:
- See Also:
this#calculate(AREffectView, boolean, CalibrationPoint, CalibrationPoint)
-
getDeviceLocation
public Location getDeviceLocation()
Gets the geographic coordinates when the AR scene is started- Returns:
-
getDeltaAzimuth
public float getDeltaAzimuth()
Gets the azimuth of the AR scenario when it starts- Returns:
-
getScale
public float getScale()
-
getCalibrationPoints
public java.util.List<CalibrationPoint> getCalibrationPoints()
Gets the set of correction points- Returns:
-
-