C# Class Tango.PoseListener

Abstract base class that can be used to automatically register for onPoseAvailable callbacks from the Tango Service.
Show file Open project: vmohan7/Navi Class Usage Examples

Public Properties

Property Type Description
m_poseAvailableCallback Tango.PoseProvider.TangoService_onPoseAvailable

Public Methods

Method Description
PoseListener ( ) : System

Initializes a new instance of the Tango.PoseListener class.

RegisterTangoPoseAvailable ( OnTangoPoseAvailableEventHandler handler ) : void

Registers for Tango pose available.

SendPoseIfAvailable ( bool usingUXLibrary ) : void

Sends the pose if available.

SetCallback ( TangoCoordinateFramePair framePairs ) : void

Registers the callback.

UnregisterTangoPoseAvailable ( OnTangoPoseAvailableEventHandler handler ) : void

Unregisters the tango pose available.

Private Methods

Method Description
_OnPoseAvailable ( IntPtr callbackContext, TangoPoseData pose ) : void

Handle the callback sent by the Tango Service when a new pose is sampled.

Method Details

PoseListener() public method

Initializes a new instance of the Tango.PoseListener class.
public PoseListener ( ) : System
return System

RegisterTangoPoseAvailable() public method

Registers for Tango pose available.
public RegisterTangoPoseAvailable ( OnTangoPoseAvailableEventHandler handler ) : void
handler OnTangoPoseAvailableEventHandler Handler.
return void

SendPoseIfAvailable() public method

Sends the pose if available.
public SendPoseIfAvailable ( bool usingUXLibrary ) : void
usingUXLibrary bool
return void

SetCallback() public method

Registers the callback.
public SetCallback ( TangoCoordinateFramePair framePairs ) : void
framePairs TangoCoordinateFramePair Frame pairs.
return void

UnregisterTangoPoseAvailable() public method

Unregisters the tango pose available.
public UnregisterTangoPoseAvailable ( OnTangoPoseAvailableEventHandler handler ) : void
handler OnTangoPoseAvailableEventHandler Handler.
return void

Property Details

m_poseAvailableCallback public property

public Tango.PoseProvider.TangoService_onPoseAvailable m_poseAvailableCallback
return Tango.PoseProvider.TangoService_onPoseAvailable