ECodedImage2::DrawObjectFeature

Namespace: Euresys::Open_eVision

[C++]

void DrawObjectFeature(
   EDrawAdapter* graphicContext,
   EDrawableFeature feature,
   OEV_UINT32 objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
) const

void DrawObjectFeature(
   EDrawAdapter* graphicContext,
   EDrawableFeature feature,
   OEV_UINT32 layerIndex,
   OEV_UINT32 objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
) const

[[deprecated("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]]
void DrawObjectFeature(
   HDC graphicContext,
   EDrawableFeature feature,
   OEV_UINT32 objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
) const

[[deprecated("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]]
void DrawObjectFeature(
   HDC graphicContext,
   const ERGBColor& color,
   EDrawableFeature feature,
   OEV_UINT32 objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
) const

[[deprecated("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]]
void DrawObjectFeature(
   HDC graphicContext,
   EDrawableFeature feature,
   OEV_UINT32 layerIndex,
   OEV_UINT32 objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
) const

[[deprecated("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]]
void DrawObjectFeature(
   HDC graphicContext,
   const ERGBColor& color,
   EDrawableFeature feature,
   OEV_UINT32 layerIndex,
   OEV_UINT32 objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
) const

Parameters

graphicContext

Graphic context on which to draw.

feature

The feature of interest.

objectIndex

Index of the object to draw.

zoomX

Horizontal zooming factor. By default, no scaling is used.

zoomY

Vertical zooming factor. If set to 0, the default value, 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

The index of the layer A binary image constructed by a segmentation process. of interest. If this parameter is left unspecified, the default layer will be taken 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.

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.

Trying to draw the features EDrawableFeature.FeretBox and EDrawableFeature.WeightedGravityCenter will result in an exception, as they only make sense for EObjectSelection.

ECodedImage2.DrawObjectFeature

Draw a given feature of the designated object.

Namespace: Euresys.Open_eVision

[C#]

void DrawObjectFeature(
   EDrawAdapter graphicContext,
   EDrawableFeature feature,
   uint objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

void DrawObjectFeature(
   EDrawAdapter graphicContext,
   EDrawableFeature feature,
   uint layerIndex,
   uint objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawObjectFeature(
   IntPtr graphicContext,
   EDrawableFeature feature,
   uint objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawObjectFeature(
   IntPtr graphicContext,
   ERGBColor color,
   EDrawableFeature feature,
   uint objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawObjectFeature(
   IntPtr graphicContext,
   EDrawableFeature feature,
   uint layerIndex,
   uint objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawObjectFeature(
   IntPtr graphicContext,
   ERGBColor color,
   EDrawableFeature feature,
   uint layerIndex,
   uint objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawObjectFeature(
   System.Drawing.Graphics graphicContext,
   EDrawableFeature feature,
   uint objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawObjectFeature(
   System.Drawing.Graphics graphicContext,
   ERGBColor color,
   EDrawableFeature feature,
   uint objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawObjectFeature(
   System.Drawing.Graphics graphicContext,
   EDrawableFeature feature,
   uint layerIndex,
   uint objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawObjectFeature(
   System.Drawing.Graphics graphicContext,
   ERGBColor color,
   EDrawableFeature feature,
   uint layerIndex,
   uint objectIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY,
   bool drawDiagonals
)

Parameters

graphicContext

Graphic context on which to draw.

feature

The feature of interest.

objectIndex

Index of the object to draw.

zoomX

Horizontal zooming factor. By default, no scaling is used.

zoomY

Vertical zooming factor. If set to 0, the default value, 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

The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken 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.

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.

Trying to draw the features EDrawableFeature.FeretBox and EDrawableFeature.WeightedGravityCenter will result in an exception, as they only make sense for EObjectSelection.

ECodedImage2.DrawObjectFeature

Draw a given feature of the designated object.

Module: open_evision

[Python]

DrawObjectFeature(
    graphicContext: EDrawAdapter
    feature: EDrawableFeature
    objectIndex: int
    zoomX: float
    zoomY: float
    panX: float
    panY: float
    drawDiagonals: bool
) -> None

DrawObjectFeature(
    graphicContext: EDrawAdapter
    feature: EDrawableFeature
    objectIndex: int
    zoomX: float
    zoomY: float
    panX: float
    panY: float
) -> None

DrawObjectFeature(
    graphicContext: EDrawAdapter
    feature: EDrawableFeature
    objectIndex: int
    zoomX: float
    zoomY: float
    panX: float
) -> None

DrawObjectFeature(
    graphicContext: EDrawAdapter
    feature: EDrawableFeature
    objectIndex: int
    zoomX: float
    zoomY: float
) -> None

DrawObjectFeature(
    graphicContext: EDrawAdapter
    feature: EDrawableFeature
    objectIndex: int
    zoomX: float
) -> None

DrawObjectFeature(
    graphicContext: EDrawAdapter
    feature: EDrawableFeature
    objectIndex: int
) -> None

DrawObjectFeature(
    graphicContext: EDrawAdapter
    feature: EDrawableFeature
    layerIndex: int
    objectIndex: int
    zoomX: float
    zoomY: float
    panX: float
    panY: float
    drawDiagonals: bool
) -> None

DrawObjectFeature(
    graphicContext: EDrawAdapter
    feature: EDrawableFeature
    layerIndex: int
    objectIndex: int
    zoomX: float
    zoomY: float
    panX: float
    panY: float
) -> None

Parameters

graphicContext

Graphic context on which to draw.

feature

The feature of interest.

objectIndex

Index of the object to draw.

zoomX

Horizontal zooming factor. By default, no scaling is used.

zoomY

Vertical zooming factor. If set to 0, the default value, 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

The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration.

Remarks

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

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.

Trying to draw the features EDrawableFeature.FeretBox and EDrawableFeature.WeightedGravityCenter will result in an exception, as they only make sense for EObjectSelection.