C# Class ADMGUIController

Class for all the UI interaction in the AreaDescriptionManagement sample.
Inheritance: MonoBehaviour, ITangoLifecycle, ITangoEvent
显示文件 Open project: ekumenlabs/Garkanoid

Public Properties

Property Type Description
m_deltaPoseController TangoDeltaPoseController,
m_detailsDate Text
m_detailsEditableName InputField,
m_detailsEditablePosX InputField,
m_detailsEditablePosY InputField,
m_detailsEditablePosZ InputField,
m_detailsEditableRotQW InputField,
m_detailsEditableRotQX InputField,
m_detailsEditableRotQY InputField,
m_detailsEditableRotQZ InputField,
m_detailsParent UnityEngine.RectTransform
m_listElement AreaDescriptionListElement,
m_listEmptyText UnityEngine.RectTransform
m_listParent UnityEngine.RectTransform
m_managementRoot GameObject
m_qualityRoot GameObject
m_savingText Text
m_savingTextParent UnityEngine.RectTransform

Public Methods

Method Description
DeleteSelectedAreaDescription ( ) : void

Delete the selected Area Description.

ExportSelectedAreaDescription ( ) : void

Export an Area Description.

ExtendSelectedAreaDescription ( ) : void

Start quality mode, extending an existing Area Description.

ImportAreaDescription ( ) : void

Import an Area Description.

NewAreaDescription ( ) : void

Start quality mode, creating a brand new Area Description.

OnTangoEventAvailableEventHandler ( Tango tangoEvent ) : void

This is called each time a Tango event happens.

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.

RefreshAreaDescriptionList ( ) : void

Refresh the UI list of Area Descriptions.

SaveCurrentAreaDescription ( ) : void

When in quality mode, save the current Area Description and switch back to management mode.

SaveSelectedAreaDescriptionMetadata ( ) : void

Save changes made to the selected Area Description's metaata.

Start ( ) : void

Use this for initialization.

Update ( ) : void

Update is called once per frame.

Private Methods

Method Description
_DoExportAreaDescription ( AreaDescription areaDescription ) : IEnumerator

Actually do the Area description export. This runs over multiple frames, so a Unity coroutine is used.

_DoImportAreaDescription ( ) : IEnumerator

Actually do the Area Description import. This runs over multiple frames, so a Unity coroutine is used.

_DoSaveCurrentAreaDescription ( ) : IEnumerator

Actually do the Area Description save.

_OnAreaDescriptionToggleChanged ( AreaDescription areaDescription, bool value ) : void

Called every time an Area Description toggle changes state.

_SelectAreaDescription ( AreaDescription areaDescription ) : void

Select a specific Area Description to show details.

Method Details

DeleteSelectedAreaDescription() public method

Delete the selected Area Description.
public DeleteSelectedAreaDescription ( ) : void
return void

ExportSelectedAreaDescription() public method

Export an Area Description.
public ExportSelectedAreaDescription ( ) : void
return void

ExtendSelectedAreaDescription() public method

Start quality mode, extending an existing Area Description.
public ExtendSelectedAreaDescription ( ) : void
return void

ImportAreaDescription() public method

Import an Area Description.
public ImportAreaDescription ( ) : void
return void

NewAreaDescription() public method

Start quality mode, creating a brand new Area Description.
public NewAreaDescription ( ) : void
return void

OnTangoEventAvailableEventHandler() public method

This is called each time a Tango event happens.
public OnTangoEventAvailableEventHandler ( Tango tangoEvent ) : void
tangoEvent Tango Tango event.
return void

OnTangoPermissions() public method

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

OnTangoServiceConnected() public method

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

OnTangoServiceDisconnected() public method

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

RefreshAreaDescriptionList() public method

Refresh the UI list of Area Descriptions.
public RefreshAreaDescriptionList ( ) : void
return void

SaveCurrentAreaDescription() public method

When in quality mode, save the current Area Description and switch back to management mode.
public SaveCurrentAreaDescription ( ) : void
return void

SaveSelectedAreaDescriptionMetadata() public method

Save changes made to the selected Area Description's metaata.
public SaveSelectedAreaDescriptionMetadata ( ) : void
return void

Start() public method

Use this for initialization.
public Start ( ) : void
return void

Update() public method

Update is called once per frame.
public Update ( ) : void
return void

Property Details

m_deltaPoseController public_oe property

The reference of the TangoDeltaPoseController object. TangoDeltaPoseController listens to pose updates and applies the correct pose to itself and its built-in camera.
public TangoDeltaPoseController, m_deltaPoseController
return TangoDeltaPoseController,

m_detailsDate public_oe property

Read-only UI for the selected Area Description's date.
public Text m_detailsDate
return Text

m_detailsEditableName public_oe property

Editable UI for the selected Area Description's human readable name.
public InputField, m_detailsEditableName
return InputField,

m_detailsEditablePosX public_oe property

Editable UI for the selected Area Description's X position.
public InputField, m_detailsEditablePosX
return InputField,

m_detailsEditablePosY public_oe property

Editable UI for the selected Area Description's Y position.
public InputField, m_detailsEditablePosY
return InputField,

m_detailsEditablePosZ public_oe property

Editable UI for the selected Area Description's Z position.
public InputField, m_detailsEditablePosZ
return InputField,

m_detailsEditableRotQW public_oe property

Editable UI for the selected Area Description's qW rotation.
public InputField, m_detailsEditableRotQW
return InputField,

m_detailsEditableRotQX public_oe property

Editable UI for the selected Area Description's qX rotation.
public InputField, m_detailsEditableRotQX
return InputField,

m_detailsEditableRotQY public_oe property

Editable UI for the selected Area Description's qY rotation.
public InputField, m_detailsEditableRotQY
return InputField,

m_detailsEditableRotQZ public_oe property

Editable UI for the selected Area Description's qZ rotation.
public InputField, m_detailsEditableRotQZ
return InputField,

m_detailsParent public_oe property

UI parent of the selected Area Description's details.
public RectTransform,UnityEngine m_detailsParent
return UnityEngine.RectTransform

m_listElement public_oe property

UI prefab for each element in the list of Area Descriptions on the device.
public AreaDescriptionListElement, m_listElement
return AreaDescriptionListElement,

m_listEmptyText public_oe property

UI to enable when m_ListParent has no children.
public RectTransform,UnityEngine m_listEmptyText
return UnityEngine.RectTransform

m_listParent public_oe property

UI parent of the list of Area Descriptions on the device.
public RectTransform,UnityEngine m_listParent
return UnityEngine.RectTransform

m_managementRoot public_oe property

Parent of the Area Description management screen.
public GameObject m_managementRoot
return GameObject

m_qualityRoot public_oe property

Parent of the Area Description quality screen.
public GameObject m_qualityRoot
return GameObject

m_savingText public_oe property

Saving progress UI text.
public Text m_savingText
return Text

m_savingTextParent public_oe property

Saving progress UI parent.
public RectTransform,UnityEngine m_savingTextParent
return UnityEngine.RectTransform