C# 클래스 ARGUIController, project-tango-poc

GUI controller controls all the debug overlay to show the data for poses.
상속: MonoBehaviour, ITangoLifecycle, ITangoDepth
파일 보기 프로젝트 열기: stetro/project-tango-poc

공개 프로퍼티들

프로퍼티 타입 설명
m_canvas Canvas
m_pointCloud TangoPointCloud,
m_prefabMarker GameObject
m_prefabTouchEffect UnityEngine.RectTransform

공개 메소드들

메소드 설명
OnGUI ( ) : void

Display simple GUI.

OnTangoDepthAvailable ( TangoUnityDepth tangoDepth ) : void

This is called each time new depth data is available. On the Tango tablet, the depth callback occurs at 5 Hz.

OnTangoPermissions ( bool permissionsGranted ) : void

This is called when the permission granting process is finished.

OnTangoServiceConnected ( ) : void

This is called when succesfully connected to the Tango service.

OnTangoServiceDisconnected ( ) : void

This is called when disconnected from the Tango service.

Start ( ) : void

Unity Start() callback, we set up some initial values here.

Update ( ) : void

Updates UI and handles player input.

비공개 메소드들

메소드 설명
WorldBoundsToScreen ( Camera cam, Bounds bounds ) : Rect

Convert a 3D bounding box into a 2D Rect.

_GetLogginStringFromFrameDeltaTime ( float frameDeltaTime ) : string

Return a string to get logging of FrameDeltaTime.

_GetLoggingStringFromFrameCount ( int frameCount ) : string

Return a string to the get logging from frame count.

_GetLoggingStringFromPoseStatus ( TangoEnums status ) : string

Construct readable string from TangoPoseStatusType.

_GetLoggingStringFromQuaternion ( Quaternion quat ) : string

Reformat string from quaternion type for data logging.

_GetLoggingStringFromVec3 ( Vector3 vec ) : string

Reformat string from vector3 type for data logging.

_UpdateLocationMarker ( ) : void

Update location marker state.

_WaitForDepthAndFindPlane ( Vector2 touchPosition ) : IEnumerator

Wait for the next depth update, then find the plane at the touch position.

메소드 상세

OnGUI() 공개 메소드

Display simple GUI.
public OnGUI ( ) : void
리턴 void

OnTangoDepthAvailable() 공개 메소드

This is called each time new depth data is available. On the Tango tablet, the depth callback occurs at 5 Hz.
public OnTangoDepthAvailable ( TangoUnityDepth tangoDepth ) : void
tangoDepth Tango.TangoUnityDepth Tango depth.
리턴 void

OnTangoPermissions() 공개 메소드

This is called when the permission granting process is finished.
public OnTangoPermissions ( bool permissionsGranted ) : void
permissionsGranted bool true if permissions were granted, otherwise false.
리턴 void

OnTangoServiceConnected() 공개 메소드

This is called when succesfully connected to the Tango service.
public OnTangoServiceConnected ( ) : void
리턴 void

OnTangoServiceDisconnected() 공개 메소드

This is called when disconnected from the Tango service.
public OnTangoServiceDisconnected ( ) : void
리턴 void

Start() 공개 메소드

Unity Start() callback, we set up some initial values here.
public Start ( ) : void
리턴 void

Update() 공개 메소드

Updates UI and handles player input.
public Update ( ) : void
리턴 void

프로퍼티 상세

m_canvas 공개적으로 프로퍼티

The canvas to place 2D game objects under.
public Canvas m_canvas
리턴 Canvas

m_pointCloud 공개적으로 프로퍼티

The point cloud object in the scene.
public TangoPointCloud, m_pointCloud
리턴 TangoPointCloud,

m_prefabMarker 공개적으로 프로퍼티

The marker prefab to place on taps.
public GameObject m_prefabMarker
리턴 GameObject

m_prefabTouchEffect 공개적으로 프로퍼티

The touch effect to place on taps.
public RectTransform,UnityEngine m_prefabTouchEffect
리턴 UnityEngine.RectTransform