MaxstAR Unity
Public Types | Public Member Functions | Properties | List of all members
maxstAR.WearableCalibration Class Reference

API for wearable calibration. More...

Public Types

enum  EyeType { EyeType.EYE_LEFT = 0, EyeType.EYE_RIGHT = 1, EyeType.EYE_NUM = 2 }
 Types of HMD eyes More...
 
enum  WearableType { WearableType.None = 0, WearableType.OpticalSeeThrough = 1 }
 Wearable Device Type More...
 

Public Member Functions

 WearableCalibration ()
 Default constructor More...
 
bool IsActivated ()
 Confirm that the HMD unit is initialized. More...
 
bool Init (string modelName, int width, int height)
 Initialize the HMD device. More...
 
void Deinit ()
 Deinitialize the HMD device. More...
 
float[] GetViewport (EyeType eyeType)
 Get HMD screen viewport. More...
 
float[] GetProjectionMatrix (EyeType eyeType)
 Get calibrated HMD projection matrix. More...
 
void CreateWearableEye (Transform cameraTransform)
 Create sterescopic camera More...
 

Properties

string activeProfile [get, set]
 Get active calibration profile name More...
 

Detailed Description

API for wearable calibration.

Member Enumeration Documentation

◆ EyeType

Types of HMD eyes

Enumerator
EYE_LEFT 

Left HMD eye

EYE_RIGHT 

Right HMD eye

EYE_NUM 

Number of eyes

◆ WearableType

Wearable Device Type

Enumerator
None 

None Wearable Device

OpticalSeeThrough 

Optical See-throught Wearable Device

Constructor & Destructor Documentation

◆ WearableCalibration()

maxstAR.WearableCalibration.WearableCalibration ( )

Default constructor

Member Function Documentation

◆ CreateWearableEye()

void maxstAR.WearableCalibration.CreateWearableEye ( Transform  cameraTransform)

Create sterescopic camera

Parameters
cameraTransform

◆ Deinit()

void maxstAR.WearableCalibration.Deinit ( )

Deinitialize the HMD device.

◆ GetProjectionMatrix()

float [] maxstAR.WearableCalibration.GetProjectionMatrix ( EyeType  eyeType)

Get calibrated HMD projection matrix.

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

◆ GetViewport()

float [] maxstAR.WearableCalibration.GetViewport ( EyeType  eyeType)

Get HMD screen viewport.

Parameters
eyeTypeTypes of HMD eyes
Returns
Viewport array(float type array, size 4).

◆ Init()

bool maxstAR.WearableCalibration.Init ( string  modelName,
int  width,
int  height 
)

Initialize the HMD device.

Parameters
modelNameDevice name
widthDevice screen width
heightDevice screen height
Returns
Result of device initialize

◆ IsActivated()

bool maxstAR.WearableCalibration.IsActivated ( )

Confirm that the HMD unit is initialized.

Returns
Result of device initialize

Property Documentation

◆ activeProfile

string maxstAR.WearableCalibration.activeProfile
getset

Get active calibration profile name


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