ECodedImage2::DrawFeature

Draw a given feature of the designated coded element, of all the objects from a layer, or of all the coded elements from a given selection.

Namespace: Euresys::Open_eVision

[C++]

void DrawFeature(
   EDrawAdapter* graphicContext,
   Euresys::Open_eVision::EDrawableFeature feature,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   EDrawAdapter* graphicContext,
   Euresys::Open_eVision::EDrawableFeature feature,
   OEV_UINT32 layerIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   EDrawAdapter* graphicContext,
   Euresys::Open_eVision::EDrawableFeature feature,
   const ECodedElement& element,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   EDrawAdapter* graphicContext,
   Euresys::Open_eVision::EDrawableFeature feature,
   const EObjectSelection& selection,
   OEV_UINT32 elementIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   EDrawAdapter* graphicContext,
   Euresys::Open_eVision::EDrawableFeature feature,
   const EObjectSelection& selection,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   HDC graphicContext,
   Euresys::Open_eVision::EDrawableFeature feature,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   HDC graphicContext,
   const ERGBColor& color,
   Euresys::Open_eVision::EDrawableFeature feature,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   HDC graphicContext,
   Euresys::Open_eVision::EDrawableFeature feature,
   OEV_UINT32 layerIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   HDC graphicContext,
   const ERGBColor& color,
   Euresys::Open_eVision::EDrawableFeature feature,
   OEV_UINT32 layerIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   HDC graphicContext,
   Euresys::Open_eVision::EDrawableFeature feature,
   const ECodedElement& element,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   HDC graphicContext,
   const ERGBColor& color,
   Euresys::Open_eVision::EDrawableFeature feature,
   const ECodedElement& element,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   HDC graphicContext,
   Euresys::Open_eVision::EDrawableFeature feature,
   const EObjectSelection& selection,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   HDC graphicContext,
   const ERGBColor& color,
   Euresys::Open_eVision::EDrawableFeature feature,
   const EObjectSelection& selection,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   HDC graphicContext,
   Euresys::Open_eVision::EDrawableFeature feature,
   const EObjectSelection& selection,
   OEV_UINT32 elementIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   HDC graphicContext,
   const ERGBColor& color,
   Euresys::Open_eVision::EDrawableFeature feature,
   const EObjectSelection& selection,
   OEV_UINT32 elementIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

Parameters

graphicContext

Graphic context on which to draw.

feature

The feature of interest.

zoomX

Horizontal zooming factor. By default, true scale is used.

zoomY

Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

panX

Horizontal panning value expressed in pixels. By default, no panning occurs.

panY

Vertical panning value expressed in pixels. By default, no panning occurs.

drawDiagonals

Specifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn.

layerIndex

Index of the layer of interest. If no layer index is specified, the default layer is taken into consideration. Note that this methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.

element

The coded element to draw.

selection

The selection of coded elements to draw.

elementIndex

The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration.

color

The color in which to draw the overlay.

Remarks

Drawing is done in the device context associated to the desired window. The current pen is used.

The features EDrawableFeature_FeretBox and EDrawableFeature_WeightedGravityCenter are only at one's disposal when drawing selections.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a EDrawAdapter by using a instance of EWindowsDrawAdapter.

ECodedImage2.DrawFeature

Draw a given feature of the designated coded element, of all the objects from a layer, or of all the coded elements from a given selection.

Namespace: Euresys.Open_eVision

[C#]

void DrawFeature(
   Euresys.Open_eVision.EDrawAdapter graphicContext,
   Euresys.Open_eVision.EDrawableFeature feature,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   Euresys.Open_eVision.EDrawAdapter graphicContext,
   Euresys.Open_eVision.EDrawableFeature feature,
   uint layerIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   Euresys.Open_eVision.EDrawAdapter graphicContext,
   Euresys.Open_eVision.EDrawableFeature feature,
   Euresys.Open_eVision.ECodedElement element,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   Euresys.Open_eVision.EDrawAdapter graphicContext,
   Euresys.Open_eVision.EDrawableFeature feature,
   Euresys.Open_eVision.EObjectSelection selection,
   uint elementIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   Euresys.Open_eVision.EDrawAdapter graphicContext,
   Euresys.Open_eVision.EDrawableFeature feature,
   Euresys.Open_eVision.EObjectSelection selection,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   IntPtr graphicContext,
   Euresys.Open_eVision.EDrawableFeature feature,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   IntPtr graphicContext,
   Euresys.Open_eVision.ERGBColor color,
   Euresys.Open_eVision.EDrawableFeature feature,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   IntPtr graphicContext,
   Euresys.Open_eVision.EDrawableFeature feature,
   uint layerIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   IntPtr graphicContext,
   Euresys.Open_eVision.ERGBColor color,
   Euresys.Open_eVision.EDrawableFeature feature,
   uint layerIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   IntPtr graphicContext,
   Euresys.Open_eVision.EDrawableFeature feature,
   Euresys.Open_eVision.ECodedElement element,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   IntPtr graphicContext,
   Euresys.Open_eVision.ERGBColor color,
   Euresys.Open_eVision.EDrawableFeature feature,
   Euresys.Open_eVision.ECodedElement element,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   IntPtr graphicContext,
   Euresys.Open_eVision.EDrawableFeature feature,
   Euresys.Open_eVision.EObjectSelection selection,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   IntPtr graphicContext,
   Euresys.Open_eVision.ERGBColor color,
   Euresys.Open_eVision.EDrawableFeature feature,
   Euresys.Open_eVision.EObjectSelection selection,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   IntPtr graphicContext,
   Euresys.Open_eVision.EDrawableFeature feature,
   Euresys.Open_eVision.EObjectSelection selection,
   uint elementIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawFeature(
   IntPtr graphicContext,
   Euresys.Open_eVision.ERGBColor color,
   Euresys.Open_eVision.EDrawableFeature feature,
   Euresys.Open_eVision.EObjectSelection selection,
   uint elementIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

Parameters

graphicContext

Graphic context on which to draw.

feature

The feature of interest.

zoomX

Horizontal zooming factor. By default, true scale is used.

zoomY

Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

panX

Horizontal panning value expressed in pixels. By default, no panning occurs.

panY

Vertical panning value expressed in pixels. By default, no panning occurs.

drawDiagonals

Specifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn.

layerIndex

Index of the layer of interest. If no layer index is specified, the default layer is taken into consideration. Note that this methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.

element

The coded element to draw.

selection

The selection of coded elements to draw.

elementIndex

The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take into consideration.

color

The color in which to draw the overlay.

Remarks

Drawing is done in the device context associated to the desired window. The current pen is used.

The features FeretBox and WeightedGravityCenter are only at one's disposal when drawing selections.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a EDrawAdapter by using a instance of EWindowsDrawAdapter.