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

List controller of the scrolling list. This list controller present a toggle group of Tango space Area Descriptions. The list class also has interface to start the game and connect to Tango Service.
상속: MonoBehaviour, ITangoLifecycle
파일 보기 프로젝트 열기: stetro/project-tango-poc

공개 프로퍼티들

프로퍼티 타입 설명
m_enableLearningToggle Toggle,
m_gameControlPanel GameObject
m_guiController AreaLearningInGameController,
m_listContentParent UnityEngine.RectTransform
m_listElement GameObject
m_poseController TangoARPoseController,
m_toggleGroup UnityEngine.UI.ToggleGroup

공개 메소드들

메소드 설명
OnTangoPermissions ( bool permissionsGranted ) : void

Internal callback when a permissions event happens.

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 function. This function is responsible for connecting callbacks, set up TangoApplication and initialize the data list.

StartGame ( bool isNewAreaDescription ) : void

Start the game. This will start the service connection, and start pose estimation from Tango Service.

Update ( ) : void

Unity Update function. Application will be closed when click the back button.

비공개 메소드들

메소드 설명
_OnToggleChanged ( AreaDescription item, bool value ) : void

Callback function when toggle button is selected.

_PopulateList ( ) : void

Refresh the scrolling list's content for both list. This function will query from the Tango API for the Tango space Area Description. Also, when it populates the scrolling list content, it will connect the delegate for each button in the list. The delegate is responsible for the actual import/export through the Tango API.

메소드 상세

OnTangoPermissions() 공개 메소드

Internal callback when a permissions event happens.
public OnTangoPermissions ( bool permissionsGranted ) : void
permissionsGranted bool If set to true permissions granted.
리턴 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 function. This function is responsible for connecting callbacks, set up TangoApplication and initialize the data list.
public Start ( ) : void
리턴 void

StartGame() 공개 메소드

Start the game. This will start the service connection, and start pose estimation from Tango Service.
public StartGame ( bool isNewAreaDescription ) : void
isNewAreaDescription bool If set to true game with start to learn a new Area /// Description.
리턴 void

Update() 공개 메소드

Unity Update function. Application will be closed when click the back button.
public Update ( ) : void
리턴 void

프로퍼티 상세

m_enableLearningToggle 공개적으로 프로퍼티

Enable learning mode toggle. Learning Mode allows the loaded Area Description to be extended with more knowledge about the area..
public Toggle, m_enableLearningToggle
리턴 Toggle,

m_gameControlPanel 공개적으로 프로퍼티

Control panel game object. The panel will be enabled when the game starts.
public GameObject m_gameControlPanel
리턴 GameObject

m_guiController 공개적으로 프로퍼티

The GUI controller. GUI controller will be enabled when the game starts.
public AreaLearningInGameController, m_guiController
리턴 AreaLearningInGameController,

m_listContentParent 공개적으로 프로퍼티

The container panel of the Tango space Area Description scrolling list.
public RectTransform,UnityEngine m_listContentParent
리턴 UnityEngine.RectTransform

m_listElement 공개적으로 프로퍼티

The prefab of a standard button in the scrolling list.
public GameObject m_listElement
리턴 GameObject

m_poseController 공개적으로 프로퍼티

The reference of the TangoDeltaPoseController object. TangoDeltaPoseController listens to pose updates and applies the correct pose to itself and its built-in camera.
public TangoARPoseController, m_poseController
리턴 TangoARPoseController,

m_toggleGroup 공개적으로 프로퍼티

Toggle group for the Area Description list. You can only toggle one Area Description at a time. After we get the list of Area Description from Tango, they are all added to this toggle group.
public ToggleGroup,UnityEngine.UI m_toggleGroup
리턴 UnityEngine.UI.ToggleGroup