ICatchIPancamRender interface

  1. package com.icatchtek.pancam.customer.gl;
  2. public interface ICatchIPancamGLTransform {
  3. ...
  4. }

This interface is used to control he 3D model used to render the image, such as rotation, zoom, setting the camera’s position, etc.

Public methods

reset

  1. boolean reset()
  2. throws com.icatchtek.reliant.customer.exception.IchDeprecatedException

Reset the rotate angle to the initial values. This method does not reset the distance or scale factor.
Returns:
Return true if no error occurred, otherwise return false.
Throws:**

  • com.icatchtek.reliant.customer.exception.IchDeprecatedException - The instance is deprecated, You should get new one.

locate

  1. boolean locate(float distance)
  2. throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,
  3. com.icatchtek.reliant.customer.exception.IchDeprecatedException

Set the distance between the camera and the point (0, 0, 0)
Parameters:

  • distance - The distance.(>= 0.0 && <= 5.0)

Returns:
Return true if no error occurred, otherwise return false.
Throws:

  • com.icatchtek.reliant.customer.exception.IchInvalidArgumentException - Indicates invalid argument.
  • com.icatchtek.reliant.customer.exception.IchDeprecatedException - The instance is deprecated, You should get new one.

scale

  1. boolean scale(float factor)
  2. throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,
  3. com.icatchtek.reliant.customer.exception.IchDeprecatedException

Scale the panoramic image shown on the surface.
Parameters:

  • factor - The scale factor of the near face’s with & height.(>= 0.20 && <= 3.50)

Returns:
Return true if no error occurred, otherwise return false.
Throws:

  • com.icatchtek.reliant.customer.exception.IchInvalidArgumentException - Indicates invalid argument.
  • com.icatchtek.reliant.customer.exception.IchDeprecatedException - The instance is deprecated, You should get new one.

scale

  1. @Deprecated
  2. boolean scale(float factor, float distance)
  3. throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,
  4. com.icatchtek.reliant.customer.exception.IchDeprecatedException

Scale the panoramic image shown on the surface.
Parameters:

  • factor - The scale factor of the near face’s with & height.(>= 0.20 && <= 3.50)
  • distance - The distance between the camera and the frustum. (>= 0.10 && <= 0.90)

Returns:
Return true if no error occurred, otherwise return false.
Throws:

  • com.icatchtek.reliant.customer.exception.IchInvalidArgumentException - Indicates invalid argument.
  • com.icatchtek.reliant.customer.exception.IchDeprecatedException - The instance is deprecated, You should get new one.

rotate

  1. boolean rotate(ICatchGLPoint startPoint,
  2. ICatchGLPoint endPoint)
  3. throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,
  4. com.icatchtek.reliant.customer.exception.IchDeprecatedException

Rotate the panoramic image shown on the surface from the start point to the end point.
Parameters:

  • startPoint - The start point of this movement.
  • endPoint - The end point of this movement.

Returns:
Return true if no error occurred, otherwise return false.
Throws:

  • com.icatchtek.reliant.customer.exception.IchInvalidArgumentException - Indicates invalid argument.
  • com.icatchtek.reliant.customer.exception.IchDeprecatedException - The instance is deprecated, You should get new one.

rotate

  1. boolean rotate(int orientation,
  2. float speedX,
  3. float speedY,
  4. float speedZ,
  5. long timestamp)
  6. throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,
  7. com.icatchtek.reliant.customer.exception.IchDeprecatedException

Rotate the panoramic image shown on the surface. this method is often used with the gyro.
Parameters:

  • orientation - The rotation of the screen, currently we support 0, 90, 180, 270 degrees. The APP should use one of the macro which defined ICatchGLRotation.
  • speedX - The x angle speed of the gyro event
  • speedY - The y angle speed of the gyro event.
  • speedZ - The z angle speed of the gyro event.
  • timestamp - The timestamp The time in nanosecond at which the gyro event happened.

Returns:
Return true if no error occurred, otherwise return false.
Throws:

  • com.icatchtek.reliant.customer.exception.IchInvalidArgumentException - Indicates invalid argument.
  • com.icatchtek.reliant.customer.exception.IchDeprecatedException - The instance is deprecated, You should get new one

updateGyro

  1. boolean updateGyro(float speedX,
  2. float speedY,
  3. float speedZ,
  4. long timestamp)
  5. throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,
  6. com.icatchtek.reliant.customer.exception.IchDeprecatedException

Update Gyro information
Parameters:

  • speedX - the x speed
  • speedY - the y speed
  • speedZ - the z speed
  • timestamp - timestamp of steaming

Returns:
Return true if no error occurred, otherwise return false.
Throws:

  • com.icatchtek.reliant.customer.exception.IchInvalidArgumentException - the argument is invalid
  • com.icatchtek.reliant.customer.exception.IchDeprecatedException - The deprecated instance, please get new one.

updateAccel

  1. boolean updateAccel(float speedX,
  2. float speedY,
  3. float speedZ,
  4. long timestamp)
  5. throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,
  6. com.icatchtek.reliant.customer.exception.IchDeprecatedException

Update Accel information
Parameters:

  • speedX - the x speed
  • speedY - the y speed
  • speedZ - the z speed
  • timestamp - timestamp of steaming

Returns:
Return true if no error occurred, otherwise return false.
Throws:

  • com.icatchtek.reliant.customer.exception.IchInvalidArgumentException - the argument is invalid
  • com.icatchtek.reliant.customer.exception.IchDeprecatedException - The deprecated instance, please get new one.