ManoMotion SDK PRO  1.4.8
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
 
ManoVisualization manoVisualization
 
- Data Fields inherited from InputManagerBaseClass
bool isFrontFacing
 

Protected Member Functions

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 cameras. More...
 
WebCamTexture backFacingCamera
 
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
 
static Action< AddOnOnAddonSet
 
static Action OnChangeCamera
 
- 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.

◆ 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

◆ currentManoMotionFrame

ManoMotionFrame InputManagerPhoneCamera.currentManoMotionFrame

◆ isPaused

bool InputManagerPhoneCamera.isPaused = false
private

◆ manoVisualization

ManoVisualization InputManagerPhoneCamera.manoVisualization

◆ STARTING_HEIGHT

const int InputManagerPhoneCamera.STARTING_HEIGHT = 480
staticprivate

◆ STARTING_WIDTH

const int InputManagerPhoneCamera.STARTING_WIDTH = 640
staticprivate

◆ webCamDevices

WebCamDevice [] InputManagerPhoneCamera.webCamDevices
private

The phone cameras.


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