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

Implements interface functions of IMeasure. More...

#include <MeasureJsonRpc.h>

Inheritance diagram for david::MeasureJsonRpc:
david::IMeasure

Public Member Functions

 MeasureJsonRpc (ClientJsonRpc *client)
 Constructor. More...
 
 ~MeasureJsonRpc ()
 Destructor.
 
void ComputeSurfaceDistances (std::vector< float > &distances, int meshID1, int meshID2, double distThresh)
 Computes signed distance between 'test object' and 'reference object'. More...
 
- Public Member Functions inherited from david::IMeasure
virtual ~IMeasure ()
 Destructor.
 

Detailed Description

Implements interface functions of IMeasure.

All calls are delegated to a JSON-RPC 2.0 client.

Definition at line 22 of file MeasureJsonRpc.h.

Constructor & Destructor Documentation

david::MeasureJsonRpc::MeasureJsonRpc ( ClientJsonRpc client)

Constructor.

Parameters
[in,out]clientValid pointer to client implementation.

Member Function Documentation

void david::MeasureJsonRpc::ComputeSurfaceDistances ( std::vector< float > &  distances,
int  meshID1,
int  meshID2,
double  distThresh 
)
virtual

Computes signed distance between 'test object' and 'reference object'.

For each vertex of mesh 'test object' the signed distance to the mesh 'reference object' is computed.

Parameters
[out]distancesReceives the distance values. One signed distance value for each vertex of 'test object'.
[in]meshID1ID of the mesh that is the test object.
[in]meshID2ID of the other mesh that is the reference object.
[in]distThreshDistance threshold: Distance values are limited to the range [-distThresh, distThresh].
Exceptions
david::Error_InvalidMeshId(david::FunctionException) Specified meshID does not exist.

Implements david::IMeasure.


The documentation for this class was generated from the following file: