DAVID4 SDK  1.8.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
MeasureJsonRpc.h
1 //=============================================================================
2 // See License in Related Pages
3 //=============================================================================
4 
5 #pragma once
6 
7 #ifndef DAVID_SDK_MEASURE_JSON_RPC_H
8 #define DAVID_SDK_MEASURE_JSON_RPC_H
9 
10 #include "davidSDK/ClientJsonRpc.h"
11 #include <vector>
12 
13 namespace david {
14 
15 
16 //=============================================================================
17 // MeasureJsonRpc
18 //=============================================================================
19 
20 /// Implements interface functions of IMeasure.
21 /// All calls are delegated to a JSON-RPC 2.0 client.
22 class MeasureJsonRpc : public IMeasure
23 {
24 public:
25  /// Constructor.
26  /// @param[in,out] client Valid pointer to client implementation.
28 
29  /// Destructor.
31 
32  // See IMeasure
33  void ComputeSurfaceDistances(std::vector<float>& distances, int meshID1, int meshID2, double distThresh);
34 
35 private:
36  //-------------------------------------------------------------------------
37  // Private member variables
38  //-------------------------------------------------------------------------
39 
40  ClientJsonRpc* m_client; ///< Client implementation
41 };
42 
43 
44 } // namespace
45 
46 #endif // DAVID_SDK_MEASURE_JSON_RPC_H