CogEllipticalAnnulusSection SetCenterRadiusXYRotationAngleStartAngleSpanRadialScale Method Cognex VisionPro 9.7
Sets CenterX, CenterY, RadiusX, RadiusY, Rotation, AngleStart, AngleSpan, and RadialScale of this elliptical annulus section. All angles are in radians.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax

public void SetCenterRadiusXYRotationAngleStartAngleSpanRadialScale(
	double centerX,
	double centerY,
	double radiusX,
	double radiusY,
	double rotation,
	double angleStart,
	double angleSpan,
	double radialScale
)

Parameters

centerX
Type: System Double

The x-coordinate of the center of the underlying ellipse.

centerY
Type: System Double

The y-coordinate of the center of the underlying ellipse.

radiusX
Type: System Double

The distance from the center of the underlying start ellipse to its boundary along the its x-axis

radiusY
Type: System Double

The distance from the center of the underlying start ellipse to its boundary along the its y-axis

rotation
Type: System Double

The rotation angle of the underlying ellipse.

angleStart
Type: System Double

The AngleStart.

angleSpan
Type: System Double

The AngleSpan. (The default value for this parameter is actually π/2.)

radialScale
Type: System Double

The RadialScale of the elliptical annular section.

Events

Event TypeReason
CogEllipticalAnnulusSection Changed

Fires when the shape changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    radiusX <= 0.0 or radiusY <= 0.0

    ArgumentException

    angleSpan = 0.0

    ArgumentException

    radialScale <= 0.0 or radialScale = 1.0

    Remarks

    Sets CenterX, CenterY, RadiusX, RadiusY, Rotation, AngleStart, AngleSpan, and RadialScale of this elliptical annulus section.

    See Also