ManoMotion SDK PRO  1.3
ManoMotion SDK PRO API documentation
InputManagerPhoneCamera Class Reference

Gets the images from the phone camera and send it to the ManoMotionManager. More...

Inheritance diagram for InputManagerPhoneCamera:
InputManagerBaseClass

Data Fields

ManoMotionFrame currentManoMotionFrame
 The current frame thats being send to the ManomotionManager. More...
 
ManoVisualization manoVisualization
 

Protected Member Functions

override void InitializeInputParameters ()
 Initializes the values, such as width and height of the frame, in order to prepare a proper frame for ManoMotion tech to process. More...
 
void GetCameraFrameInformation ()
 Gets the camera frame pixel colors. More...
 
void ResizeManoMotionFrameResolution (int newWidth, int newHeight)
 Sets the resolution of the currentManomotion frame that is passed to the subscribers that want to make use of the input camera feed. More...
 
- Protected Member Functions inherited from InputManagerBaseClass
virtual void ResizeCurrentFrameTexture (int width, int height)
 
virtual void ForceApplicationPermissions ()
 Forces the application to ask for camera permissions and external storage read and writte. More...
 
virtual void UpdateFrame< T > (T parameter)
 
virtual void UpdateFrame ()
 

Private Member Functions

void Awake ()
 
void Start ()
 
void InitializeManoMotionFrame ()
 Initializes the ManoMotion Frame and lets the subscribers of the event know of its information. More...
 
void Update ()
 
void OnEnable ()
 Start the camera when enabled. More...
 
void OnDisable ()
 Stops the camera when disabled. More...
 
void OnApplicationFocus (bool hasFocus)
 Stops processing when application is put to background. More...
 
void OnApplicationPause (bool pauseStatus)
 Stops the processing if application is paused. More...
 

Private Attributes

WebCamDevice[] webCamDevices
 The phone camera. More...
 
WebCamTexture backFacingCamera
 The texture from the backFacingCamera. More...
 
bool isPaused = false
 

Static Private Attributes

const int STARTING_WIDTH = 640
 
const int STARTING_HEIGHT = 480
 

Additional Inherited Members

- Static Public Attributes inherited from InputManagerBaseClass
static Action< ManoMotionFrameOnFrameUpdated
 
static Action< ManoMotionFrameOnFrameInitialized
 
static Action< ManoMotionFrameOnFrameResized
 
static Action< DeviceOrientation > OnOrientationChanged
 
- Protected Attributes inherited from InputManagerBaseClass
int rezMinValue
 
int rezMaxValue
 

Detailed Description

Gets the images from the phone camera and send it to the ManoMotionManager.

Member Function Documentation

◆ Awake()

void InputManagerPhoneCamera.Awake ( )
inlineprivate

◆ GetCameraFrameInformation()

void InputManagerPhoneCamera.GetCameraFrameInformation ( )
inlineprotected

Gets the camera frame pixel colors.

◆ InitializeInputParameters()

override void InputManagerPhoneCamera.InitializeInputParameters ( )
inlineprotectedvirtual

Initializes the values, such as width and height of the frame, in order to prepare a proper frame for ManoMotion tech to process.

Implements InputManagerBaseClass.

◆ InitializeManoMotionFrame()

void InputManagerPhoneCamera.InitializeManoMotionFrame ( )
inlineprivate

Initializes the ManoMotion Frame and lets the subscribers of the event know of its information.

◆ OnApplicationFocus()

void InputManagerPhoneCamera.OnApplicationFocus ( bool  hasFocus)
inlineprivate

Stops processing when application is put to background.

Parameters
hasFocusIf application is running or is in background

◆ OnApplicationPause()

void InputManagerPhoneCamera.OnApplicationPause ( bool  pauseStatus)
inlineprivate

Stops the processing if application is paused.

Parameters
pauseStatusIf application is paused or not

◆ OnDisable()

void InputManagerPhoneCamera.OnDisable ( )
inlineprivate

Stops the camera when disabled.

◆ OnEnable()

void InputManagerPhoneCamera.OnEnable ( )
inlineprivate

Start the camera when enabled.

◆ ResizeManoMotionFrameResolution()

void InputManagerPhoneCamera.ResizeManoMotionFrameResolution ( int  newWidth,
int  newHeight 
)
inlineprotected

Sets the resolution of the currentManomotion frame that is passed to the subscribers that want to make use of the input camera feed.

Parameters
newWidthRequires a width value.
newHeightRequires a height value.

◆ Start()

void InputManagerPhoneCamera.Start ( )
inlineprivate

◆ Update()

void InputManagerPhoneCamera.Update ( )
inlineprivate

Field Documentation

◆ backFacingCamera

WebCamTexture InputManagerPhoneCamera.backFacingCamera
private

The texture from the backFacingCamera.

◆ currentManoMotionFrame

ManoMotionFrame InputManagerPhoneCamera.currentManoMotionFrame

The current frame thats being send to the ManomotionManager.

◆ isPaused

bool InputManagerPhoneCamera.isPaused = false
private

◆ manoVisualization

ManoVisualization InputManagerPhoneCamera.manoVisualization

◆ STARTING_HEIGHT

const int InputManagerPhoneCamera.STARTING_HEIGHT = 480
staticprivate

The image resolution, default value is recommended.

◆ STARTING_WIDTH

const int InputManagerPhoneCamera.STARTING_WIDTH = 640
staticprivate

The image resolution, default value is recommended.

◆ webCamDevices

WebCamDevice [] InputManagerPhoneCamera.webCamDevices
private

The phone camera.


The documentation for this class was generated from the following file: