|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPQSDKMultiTouch.PQMTClient
public abstract class PQMTClient
This class contains all method you need to interact with Multi-Touch server
subclass PQMTClient
to use it.
Constructor Summary | |
---|---|
PQMTClient()
|
Method Summary | |
---|---|
int |
ConnectServer()
Connect the Multi-Touch server with default ip and port |
int |
ConnectServer(java.lang.String ip,
int port)
Connect the Multi-Touch server |
int |
DisconnectServer()
|
static java.lang.String |
GetGestureName(TouchGesture tg)
gets the touch gesture name of the touch gesture. |
int |
GetServerResolution()
gets the display resolution of multi-touch server. |
static java.util.UUID |
GetTrialAppID()
UUID is an sole id of your application. |
int |
OnGetResolution(int max_x,
int max_y)
This method is called when GetServerResolution returns. |
int |
OnReceiveError(int err_code)
This method is called when an error is received from server. |
int |
OnServerBreak()
This method is called on server break. |
int |
OnTouchFrame(int frame_id,
int time_stamp,
java.util.Vector<TouchPoint> point_list)
This method is called whenever a touch point is received from server. |
int |
OnTouchGesture(TouchGesture touch_gesture)
This method is called whenever a gesture is received from server. |
int |
SendRequest(TouchClientRequest client_request)
Sends your request to the server after connect the multi-touch server successfully. |
int |
SendThreshold(int move_threshold)
By default the server will send out the moving touch points to client with a tolerance so that some “still” touch points, which is closed to its last move position, will be filtered. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PQMTClient()
Method Detail |
---|
public int ConnectServer() throws java.lang.Exception
java.lang.Exception
PQMTClientConstant
public int ConnectServer(java.lang.String ip, int port) throws java.net.UnknownHostException, java.io.IOException
ip
- ip address of server in Stringport
- port number in int
java.net.UnknownHostException
java.io.IOException
PQMTClientConstant
public int SendRequest(TouchClientRequest client_request) throws java.io.IOException
java.io.IOException
TouchClientRequest
public int DisconnectServer() throws java.io.IOException
java.io.IOException
public int SendThreshold(int move_threshold) throws java.io.IOException
move_threshold
- the move threshold that will filter some points not move
in pixel(the pixel in the coordinate of server), 0 for highest sensitivity in server;
java.io.IOException
public int GetServerResolution() throws java.io.IOException
java.io.IOException
public static java.lang.String GetGestureName(TouchGesture tg)
tg
- the TouchGesture object
TouchGesture
public static java.util.UUID GetTrialAppID()
public int OnTouchGesture(TouchGesture touch_gesture)
TouchClientRequest.type
should contain
PQMTClientConstant.RQST_GESTURE_INSIDE
or PQMTClientConstant.RQST_GESTURE_ALL
SendRequest(TouchClientRequest)
public int OnTouchFrame(int frame_id, int time_stamp, java.util.Vector<TouchPoint> point_list)
TouchClientRequest.type
should contain
PQMTClientConstant.RQST_ROWDATA_INSIDE
,
PQMTClientConstant.RQST_ROWDATA_INSIDE_ONLY
or PQMTClientConstant.RQST_RAWDATA_ALL
OnTouchGesture(TouchGesture)
,
SendRequest(TouchClientRequest)
public int OnGetResolution(int max_x, int max_y)
GetServerResolution()
public int OnServerBreak()
public int OnReceiveError(int err_code)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |