This interface holds a shape gauging result and is used to access its properties. More...
Public Member Functions | |
int | CountSampleRegion () |
void | Draw (HDC hdc, LPVGaugeDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY) |
void | DrawScoreChart (HDC hdc, int index, LPVChartDrawFlags drawFlags, int xGridStep, int yGridStep) |
ILPoint * | ItemSamplePoint (int index) |
ILPoints * | ItemSamplePoints (int index) |
ILRotRectRegion * | ItemSampleRegion (int index) |
Public Member Functions inherited from ILObject | |
ILObject * | Copy () |
LPVErrorCode | Load (LString filename) |
void | Reset () |
LPVErrorCode | Save (LString filename) |
BOOL | Valid () |
Properties | |
ILObject | Result [get] |
The result shape object. For different gauge tools, the result type varies as: More... | |
ILPoints | SamplePoints [get] |
All the valid sample points found in sample regions. | |
double | Score [get] |
The score of the result, the average score of all sample points. | |
This interface holds a shape gauging result and is used to access its properties.
Usually you get the LShapeGaugeResult object from the shape gauge tools like LLineGauge for line shape inspection. You can then use this interface to access to the shape result and the details such as sample points, and draw the result on graphics windows.
int CountSampleRegion | ( | ) |
Get count of the sample region.
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, |
int | index, | ||
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] | index | Input index, it should be a 0-based number smaller than total count of sample regions. |
[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. |
ILPoint* ItemSamplePoint | ( | int | index | ) |
Fetch the first valid sample point out of the sample region with the given index.
[in] | index | Input index, it should be a 0-based number smaller than total count of sample regions. |
result | Return the first valid sample point. It may be null if there is no valid point found in that region. |
ILPoints* ItemSamplePoints | ( | int | index | ) |
Fetch the valid sample points out of the sample region with the given index.
[in] | index | Input index, it should be a 0-based number smaller than total count of sample regions. |
result | Return the valid sample points. It may be empty if there is no valid point found in that region. |
ILRotRectRegion* ItemSampleRegion | ( | int | index | ) |
Fetch the sample region with the given index.
[in] | index | Input index, it should be a 0-based number smaller than total count of sample regions. |
result | Return the result sample region, it's a rotated rectangle region LRotRectRegion. |
|
get |
The result shape object. For different gauge tools, the result type varies as:
LLineGauge | LLine |
LCircleGauge | LCircle |
LArcGauge | LArc |
LEllipseGauge | LEllipse |
LPolyGauge | LPolygon |