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


Property IMVGauge::AOIColor

Declaration: Property Get/Put AOIColor As Long

Colour for drawing area of interest.

C Prototype:

HRESULT put_AOIColor(LONG newVal);
HRESULT get_AOIColor(LONG *pVal);


Property IMVGauge::DrawAOIs

Declaration: Property Get/Put DrawAOIs As Boolean

Draw Area Of Interest Lines.

C Prototype:

HRESULT put_DrawAOIs(VARIANT_BOOL newVal);
HRESULT get_DrawAOIs(VARIANT_BOOL *pVal);


Property IMVGauge::DrawEdges

Declaration: Property Get/Put DrawEdges As Boolean

Draw detected edges.

C Prototype:

HRESULT put_DrawEdges(VARIANT_BOOL newVal);
HRESULT get_DrawEdges(VARIANT_BOOL *pVal);


Property IMVGauge::EdgeColor

Declaration: Property Get/Put EdgeColor As Long

Colour for drawing detected edge.

C Prototype:

HRESULT put_EdgeColor(LONG newVal);
HRESULT get_EdgeColor(LONG *pVal);


Method IMVGauge::EnableAOI

Declaration: Sub EnableAOI(Index As Long, Enable As Boolean)

Enable area of interest.

Parameter:

Index Point index.
Enable Enable point.
C Prototype:

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:

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.
C Prototype:

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:

Index Point index.
Valid Value is valid (edge was found)
X X-Position of the edge.
Y Y-Position of the edge.
C Prototype:

HRESULT GetEdgePosition(LONG Index, VARIANT_BOOL* Valid, DOUBLE* X, DOUBLE* Y);


Method IMVGauge::GetNumOfAOIs

Declaration: Function GetNumOfAOIs As Long

Get number of areas of interest.

C Prototype:

HRESULT GetNumOfAOIs(LONG* value);


Method IMVGauge::IsAOIEnabled

Declaration: Function IsAOIEnabled(Index As Long) As Boolean

Enable area of interest.

Parameter:

Index Area of interes index.
C Prototype:

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:

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.
C Prototype:

HRESULT SetAreaOfInterest(LONG Index, VARIANT_BOOL Enabled, LONG StartX, LONG StartY, LONG EndX, LONG EndY);


Property IMVGauge::UnitsPerPixel

Declaration: Property Get/Put UnitsPerPixel As Double

Units per pixel (e.g. 0,035mm).

C Prototype:

HRESULT put_UnitsPerPixel(DOUBLE newVal);
HRESULT get_UnitsPerPixel(DOUBLE *pVal);