eVision Python API
Loading...
Searching...
No Matches
eVision.EDrawRegion Class Reference

Enum specifying how to draw the eVision.ERegion that may be associated with an eVision.EFoundPattern. More...

Inheritance diagram for eVision.EDrawRegion:
Collaboration diagram for eVision.EDrawRegion:

Static Public Attributes

int NoDraw = 0
 Neither the eVision.ERegion nor its contour are drawn.
int DrawContour = 1
 Only the contour of the eVision.ERegion is drawn.
int Draw = 2
 Both the ERegion and its contour are drawn.

Detailed Description

Enum specifying how to draw the eVision.ERegion that may be associated with an eVision.EFoundPattern.

Note that when the Learning was performed without ERegion, the Pattern does not have an ERegion and trying to draw it will throw an exception.

Member Data Documentation

◆ Draw

int eVision.EDrawRegion.Draw = 2
static

Both the ERegion and its contour are drawn.

In this mode, it is recommended set a brush with an opacity < 1 to the drawAdapter.

EBrush brush = drawAdapter->GetBrush();
brush.Opacity = 0.3f;
drawAdapter->SetBrush(brush);

◆ DrawContour

int eVision.EDrawRegion.DrawContour = 1
static

Only the contour of the eVision.ERegion is drawn.

◆ NoDraw

int eVision.EDrawRegion.NoDraw = 0
static

Neither the eVision.ERegion nor its contour are drawn.