EndPointType Property
EndPointType Property
Applies To
Vision Objects: Edge, Line
Description
Specifies the type of end point to use for the line object. In most cases the end point type will be a point
(which usually means the PixelX and PixelY position of the EndPointObject). However, when the
EndPointObject for the current line is a 2nd Line object, the EndPointType property is used to define an
intersection point on the 2nd line such as the lines midpoint, endpoint, startpoint or perpendicular position.
Usage
VGet Sequence.Object.EndPointType, var
VSet Sequence.Object.EndPointType, value
Sequence Name of a sequence or string variable containing a sequence name.
Object Name of an object or string variable containing an object name. The object must exist in the
specified sequence.
var Integer variable that will contain the value of the property.
value Integer expression for the new value of the property.
Values
EndPointObject = Line
EndPointObject = Screen, Blob, Correlation, Geometric, Edge,
or Point object
See remarks.
Default: 2 - MidPoint
0 - Point
When used with objects other than the Line object, the EndPointType
can only be of type Point.
Default: 0 - Point
Remarks
As you can see in the Values Table above, most of the EndPointObject's support only 1 EndPointType
called Point. This is because most EndPointObject's use the PixelX and PixelY position for a reference
position for defining a Start or End Point for a line. So when the EndPointObject is defined as Screen,
Blob, Correlation, Edge, or Point, the EndPointType will always be set to 0 - Point.
)
NOTE The range of valid values for EndPointType depend upon the EndPointObject.
However, when the EndPointObject is another Line object, the user must decide where on the 2nd line to
intersect with the 1st line. The choices are as follows:
1 - EndPoint Use the end point of the other line as the endpoint for this line.
2 - MidPoint Cut the other line in half and use the center (or midpoint of the other line as the
endpoint for this line.
3 - Perpendicular Calculate the position on the 2nd line where the 2 lines intersect in a perpendicular
fashion and use this position as the end point.
4 - StartPoint Use the starting point of the other line as the end point for this line.
5 - PerpToStartPnt Calculate the position on the 2nd line where the 2 lines intersect in a perpendicular
fashion through the start point of the first line and use this position as the end point.
48 Vision Guide 5.0 Reference (Ver.5.3) Rev.1