eVision .NET API
Loading...
Searching...
No Matches
eVision.EPolygon Class Reference

Represents a polygon. The number of vertices is arbitrary. A EPolygon could be closed (last and first point connected) or open (like a polyline shape). More...

Inheritance diagram for eVision.EPolygon:
Collaboration diagram for eVision.EPolygon:

Public Member Functions

 EPolygon ()
 Constructs a EPolygon.
 EPolygon (eVision.EPolygon other)
 Constructs a EPolygon.
 EPolygon (eVision.EPoint[] vertices, bool closed)
 Constructs a EPolygon.
 EPolygon (eVision.EPoint[] vertices)
 Constructs a EPolygon.
void CopyTo (eVision.EPolygon other)
 Copies the content of this object to the other one.
void AppendVertex (eVision.EPoint pt)
 Appends a polygon vertex after the last.
void InsertVertex (int index, eVision.EPoint pt)
 Inserts a vertex before the given index.
void RemoveVertex (int index)
 Removes vertex at the given index.
void SetVertex (int index, eVision.EPoint pt)
 Sets a polygon vertex.
eVision.EPoint GetVertex (int index)
 Gets a polygon vertex.
bool IsValid ()
 Returns true if the polygon is valid. A valid polygon has at least 2 (when open) or 3 (when closed) distinct and valid vertices and no duplicate points.
float GetEdgeLength (int index)
 Length of an edge.
float GetEdgeAngle (int index)
 Angle of the edge with respect to the X-axis.
eVision.ELine GetEdge (int index)
 Edge of the polygon as a ELine object.
eVision.EEditionMode AddVertexAtDisplayPosition (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (int x, int y, eVision.EFrame frame, float zoomX)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (int x, int y, eVision.EFrame frame)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (int x, int y, float zoomX, float zoomY, float panX, float panY)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (int x, int y, float zoomX, float zoomY, float panX)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (int x, int y, float zoomX, float zoomY)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (int x, int y, float zoomX)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (int x, int y)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
void RemoveVertexAtDisplayPosition (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.
void RemoveVertexAtDisplayPosition (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.
void RemoveVertexAtDisplayPosition (int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.
void RemoveVertexAtDisplayPosition (int x, int y, eVision.EFrame frame, float zoomX)
 Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.
void RemoveVertexAtDisplayPosition (int x, int y, eVision.EFrame frame)
 Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.
void RemoveVertexAtDisplayPosition (int x, int y, float zoomX, float zoomY, float panX, float panY)
 Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.
void RemoveVertexAtDisplayPosition (int x, int y, float zoomX, float zoomY, float panX)
 Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.
void RemoveVertexAtDisplayPosition (int x, int y, float zoomX, float zoomY)
 Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.
void RemoveVertexAtDisplayPosition (int x, int y, float zoomX)
 Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.
void RemoveVertexAtDisplayPosition (int x, int y)
 Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.
void RemoveVertexAtDisplayPosition ()
 Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.
Public Member Functions inherited from eVision.EShape
void Load (string path)
 Load the EShape configuration. The given ESerializer must have been created for reading.
void Load (eVision.ESerializer serializer)
 Load the EShape configuration. The given ESerializer must have been created for reading.
void Save (string path)
 Save the EShape configuration. The given ESerializer must have been created for writing.
void Save (eVision.ESerializer serializer)
 Save the EShape configuration. The given ESerializer must have been created for writing.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draws the EShape shape.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draws the EShape shape.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY, float panX)
 Draws the EShape shape.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY)
 Draws the EShape shape.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX)
 Draws the EShape shape.
void Draw (eVision.EDrawAdapter drawAdapter)
 Draws the EShape shape.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draws the EShape shape.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the EShape shape.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the EShape shape.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the EShape shape.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX)
 Draws the EShape shape.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame)
 Draws the EShape shape.
eVision.EEditionMode HitTest (int x, int y, float zoomX, float zoomY, float panX, float panY)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (int x, int y, float zoomX, float zoomY, float panX)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (int x, int y, float zoomX, float zoomY)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (int x, int y, float zoomX)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (int x, int y, eVision.EFrame frame, float zoomX)
 Detects if the cursor is placed over one of the dragging handles.
void Drag (int x, int y, float zoomX, float zoomY, float panX, float panY)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int x, int y, float zoomX, float zoomY, float panX)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int x, int y, float zoomX, float zoomY)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int x, int y, float zoomX)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int x, int y)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int x, int y, eVision.EFrame frame, float zoomX)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int x, int y, eVision.EFrame frame)
 Moves the specified handle to a new position and updates all placement parameters of the region.
eVision.EFrame ToFrame (bool useAngle, eVision.EFrameScaling frameScaling)
 Converts the shape to a frame.
eVision.EFrame ToFrame (bool useAngle, eVision.EFrameScaling frameScaling, eVision.EFrame shapeFrame)
 Converts the shape to a frame.

Properties

bool IsClosed [get, set]
 The polygon close attribute.
int NumVertices [get]
 Returns the number of polygon's vertices.
int NumEdges [get]
 Returns the number of polygon's edges (or sides). Depends on the EPolygon.IsClosed status.
eVision.EPoint[] Vertices [get]
 Returns the list of polygon vertices.
float Length [get]
 Returns the length (perimeter) of the polygon.
float Area [get]
 Returns the area of the polygon.
eVision.EPoint Center [get]
 The center of the polygon (average position of all the vertices).
override eVision.EEditionMode AvailableEditionModes [get]
 Available edition modes for the shape.
override string Description [get]
 Textual description of the shape and its parameters.
Properties inherited from eVision.EShape
eVision.EEditionMode EditionMode [get, set]
 Current edition mode for the shape. Default: EEditionMode_None.
eVision.EEditionMode AvailableEditionModes [get]
 Available edition modes for the shape.
string Description [get]
 Textual description of the shape and its parameters.

Detailed Description

Represents a polygon. The number of vertices is arbitrary. A EPolygon could be closed (last and first point connected) or open (like a polyline shape).

License(s): BasicTypes

Constructor & Destructor Documentation

◆ EPolygon() [1/4]

eVision.EPolygon.EPolygon ( )

Constructs a EPolygon.

◆ EPolygon() [2/4]

eVision.EPolygon.EPolygon ( eVision.EPolygon other)

Constructs a EPolygon.

Parameters
otherReference to the EPolygon used for the initialization.

◆ EPolygon() [3/4]

eVision.EPolygon.EPolygon ( eVision.EPoint[] vertices,
bool closed )

Constructs a EPolygon.

Parameters
verticesA vector of at least 3 points.
closedAn optional parameter to set the closed properties. When closed, an edge exists between the last and first points of the polygon. By default, created polygons are closed.

◆ EPolygon() [4/4]

eVision.EPolygon.EPolygon ( eVision.EPoint[] vertices)

Constructs a EPolygon.

Parameters
verticesA vector of at least 3 points.

Member Function Documentation

◆ AddVertexAtDisplayPosition() [1/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( int x,
int y )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.

◆ AddVertexAtDisplayPosition() [2/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( int x,
int y,
eVision.EFrame frame )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.

◆ AddVertexAtDisplayPosition() [3/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( int x,
int y,
eVision.EFrame frame,
float zoomX )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
zoomXHorizontal zoom factor. By default, true scale is used.

◆ AddVertexAtDisplayPosition() [4/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

◆ AddVertexAtDisplayPosition() [5/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

◆ AddVertexAtDisplayPosition() [6/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

◆ AddVertexAtDisplayPosition() [7/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( int x,
int y,
float zoomX )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.

◆ AddVertexAtDisplayPosition() [8/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( int x,
int y,
float zoomX,
float zoomY )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

◆ AddVertexAtDisplayPosition() [9/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( int x,
int y,
float zoomX,
float zoomY,
float panX )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

◆ AddVertexAtDisplayPosition() [10/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

◆ AppendVertex()

void eVision.EPolygon.AppendVertex ( eVision.EPoint pt)

Appends a polygon vertex after the last.

Parameters
ptThe point to append.

◆ CopyTo()

void eVision.EPolygon.CopyTo ( eVision.EPolygon other)

Copies the content of this object to the other one.

Parameters
otherOther EPolygon object in which to copy the content of this object.

◆ GetEdge()

eVision.ELine eVision.EPolygon.GetEdge ( int index)

Edge of the polygon as a ELine object.

Parameters
indexIndex of the edge between 0 and EPolygon.NumEdges - 1.

◆ GetEdgeAngle()

float eVision.EPolygon.GetEdgeAngle ( int index)

Angle of the edge with respect to the X-axis.

Parameters
indexIndex of the edge between 0 and EPolygon.NumEdges - 1.

◆ GetEdgeLength()

float eVision.EPolygon.GetEdgeLength ( int index)

Length of an edge.

Parameters
indexIndex of the edge between 0 and EPolygon.NumEdges - 1.

◆ GetVertex()

eVision.EPoint eVision.EPolygon.GetVertex ( int index)

Gets a polygon vertex.

Parameters
indexThe index of the vertex.

◆ InsertVertex()

void eVision.EPolygon.InsertVertex ( int index,
eVision.EPoint pt )

Inserts a vertex before the given index.

Parameters
indexThe index after which the vertex will be inserted.
ptThe point to insert.

◆ IsValid()

bool eVision.EPolygon.IsValid ( )

Returns true if the polygon is valid. A valid polygon has at least 2 (when open) or 3 (when closed) distinct and valid vertices and no duplicate points.

◆ RemoveVertex()

void eVision.EPolygon.RemoveVertex ( int index)

Removes vertex at the given index.

Parameters
indexThe index of the vertex to remove.

◆ RemoveVertexAtDisplayPosition() [1/11]

void eVision.EPolygon.RemoveVertexAtDisplayPosition ( )

Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.

◆ RemoveVertexAtDisplayPosition() [2/11]

void eVision.EPolygon.RemoveVertexAtDisplayPosition ( int x,
int y )

Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.

◆ RemoveVertexAtDisplayPosition() [3/11]

void eVision.EPolygon.RemoveVertexAtDisplayPosition ( int x,
int y,
eVision.EFrame frame )

Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.

◆ RemoveVertexAtDisplayPosition() [4/11]

void eVision.EPolygon.RemoveVertexAtDisplayPosition ( int x,
int y,
eVision.EFrame frame,
float zoomX )

Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
zoomXHorizontal zoom factor. By default, true scale is used.

◆ RemoveVertexAtDisplayPosition() [5/11]

void eVision.EPolygon.RemoveVertexAtDisplayPosition ( int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY )

Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

◆ RemoveVertexAtDisplayPosition() [6/11]

void eVision.EPolygon.RemoveVertexAtDisplayPosition ( int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

◆ RemoveVertexAtDisplayPosition() [7/11]

void eVision.EPolygon.RemoveVertexAtDisplayPosition ( int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

◆ RemoveVertexAtDisplayPosition() [8/11]

void eVision.EPolygon.RemoveVertexAtDisplayPosition ( int x,
int y,
float zoomX )

Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.

◆ RemoveVertexAtDisplayPosition() [9/11]

void eVision.EPolygon.RemoveVertexAtDisplayPosition ( int x,
int y,
float zoomX,
float zoomY )

Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

◆ RemoveVertexAtDisplayPosition() [10/11]

void eVision.EPolygon.RemoveVertexAtDisplayPosition ( int x,
int y,
float zoomX,
float zoomY,
float panX )

Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

◆ RemoveVertexAtDisplayPosition() [11/11]

void eVision.EPolygon.RemoveVertexAtDisplayPosition ( int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Removes the vertex at the given position or the vertex hit during the last call to EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

◆ SetVertex()

void eVision.EPolygon.SetVertex ( int index,
eVision.EPoint pt )

Sets a polygon vertex.

Parameters
indexThe index of the vertex.
ptThe vertex position.

Property Documentation

◆ Area

float eVision.EPolygon.Area
get

Returns the area of the polygon.

◆ AvailableEditionModes

override eVision.EEditionMode eVision.EPolygon.AvailableEditionModes
get

Available edition modes for the shape.

◆ Center

eVision.EPoint eVision.EPolygon.Center
get

The center of the polygon (average position of all the vertices).

◆ Description

override string eVision.EPolygon.Description
get

Textual description of the shape and its parameters.

◆ IsClosed

bool eVision.EPolygon.IsClosed
getset

The polygon close attribute.

◆ Length

float eVision.EPolygon.Length
get

Returns the length (perimeter) of the polygon.

◆ NumEdges

int eVision.EPolygon.NumEdges
get

Returns the number of polygon's edges (or sides). Depends on the EPolygon.IsClosed status.

◆ NumVertices

int eVision.EPolygon.NumVertices
get

Returns the number of polygon's vertices.

◆ Vertices

eVision.EPoint [] eVision.EPolygon.Vertices
get

Returns the list of polygon vertices.