MaxstARSDK
com.maxst.ar.WearableCalibration Class Reference
Collaboration diagram for com.maxst.ar.WearableCalibration:
Collaboration graph

Classes

enum  DistanceType
 
enum  EyeType
 

Public Member Functions

boolean init (String modelName)
 
boolean isActivated ()
 
void setSurfaceSize (int surfaceWidth, int surfaceHeight)
 
void deinit ()
 
float[] getViewport (EyeType eyeType)
 
float[] getProjectionMatrix (int eyeType)
 
boolean writeProfile (String filePath)
 
boolean readProfile (String filePath)
 
void loadDefaultProfile (String modelName)
 
boolean setProfile (byte[] data)
 
boolean readActiveProfile (Context context, String wearableDeviceName)
 
String getActiveProfileName ()
 
void getDistancePos (DistanceType distanceType, float[] pos)
 
void setCameraToEyePose (EyeType eyeType, DistanceType distanceType, float[] pose)
 
float[] getScreenCoordinate ()
 
void getTargetGLScale (DistanceType distanceType, float[] scale)
 
void getTargetGLPosition (DistanceType distanceType, float[] position)
 

Static Public Member Functions

static WearableCalibration getInstance ()
 

Detailed Description

Contains information of WearableCalibration

Member Function Documentation

◆ deinit()

void com.maxst.ar.WearableCalibration.deinit ( )

Deinitialize the HMD device.

◆ getActiveProfileName()

String com.maxst.ar.WearableCalibration.getActiveProfileName ( )

Get active calibration profile file name

Returns
Profile file name

◆ getDistancePos()

void com.maxst.ar.WearableCalibration.getDistancePos ( DistanceType  distanceType,
float[]  pos 
)

Set target distance for wearable calibration

Parameters
distanceTypeTarget distance type
posTarget rendering position
Here is the call graph for this function:

◆ getInstance()

static WearableCalibration com.maxst.ar.WearableCalibration.getInstance ( )
static

Get WearableCalibration instance

Returns
WearableCalibration class instance

◆ getProjectionMatrix()

float [] com.maxst.ar.WearableCalibration.getProjectionMatrix ( int  eyeType)

Get HMD projection Matrix.

Parameters
eyeTypeTypes of HMD eyes
Returns
projection matrix array(float type array, size 16).

◆ getScreenCoordinate()

float [] com.maxst.ar.WearableCalibration.getScreenCoordinate ( )

◆ getTargetGLPosition()

void com.maxst.ar.WearableCalibration.getTargetGLPosition ( DistanceType  distanceType,
float[]  position 
)
Here is the call graph for this function:

◆ getTargetGLScale()

void com.maxst.ar.WearableCalibration.getTargetGLScale ( DistanceType  distanceType,
float[]  scale 
)
Here is the call graph for this function:

◆ getViewport()

float [] com.maxst.ar.WearableCalibration.getViewport ( EyeType  eyeType)

Get HMD screen viewport.

Parameters
eyeTypeTypes of HMD eyes
Returns
Viewport array(int type array, size 4).
Here is the call graph for this function:

◆ init()

boolean com.maxst.ar.WearableCalibration.init ( String  modelName)

Initialize the HMD device.

Parameters
modelNameDevice name
Returns
Result of device initialize

◆ isActivated()

boolean com.maxst.ar.WearableCalibration.isActivated ( )

Confirm that the HMD unit is initialized.

Returns
Result of device initialize

◆ loadDefaultProfile()

void com.maxst.ar.WearableCalibration.loadDefaultProfile ( String  modelName)
Here is the caller graph for this function:

◆ readActiveProfile()

boolean com.maxst.ar.WearableCalibration.readActiveProfile ( Context  context,
String  wearableDeviceName 
)
Here is the call graph for this function:

◆ readProfile()

boolean com.maxst.ar.WearableCalibration.readProfile ( String  filePath)

Read wearable calibration profile.

Parameters
filePathCalibration file path
Returns
Result of file read.

◆ setCameraToEyePose()

void com.maxst.ar.WearableCalibration.setCameraToEyePose ( EyeType  eyeType,
DistanceType  distanceType,
float[]  pose 
)
Parameters
eyeTypeTypes of HMD eyes
distanceTypeType of target distance
posePose matrix
Here is the call graph for this function:

◆ setProfile()

boolean com.maxst.ar.WearableCalibration.setProfile ( byte[]  data)

Set wearable calibration profile array.

Parameters
dataprofile array
Returns
Result of file read.
Here is the caller graph for this function:

◆ setSurfaceSize()

void com.maxst.ar.WearableCalibration.setSurfaceSize ( int  surfaceWidth,
int  surfaceHeight 
)

Set the HMD device screen size.

Parameters
surfaceWidthScreen width
surfaceHeightScreen height

◆ writeProfile()

boolean com.maxst.ar.WearableCalibration.writeProfile ( String  filePath)

Write wearable calibration profile.

Parameters
filePathCalibration file path
Returns
Result of file write.

The documentation for this class was generated from the following file: