DAVID4 SDK  1.8.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
david::jsonrpc Namespace Reference

Specifications for DAVID remote procedure calls in JSON RPC 2.0. More...

Enumerations

enum  JsonRpcFunctions {
  david_Connect = 1, david_Disconnect, david_RequestBinaryChannel, david_ShowMainWindow,
  david_HideMainWindow, david_ShowMenus, david_HideMenus, david_StopServer
}
 A list of supported JSON RPC 2.0 functions in namespace david. More...
 
enum  JsonRpcFunctions_sls {
  david_sls_SetScreenID = 300, david_sls_GetAvailableCameraNames, david_sls_SelectCamera, david_sls_CheckCamera,
  david_sls_SetCameraProperty, david_sls_GetCameraProperty, david_sls_GetCameraPropertyNames, david_sls_SelectImageSequence,
  david_sls_GetLiveImage, david_sls_SetCodedLightPhaseShiftMode, david_sls_GetCodedLightPhaseShiftParams, david_sls_SetResultFiltering,
  david_sls_GetResultFiltering, david_sls_ImportCalibration, david_sls_ExportCalibration, david_sls_Calibrate,
  david_sls_Scan, david_sls_GrabTexture, david_sls_AutoWhiteBalance, david_sls_AddScanToShapeFusion,
  david_sls_ExportMesh, david_sls_ExportBackgroundDepthmap, david_sls_ImportBackgroundDepthmap
}
 A list of supported JSON RPC 2.0 functions in namespace david::sls. More...
 
enum  JsonRpcFunctions_turntable { david_turntable_Setup = 400, david_turntable_Rotate }
 A list of supported JSON RPC 2.0 functions in namespace david::turntable. More...
 
enum  JsonRpcFunctions_shapefusion {
  david_shapefusion_ImportMesh = 500, david_shapefusion_ExportMesh, david_shapefusion_DuplicateMesh, david_shapefusion_DeleteAllMeshes,
  david_shapefusion_DeleteMesh, david_shapefusion_GetMeshBuffer, david_shapefusion_GetTextureImage, david_shapefusion_GetPose,
  david_shapefusion_SetPose, david_shapefusion_Rotate, david_shapefusion_Translate, david_shapefusion_ReduceMeshDensity,
  david_shapefusion_CombineMeshes, david_shapefusion_UncombineMeshes, david_shapefusion_AlignPairCoarse, david_shapefusion_AlignPairFine,
  david_shapefusion_AlignGlobalFine, david_shapefusion_Fuse
}
 A list of supported JSON RPC 2.0 functions in namespace david::shapefusion. More...
 
enum  JsonRpcFunctions_measure { david_measure_ComputeSurfaceDistances = 600 }
 A list of supported JSON RPC 2.0 functions in namespace david::measure. More...
 

Detailed Description

Specifications for DAVID remote procedure calls in JSON RPC 2.0.

Warning
Only for advanced users who want to implement the protocol for a different platform.

A list of supported JSON RPC 2.0 functions in DAVID is given in the documentation of the following enumerators:

Only "params" and "result" of the transmitted JSON RPC 2.0 content is documented in the enumerators. Complete example:

--> {"jsonrpc": "2.0", "method": "david::shapefusion::DeleteMesh", "params": {"meshID" : 5}, "id": 1}
<-- {"jsonrpc": "2.0", "result": null, "id": 1}

Or in case of an error:

--> {"jsonrpc": "2.0", "method": "david::shapefusion::DeleteMesh", "params": {"meshID" : 5}, "id": 1}
<-- {"jsonrpc": "2.0", "error": {"code" : -1, "message" : "Invalid mesh ID."}, "id": 1}
Note
In the individual Error Codes sections of the following documentation the possible error codes are defined. In case of an error this error is returned in "code" of "error" (see example above).
See Also
http://www.jsonrpc.org/specification