FeatureData Property

NI Vision for Visual Basic

FeatureData Property

Syntax

CWIMAQGeometricFeatureReportItem.FeatureData

Data Type

Variant

Purpose

An array of Doubles that describes the feature.

Remarks

The elements of this array should be interpreted according to the feature type in the following manner:

Circle:

Element 0—X coordinate of the center of circle.

Element 1—Y coordinate of the center of circle.

Element 2—Radius of circle.

Ellipse:

Element 0—X coordinate of the center of ellipse.

Element 1—Y coordinate of the center of ellipse.

Element 2—Orientation in degrees of the major axis.

Element 3—The length of the semi-major axis.

Element 4—The length of the semi-minor axis.


Constant Curve:

Element 0—X coordinate of the center of the constant curve.

Element 1—Y coordinate of the center of the constant curve.

Element 2—The starting angle in degrees of the constant curve.

Element 3—The ending angle in degrees of the constant curve.

Element 4—The radius of the circle subtended by the constant curve.


Rectangle/Leg:

Element 0—X coordinate of the location of the center of the rectangle/leg.

Element 1—Y coordinate of the location of the center of the rectangle/leg.

Elements 2 and 3—The first corner point (x, y) of the rectangle/leg.

Elements 4 and 5—The second corner point (x, y) of the rectangle/leg.

Elements 6 and 7—The third corner point (x, y) of the rectangle/leg.

Elements 8 and 9—The fourth corner point (x, y) of the rectangle/leg.

Element 10—The orientation of the rectangle/leg in degrees with respect to the horizontal axis.

Element 11—The width of the rectangle/leg.

Element 12—The height of the rectangle/leg.


Corner:

Element 0—X coordinate of the corner position.

Element 1—Y coordinate of the corner position.

Element 2—The orientation of the corner.

Element 3—The enclosed angle of the corner.

Element 4—Specifies whether or not the corner is a virtual corner. A value of 0 means that the corner is not a virtual corner. A value of 1 means that the corner is a virtual corner.


Parallel Line Pair:

Elements 0 and 1—The start point (x, y) of the first line.

Elements 2 and 3—The end point (x, y) of the first line.

Elements 4 and 5—The start point (x, y) of the second line.

Elements 6 and 7—The end point (x, y) of the second line.

Element 8—The orientation in degrees of the parallel line pair with respect to the horizontal axis.

Element 9—The distance of the two lines from one another.


Parallel Line Pairs:

Elements 09—The first parallel line pair.

Elements 1019—The second parallel line pair.

Element 20—The orientation in degrees of the pair of parallel line pairs with respect to the horizontal axis.

Element 21—The distance the two parallel line pairs are from one another as measured by the midline of the first to the midline of the second.


Line:

Elements 0 and 1—The start point (x,y) of the line.

Elements 2 and 3—The end point (x,y) of the line.

Element 4—The length of the line.

Element 5—The orientation in degrees of the line with respect to the horizontal axis.


Curve:

Elements 0 and 1—The center point (x,y) of the closed curve.

Element 2—The arc length of the closed curve element.

Elements 3 and 4—The first of N contour points (x,y) of the closed curve.

Elements 5 and 6—The second of N contour points (x,y) of the closed curve.

Elements k and k+1—The (k-1)/2 contour point (x,y) of the closed curve.
  .
  .
  .

Elements 2*N+1 and 2*N+2—The last of N contour points (x,y) of the closed curve.