ICatchIPancamRender interface
package com.icatchtek.pancam.customer.gl;public interface ICatchIPancamGLTransform {...}
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
boolean reset()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
boolean locate(float distance)throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,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
boolean scale(float factor)throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,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
@Deprecatedboolean scale(float factor, float distance)throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,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
boolean rotate(ICatchGLPoint startPoint,ICatchGLPoint endPoint)throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,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
boolean rotate(int orientation,float speedX,float speedY,float speedZ,long timestamp)throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,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
boolean updateGyro(float speedX,float speedY,float speedZ,long timestamp)throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,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
boolean updateAccel(float speedX,float speedY,float speedZ,long timestamp)throws com.icatchtek.reliant.customer.exception.IchInvalidArgumentException,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.
