C# Класс ARGUIController, project-tango-poc

GUI controller controls all the debug overlay to show the data for poses.
Наследование: MonoBehaviour, ITangoLifecycle, ITangoDepth
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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