This interface holds an edge gauging result and is used to access its properties. More...
Public Member Functions | |
void | Draw (HDC hdc, LPVGaugeDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY) |
void | DrawScoreChart (HDC hdc, LPVChartDrawFlags drawFlags, int xGridStep, int yGridStep) |
double | GetDistanceMetric (LPVAggregation aggType) |
ILLine * | GetEdge (int index) |
void | GetEdgePair (int index, ILLine **edgeLine1, ILLine **edgeLine2) |
Public Member Functions inherited from ILObjects | |
int | Count () |
BOOL | Empty () |
ILObject * | ItemObject (int objIndex) |
Public Member Functions inherited from ILObject | |
ILObject * | Copy () |
LPVErrorCode | Load (LString filename) |
void | Reset () |
LPVErrorCode | Save (LString filename) |
BOOL | Valid () |
Properties | |
double | Distance (int index) [get] |
The distance between the double-side edges. Return 0 for single-side edge result. More... | |
ILLine | Edge1 (int index) [get] |
The first edges in the result. More... | |
ILLine | Edge2 (int index) [get] |
The second edges in the result. Return null for single-side edge result. More... | |
ILPoints | SamplePoints [get] |
All the valid sample points found in sample regions. | |
double | Score1 (int index) [get] |
The score of the first edges in the result. More... | |
double | Score2 (int index) [get] |
The score of the second edges in the result. Return 0 for single-side edge result. More... | |
This interface holds an edge gauging result and is used to access its properties.
Usually you get the LEdgeGaugeResult object from the edge inspection tool LEdgeGauge. You can then use this interface to access to the edge lines and the details such as sample points, and draw the result on graphics windows.
void Draw | ( | HDC | hdc, |
LPVGaugeDrawFlags | drawFlags, | ||
double | zoomX, | ||
double | zoomY, | ||
double | panX, | ||
double | panY | ||
) |
Draw the result onto provide device context.
[in] | drawFlags | Control the drawing behavior, see LPVGaugeDrawFlags |
void DrawScoreChart | ( | HDC | hdc, |
LPVChartDrawFlags | drawFlags, | ||
int | xGridStep, | ||
int | yGridStep | ||
) |
Draw a score chart onto provide device context. It represents the score(y axis) distributions along the sample region's direction(x axis). It's useful for determining a proper acceptable score.
[in] | hdc | Handle to the device context of the destination window or bitmap. |
[in] | drawFlags | Flags to control which part of a data chart should be drawn, see LPVChartDrawFlags for usage. |
[in] | xGridStep | Specify the step of label on x axis, 0 means we'll determine it on the fly according to the score data. |
[in] | yGridStep | Specify the step of label on y axis, 0 means we'll determine it on the fly according to the score data. This function is currently not available on Linux / MacOS platform. |
double GetDistanceMetric | ( | LPVAggregation | aggType | ) |
The aggregation metric of all the edge pairs' distances, such as mean, sum, minimum, etc. Return 0 for single-side edge result.
[in] | aggType | The aggregation type |
val | Return the metric value |
ILLine* GetEdge | ( | int | index | ) |
Fetch the result edge line with the given index, for single-side edge inspection.
[in] | index | The input index, it should be a 0-based number smaller than total count of result edges. |
edgeLine | Return the result edge line. Usually, the line's middle point is the same as the corresponding sample point. |
Fetch the result edge line pair with the given index, for double-side edge inspection.
[in] | index | The input index, it should be a 0-based number smaller than total count of result edge pairs. |
[out] | edgeLine1 | Output the first edge line of the pair. Usually, the line's middle point is the same as the corresponding sample point. |
[out] | edgeLine2 | Output the second edge line of the pair. Usually, the line's middle point is the same as the corresponding sample point. |
|
get |
The distance between the double-side edges. Return 0 for single-side edge result.
[in] | index | The input index, it should be a 0-based number smaller than total count of result edge pairs. |
|
get |
The first edges in the result.
[in] | index | The input index, it should be a 0-based number smaller than total count of result edges or edge pairs. |
|
get |
The second edges in the result. Return null for single-side edge result.
[in] | index | The input index, it should be a 0-based number smaller than total count of result edge pairs. |
|
get |
The score of the first edges in the result.
[in] | index | The input index, it should be a 0-based number smaller than total count of result edges or edge pairs. |
|
get |
The score of the second edges in the result. Return 0 for single-side edge result.
[in] | index | The input index, it should be a 0-based number smaller than total count of result edge pairs. |