C# 클래스 ADMQualityManager

Manage the visuals for an Area Description recording's quality. The quality is done by keeping track of all the locations the Project Tango device has been in and remembering which orientations it has faced. A high quality recording is where for every location the device has been in, there has been a 360 degree coverage in locations. To keep things simple, the recording quality assumes a relative flat world.
상속: MonoBehaviour
파일 보기 프로젝트 열기: ekumenlabs/Garkanoid 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
m_badQualityTransformParent UnityEngine.RectTransform
m_cellVisualsPrefab GameObject
m_poseController Transform
m_qualityText Text

공개 메소드들

메소드 설명
GetBoundingBox ( Vector2 &minXZ, Vector2 &maxXZ ) : void

Get the bounding box for the quality visualization in (X, Z) coordinates.

LateUpdate ( ) : void

LateUpdate is called after all Update functions have been called.

OnEnable ( ) : void

This function is called when the object becomes enabled and active.

비공개 메소드들

메소드 설명
_CalculateQuality ( ) : float

Calculate the quality of the current Area Description, as a percentage.

_DiscretizeTransform ( Transform t, int &cellX, int &cellZ, int &angleIndex ) : bool

Discretize the transform into integral values. This returns true only if the transform is of good quality. A good quality transform is facing roughly forward, not looking too far down or too far up.

_InternCell ( int x, int z ) : QualityCell

Get the cell for a specific coordinate, allocating new cells if necessary. Think string.Intern.

_UpdateVisuals ( QualityCell cell ) : void

Update the visuals for a cell.

메소드 상세

GetBoundingBox() 공개 메소드

Get the bounding box for the quality visualization in (X, Z) coordinates.
public GetBoundingBox ( Vector2 &minXZ, Vector2 &maxXZ ) : void
minXZ Vector2 Returns the minimum (X, Z) coordinates of the visualization.
maxXZ Vector2 Returns the maximum (X, Z) coordinates of the visualization.
리턴 void

LateUpdate() 공개 메소드

LateUpdate is called after all Update functions have been called.
public LateUpdate ( ) : void
리턴 void

OnEnable() 공개 메소드

This function is called when the object becomes enabled and active.
public OnEnable ( ) : void
리턴 void

프로퍼티 상세

m_badQualityTransformParent 공개적으로 프로퍼티

Parent of UI that should be shown when the quality of transforms coming in is bad.
public RectTransform,UnityEngine m_badQualityTransformParent
리턴 UnityEngine.RectTransform

m_cellVisualsPrefab 공개적으로 프로퍼티

Visualization prefab. This will get instantiated for each instance of QualityCell.
public GameObject m_cellVisualsPrefab
리턴 GameObject

m_poseController 공개적으로 프로퍼티

The PoseController whose position corresponds to the Project Tango device's position.
public Transform m_poseController
리턴 Transform

m_qualityText 공개적으로 프로퍼티

Textual description of quality.
public Text m_qualityText
리턴 Text