CircularAnnulusSection ClassCognex VisionPro 9.22

A circular annulus section is a four-sided shape bounded by two circular arcs and two radial lines. The arcs are scaled copies of each other, and the radial lines connect the endpoints of the arcs. You specify the ( CenterX, CenterY ), Radius, AngleStart and AngleSpan which define the start arc and then provide a RadialScale that defines the end arc. If the RadialScale is less than 1, the start arc is the outer arc.

Inheritance Hierarchy

System Object
  Cognex.Vision ShareableBase
    Cognex.Vision ChangedEventShareableBase
      Cognex.Vision GraphicInteractiveBase
        Cognex.Vision CircularAnnulusSection

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.0
Syntax

public sealed class CircularAnnulusSection : GraphicInteractiveBase, 
	IRegion, IShape, IChangedEvent, IObject, IDiamondGraphicShape

The CircularAnnulusSection type exposes the following members.

Constructors

  NameDescription
Public methodCircularAnnulusSection

Constructs a new instance of this class.

Top
Methods

  NameDescription
Public methodCopy

Creates a new circular annulus section, copying the specified parameters.

Public methodCopyBase

Copy a graphic and its derived parameters.

(Overrides GraphicInteractiveBase CopyBase(CopyShapeConstants).)
Public methodCreateCircularArc

Creates a new circular arc (copying the specified parameters) defined by this circular annulus section at the given radial fraction between the start and end arcs. For example, specify 0 for the start arc, 0.5 for the center arc, and 1 for the end arc.

Public methodDistanceToPoint

Shortest distance from a boundary of this shape to the given point. Points within closed shapes return a distance less than zero.

Public methodEnclosingRectangle

Minimum enclosing rectangle of this shape.

Public methodEquals
Compares the equality of this object with another.
(Overrides GraphicInteractiveBase Equals(Object).)
Public methodFitToBoundingBox

Adjust the shape's geometric properties so that the shape fits inside passed in rectangle.

Public methodFitToImage

Adjust the shape's geometric properties such that its default size is based on the image and its SelectedSpaceName. XScale and YScale are multipliers where 1.0 designates 100% scaling.

Public methodGetCenterRadiusAngleStartAngleSpanRadialScale

Gets CenterX, CenterY, Radius, AngleStart (in radians), AngleSpan (in radians) and RadialScale of the circular annulus section.

Public methodGetCornerWidthHeightRotationCurve

Gets corner, width, height, rotation and curvature of the circular annulus section.

Public methodGetHashCode
Returns the hash code of this object.
(Overrides GraphicInteractiveBase GetHashCode .)
Public methodGetParentFromChildTransform

Gets the parent transform from the child transform.

(Overrides GraphicInteractiveBase GetParentFromChildTransform .)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeMeta

Get the TypeMeta that describes the type of this object.

(Overrides ShareableBase GetTypeMeta .)
Public methodMap

Maps this shape through the given transform.

Public methodMapLinear

Creates a new elliptical annulus section (copying the specified parameters) by mapping this circular annulus section through the given linear transform.

Public methodResumeAndRaiseChangedEvent

Re-enables raising of the ChangedEvent after SuspendChangedEvent has been called, and raises the ChangedEvent if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent.

(Overrides ChangedEventShareableBase ResumeAndRaiseChangedEvent .)
Public methodSetCenterRadiusAngleStartAngleSpanRadialScale

Sets CenterX, CenterY, Radius, AngleStart (in radians), AngleSpan (in radians) and RadialScale of the circular annulus section.

Public methodSetCornerWidthHeightRotationCurve

Sets corner, width, height, rotation and curvature of the circular annulus section.

Public methodSuspendChangedEvent

Temporarily suspends the raising of the ChangedEvent. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.

(Overrides ChangedEventShareableBase SuspendChangedEvent .)
Public methodToString

Returns a human readable string that represents the object.

(Overrides Object ToString .)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Compares the equality of two CircularAnnulusSection objects.
Public operatorStatic memberInequality
Compares the inequality of two CircularAnnulusSection objects.
Top
Fields

  NameDescription
Public fieldStatic memberSfAngleSpan
Public fieldStatic memberSfAngleStart
Public fieldStatic memberSfArcDirectionAdornment
Public fieldStatic memberSfArea
Public fieldStatic memberSfCenterArcAdornment
Public fieldStatic memberSfCenterX
Public fieldStatic memberSfCenterY
Public fieldStatic memberSfManipArcFraction
Public fieldStatic memberSfPerimeter
Public fieldStatic memberSfRadialDirectionAdornment
Public fieldStatic memberSfRadialScale
Public fieldStatic memberSfRadius
Top
Properties

  NameDescription
Public propertyAngleSpan
Get

Gets the angle span (in radians) of this annulus section. Note that this can be positive or negative, and implies arc direction.

Public propertyAngleStart
Get

Gets the starting angle (in radians) of this annulus section.

Public propertyArcDirectionAdornment
Get

Gets the arc direction adornment of this annulus section.

Public propertyArea

Returns the area enclosed by this circular annulus section.

Public propertyCenterArcAdornment
Get

Gets the center arc adornment of this annulus section.

Public propertyCenterX
Get

Gets the X coordinate of the center of the circle defined by this circular annulus section.

Public propertyCenterY
Get

Gets the Y coordinate of the center of the circle defined by this circular annulus section.

Public propertyChangedEventSuspended

Indicates if raising the ChangedEvent has been suspended.

(Overrides ChangedEventShareableBase ChangedEventSuspended.)
Public propertyChildren

Children of this graphic.

(Overrides GraphicInteractiveBase Children.)
Public propertyColor

Color of this graphic. Can be any OLE_COLOR.

(Overrides GraphicInteractiveBase Color.)
Public propertyDragColor

Color of this graphic when dragged.

(Overrides GraphicInteractiveBase DragColor.)
Public propertyDragLineStyle

Line style of the graphic when dragged.

(Overrides GraphicInteractiveBase DragLineStyle.)
Public propertyDragLineWidthInScreenPixels

Line width of this graphic when dragged.

(Overrides GraphicInteractiveBase DragLineWidthInScreenPixels.)
Public propertyFillColor

The fill color of this graphic.

(Overrides GraphicInteractiveBase FillColor.)
Public propertyGraphicDOFEnable
Get

Interactive Degree of freedom for this graphic object. Provides the ability to govern interactive manipulation of an object; for example could be used to prevent an object from being resized.

Public propertyGraphicDOFEnableBase

Interactive Degree of freedom for a graphic object. Allows access to each graphic's GraphicDOFEnable property without knowing the specific graphic type.

(Overrides GraphicInteractiveBase GraphicDOFEnableBase.)
Public propertyHandle (Overrides GraphicInteractiveBase Handle.)
Public propertyInteractive

Interactive property allow this graphic object to be selected. See GraphicDOFEnable for information on governing interactive manipulation of an object.

(Overrides GraphicInteractiveBase Interactive.)
Public propertyLineStyle

Line style of this graphic.

(Overrides GraphicInteractiveBase LineStyle.)
Public propertyLineWidthInScreenPixels

Line width (in screen pixels) of this graphic.

(Overrides GraphicInteractiveBase LineWidthInScreenPixels.)
Public propertyManipArcFraction
Get

Returns the fractional distance (between the start and end arcs) where the manipulation arc is drawn. During interactive manipulation, the shape usually resets this fraction to 0.5 but users may reset it sooner if they desire.

Public propertyMouseCursor

Mouse cursor to be displayed when the mouse is over the graphic. The cursor will be visible only if the graphic is interactive.

(Overrides GraphicInteractiveBase MouseCursor.)
Public propertyParent

Return a reference to the containing tracking collection. May be null.

(Overrides GraphicInteractiveBase Parent.)
Public propertyPerimeter

Returns the perimeter length of this circular annulus section.

Public propertyRadialDirectionAdornment
Get

Gets the radial direction adornment of this annulus section.

Public propertyRadialScale
Get

Gets the radial scale of this annular section. Note that this can be less than or greater than 1 (but not equal to 1, and not <=0) and therefore implies a radial direction.

Public propertyRadius
Get

Gets the Radius of the start arc of this annulus section. Note this could be either the inner arc or the outer arc depending on whether RadialScale is greater than or less than 1.0.

Public propertySelected

True when the shape is selected in a display.

(Overrides GraphicInteractiveBase Selected.)
Public propertySelectedColor

Color of this graphic when selected.

(Overrides GraphicInteractiveBase SelectedColor.)
Public propertySelectedLineStyle

Line style of this graphic when selected.

(Overrides GraphicInteractiveBase SelectedLineStyle.)
Public propertySelectedLineWidthInScreenPixels

Line width of this graphic when selected.

(Overrides GraphicInteractiveBase SelectedLineWidthInScreenPixels.)
Public propertySelectedSpaceName
Get

Coordinate space in which this shape is to be interpreted.

(Overrides GraphicInteractiveBase SelectedSpaceName.)
Public propertyTipText

Text to describe this graphic in a tool tip. Newline characters can be used to create multi-line tip text.

(Overrides GraphicInteractiveBase TipText.)
Public propertyVisible

Visible property of this graphic.

(Overrides GraphicInteractiveBase Visible.)
Top
Events

  NameDescription
Public eventChanged

The actual event.

(Overrides ChangedEventShareableBase Changed.)
Public eventDragging

Raised when an interactive graphic is being dragged.

(Overrides GraphicInteractiveBase Dragging.)
Public eventDraggingStopped

Raised after the drag operation of an interactive graphic is complete.

(Overrides GraphicInteractiveBase DraggingStopped.)
Top
See Also