Class that represents an affine rectangle.
Cognex.Vision ShareableBase
Cognex.Vision ChangedEventShareableBase
Cognex.Vision GraphicInteractiveBase
Cognex.Vision RectangleAffine
Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.0
The RectangleAffine type exposes the following members.
| Name | Description | |
|---|---|---|
| RectangleAffine | Constructs a new instance of this class. |
| Name | Description | |
|---|---|---|
| Copy | Create a new shape that copies specified parameters. | |
| CopyBase | Copy a graphic and its derived parameters. | |
| DistanceToPoint | Shortest distance from a boundary of this shape to the given point. Points within closed shapes return a distance less than zero. | |
| EnclosingRectangle | Minimum enclosing rectangle of this shape. | |
| Equals | Compares the equality of this object with another. (Overrides GraphicInteractiveBase Equals(Object).) | |
| FitToBoundingBox | Adjust the shape's geometric properties so that the shape fits inside passed in rectangle. | |
| FitToImage | 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. | |
| GetCenterLengthsRotationSkew | Query this affine rectangle for its center, length, rotation and skew parameterization. All angles are in radians. | |
| GetHashCode | Returns the hash code of this object. (Overrides GraphicInteractiveBase GetHashCode .) | |
| GetOriginCornerXCornerY | Query the parameterization of this affine rectangle with respect to the three corner points: Origin, CornerX, and CornerY. | |
| GetOriginLengthsRotationSkew | Query this affine rectangle for its origin, length, rotation and skew parameterization. All angles are in radians. | |
| GetParentFromChildTransform | Gets the parent transform from the child transform. | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetTypeMeta | Get the TypeMeta that describes the type of this object. | |
| Map | Maps this shape through the given transform. | |
| MapLinear | Create a new affine rectangle by mapping this one through the given transform. | |
| ResumeAndRaiseChangedEvent | 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. | |
| SetCenterLengthsRotationSkew | Initialize this affine rectangle from its center point, SideXLength, SideYLength, Rotation (in radians) and Skew. | |
| SetFromRectangle | Set parameters of this affine rectangle from the given rectangle and transformation. | |
| SetOriginCornerXCornerY | Initialize this affine rectangle from the three corner points: Origin, CornerX, and CornerY. | |
| SetOriginLengthsRotationSkew | Initialize this affine rectangle from its origin point, SideXLength, SideYLength, Rotation and Skew. All angles are in radians. | |
| SuspendChangedEvent | 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. | |
| ToString | Returns a human readable string that represents the object. |
| Name | Description | |
|---|---|---|
| Equality | Compares the equality of two RectangleAffine objects. | |
| Inequality | Compares the inequality of two RectangleAffine objects. |
| Name | Description | |
|---|---|---|
| Area | Area of this RectangleAffine. | |
| CenterX | Get Center point (X coordinate) of this affine rectangle. | |
| CenterY | Get Center point (Y coordinate) of this affine rectangle. | |
| ChangedEventSuspended | Indicates if raising the ChangedEvent has been suspended. | |
| Children | Children of this graphic. | |
| Color | Color of this graphic. Can be any OLE_COLOR. | |
| CornerOppositeX | Corner point Opposite (X coordinate) of this affine rectangle. | |
| CornerOppositeY | Corner point Opposite (Y coordinate) of this affine rectangle. | |
| CornerOriginX | Corner point origin (X coordinate) of this affine rectangle. | |
| CornerOriginY | Corner point origin (Y coordinate) of this affine rectangle. | |
| CornerXX | Corner point X (X coordinate) of this affine rectangle. | |
| CornerXY | Corner point X (Y coordinate) of this affine rectangle. | |
| CornerYX | Corner point Y (X coordinate) of this affine rectangle. | |
| CornerYY | Corner point Y (Y coordinate) of this affine rectangle. | |
| DragColor | Color of this graphic when dragged. | |
| DragLineStyle | Line style of the graphic when dragged. | |
| DragLineWidthInScreenPixels | Line width of this graphic when dragged. | |
| FillColor | The fill color of this graphic. | |
| GraphicDOFEnable | 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. | |
| GraphicDOFEnableBase | Interactive Degree of freedom for a graphic object. Allows access to each graphic's GraphicDOFEnable property without knowing the specific graphic type. | |
| Handle | (Overrides GraphicInteractiveBase Handle.) | |
| Interactive | Interactive property allow this graphic object to be selected. See GraphicDOFEnable for information on governing interactive manipulation of an object. | |
| LineStyle | Line style of this graphic. | |
| LineWidthInScreenPixels | Line width (in screen pixels) of this graphic. | |
| MouseCursor | Mouse cursor to be displayed when the mouse is over the graphic. The cursor will be visible only if the graphic is interactive. | |
| Parent | Return a reference to the containing tracking collection. May be null. | |
| Perimeter | Perimeter length of this CogRectangleAffine. | |
| Rotation | Get The angle (in radians, from the x-axis) of the directed vector which starts at CornerOrigin and ends at CornerX. | |
| Selected | True when the shape is selected in a display. | |
| SelectedColor | Color of this graphic when selected. | |
| SelectedLineStyle | Line style of this graphic when selected. | |
| SelectedLineWidthInScreenPixels | Line width of this graphic when selected. | |
| SelectedSpaceName | Get (Overrides GraphicInteractiveBase SelectedSpaceName.)Coordinate space in which this shape is to be interpreted. | |
| SideXLength | Get The Length of this affine rectangle from CornerOrigin to CornerX. | |
| SideYLength | Get The Length of this affine rectangle from CornerOrigin to CornerY. | |
| Skew | Get The skew (in radians) of this affine rectangle. | |
| TipText | Text to describe this graphic in a tool tip. Newline characters can be used to create multi-line tip text. | |
| Visible | Visible property of this graphic. | |
| XDirectionAdornment | Get The X direction adornment of this affine rectangle. | |
| YDirectionAdornment | Get The Y direction adornment of this affine rectangle. |
| Name | Description | |
|---|---|---|
| Changed | The actual event. | |
| Dragging | Raised when an interactive graphic is being dragged. | |
| DraggingStopped | Raised after the drag operation of an interactive graphic is complete. |
Interface that describes an affine rectangle. An affine rectangle is a quadrilateral where the opposite sides are parallel. An affine rectangle can be specified by the locations of three of its vertices; by its center point, width, height, rotation, and skew angle; or by its origin point, width, height, rotation, and skew angle. The vertices of an affine rectangle are labeled as shown in the following figure:
Py Popp ---------------- / / / / ---------------- Po PxPo is at the Corner point origin.Popp is the Corner point opposite.Px is the Corner point X.Py is the Corner point Y. Note that the corner points Px and Py denote the points that lie along the x- and y-axes. Each of these points has its own x- and y-coordinates.