IMVGauge
The IMVGauge interface contains methods and properties to configure the the MV Gauge filter.
Methods:
| AOIColor | Colour for drawing area of interest. |
| DrawAOIs | Draw Area Of Interest Lines. |
| DrawEdges | Draw detected edges. |
| EdgeColor | Colour for drawing detected edge. |
| EnableAOI | Enable area of interest. |
| GetAreaOfInterest | Get area of interest. |
| GetEdgePosition | Get resultant sub-pixel edge position. |
| GetNumOfAOIs | Get number of areas of interest. |
| IsAOIEnabled | Enable area of interest. |
| SetAreaOfInterest | Set area of interest. |
| UnitsPerPixel | Units per pixel (e.g. 0,035mm). |
Header file: IMVGauge.h
Interface definition language file: IMVGauge.idl
Typelib: MVGauge
Interface ID: IID_IMVGauge
Declaration: Property Get/Put AOIColor As LongColour for drawing area of interest.
C Prototype:HRESULT put_AOIColor(LONG newVal);
HRESULT get_AOIColor(LONG *pVal);
Declaration: Property Get/Put DrawAOIs As BooleanDraw Area Of Interest Lines.
C Prototype:HRESULT put_DrawAOIs(VARIANT_BOOL newVal);
HRESULT get_DrawAOIs(VARIANT_BOOL *pVal);
Declaration: Property Get/Put DrawEdges As BooleanDraw detected edges.
C Prototype:HRESULT put_DrawEdges(VARIANT_BOOL newVal);
HRESULT get_DrawEdges(VARIANT_BOOL *pVal);
Declaration: Property Get/Put EdgeColor As LongColour for drawing detected edge.
C Prototype:HRESULT put_EdgeColor(LONG newVal);
HRESULT get_EdgeColor(LONG *pVal);
Declaration: Sub EnableAOI(Index As Long, Enable As Boolean)Enable area of interest.
Parameter:
C Prototype:
Index Point index. Enable Enable point. HRESULT EnableAOI(LONG Index, VARIANT_BOOL Enable);
Method IMVGauge::GetAreaOfInterest
Declaration: Sub GetAreaOfInterest(Index As Long, Enabled As Boolean, StartX As Long, StartY As Long, EndX As Long, EndY As Long)Get area of interest.
Parameter:
C Prototype:
Index Point index. Enabled State of the point. StartX Start X-Position of the area of interest. StartY Start Y-Position of the area of interest. EndX End X-Position of the area of interest. EndY End Y-Position of the area of interest. HRESULT GetAreaOfInterest(LONG Index, VARIANT_BOOL* Enabled, LONG* StartX, LONG* StartY, LONG* EndX, LONG* EndY);
Method IMVGauge::GetEdgePosition
Declaration: Sub GetEdgePosition(Index As Long, Valid As Boolean, X As Double, Y As Double)Get resultant sub-pixel edge position.
Parameter:
C Prototype:
Index Point index. Valid Value is valid (edge was found) X X-Position of the edge. Y Y-Position of the edge. HRESULT GetEdgePosition(LONG Index, VARIANT_BOOL* Valid, DOUBLE* X, DOUBLE* Y);
Declaration: Function GetNumOfAOIs As LongGet number of areas of interest.
C Prototype:HRESULT GetNumOfAOIs(LONG* value);
Declaration: Function IsAOIEnabled(Index As Long) As BooleanEnable area of interest.
Parameter:
C Prototype:
Index Area of interes index. HRESULT IsAOIEnabled(LONG Index, VARIANT_BOOL* value);
Method IMVGauge::SetAreaOfInterest
Declaration: Sub SetAreaOfInterest(Index As Long, Enabled As Boolean, StartX As Long, StartY As Long, EndX As Long, EndY As Long)Set area of interest.
Parameter:
C Prototype:
Index Point index. Enabled State of the point. StartX Start X-Position of the area of interest. StartY Start Y-Position of the area of interest. EndX End X-Position of the area of interest. EndY End Y-Position of the area of interest. HRESULT SetAreaOfInterest(LONG Index, VARIANT_BOOL Enabled, LONG StartX, LONG StartY, LONG EndX, LONG EndY);
Property IMVGauge::UnitsPerPixel
Declaration: Property Get/Put UnitsPerPixel As DoubleUnits per pixel (e.g. 0,035mm).
C Prototype:HRESULT put_UnitsPerPixel(DOUBLE newVal);
HRESULT get_UnitsPerPixel(DOUBLE *pVal);