CogRectangleAffine ClassCognex VisionPro 9.8
Class that represents an affine rectangle.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro CogRectangleAffine

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

[SerializableAttribute]
public class CogRectangleAffine : CogObjectBase, 
	ICogNetInternal, IDisposable, ICloneable, ISerializable, ICogHasChanged, 
	ICogChangedEvent, ICogShape, ICogRegion, ICogGraphic, ICogGraphicInteractive, 
	ICogGraphicParentChild

The CogRectangleAffine type exposes the following members.

Constructors

  NameDescription
Public methodCogRectangleAffine 
Constructs a new instance of this class.
Public methodCogRectangleAffine(IntPtr)
Constructs a new instance of this class using com pointer.
Public methodCogRectangleAffine(CogRectangleAffine)
Constructs a new instance of this class as a deep copy of the given instance.
Top
Methods

  NameDescription
Protected methodClone
Returns a deep copy of this class instance. Derived classes that implement Clone should override this method; other clients who wish to clone this instance should call ICloneable.Clone. See also CogSerializer.DeepCopyObject
Public methodCopy
Create a new shape that copies specified parameters.
Public methodCopyBase
Copy a graphic and its derived parameters.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodCreateRLE
Create an RLE representation of this Region.
Public methodDispose 
Protected methodDispose(Boolean)
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
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize (Overrides Object Finalize .)
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.
Protected methodGetAttributes
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetCenterLengthsRotationSkew
Query this affine rectangle for its center, length, rotation and skew parameterization. All angles are in radians.
Protected methodGetClassName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetComponentName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetConverter
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultEvent
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetDefaultProperty
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEditor
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetEvents( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetObjectData
Public methodGetOriginCornerXCornerY
Query the parameterization of this affine rectangle with respect to the three corner points: Origin, CornerX, and CornerY.
Public methodGetOriginLengthsRotationSkew
Query this affine rectangle for its origin, length, rotation and skew parameterization. All angles are in radians.
Public methodGetParentFromChildTransform
Protected methodGetProperties 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetProperties( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Protected methodGetPropertyOwner
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodMakeShapeModel
Returns a newly created shape model with the given weight and polarity. The 'Shape' property of the returned shape model will refer to this shape, or a copy of this shape, as specified by the CopyShape argument.
Public methodMap
Maps this shape through the given transform.
Public methodMapLinear
Create a new affine rectangle by mapping this one through the given transform.
Protected methodMemberwiseClone 
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called. Also raises the Changed event 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.
Public methodSetCenterLengthsRotationSkew
Initialize this affine rectangle from its center point, SideXLength, SideYLength, Rotation (in radians) and Skew.
Public methodSetFromRectangle
Set parameters of this affine rectangle from the given rectangle and transformation.
Public methodSetOriginCornerXCornerY
Initialize this affine rectangle from the three corner points: Origin, CornerX, and CornerY.
Public methodSetOriginLengthsRotationSkew
Initialize this affine rectangle from its origin point, SideXLength, SideYLength, Rotation and Skew. All angles are in radians.
Public methodSuspendChangedEvent
Temporarily suspends the raising of the Changed event. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberSfArea
This bit will be set in the EventArgs of a Changed event every time the value returned by Area may have changed.
Public fieldStatic memberSfCenterX
This bit will be set in the EventArgs of a Changed event every time the value returned by CenterX may have changed.
Public fieldStatic memberSfCenterY
This bit will be set in the EventArgs of a Changed event every time the value returned by CenterY may have changed.
Public fieldStatic memberSfChildren
This bit will be set in the EventArgs of a Changed event every time the value returned by Children may have changed.
Public fieldStatic memberSfColor
This bit will be set in the EventArgs of a Changed event every time the value returned by Color may have changed.
Public fieldStatic memberSfCornerOppositeX
This bit will be set in the EventArgs of a Changed event every time the value returned by CornerOppositeX may have changed.
Public fieldStatic memberSfCornerOppositeY
This bit will be set in the EventArgs of a Changed event every time the value returned by CornerOppositeY may have changed.
Public fieldStatic memberSfCornerOriginX
This bit will be set in the EventArgs of a Changed event every time the value returned by CornerOriginX may have changed.
Public fieldStatic memberSfCornerOriginY
This bit will be set in the EventArgs of a Changed event every time the value returned by CornerOriginY may have changed.
Public fieldStatic memberSfCornerXX
This bit will be set in the EventArgs of a Changed event every time the value returned by CornerXX may have changed.
Public fieldStatic memberSfCornerXY
This bit will be set in the EventArgs of a Changed event every time the value returned by CornerXY may have changed.
Public fieldStatic memberSfCornerYX
This bit will be set in the EventArgs of a Changed event every time the value returned by CornerYX may have changed.
Public fieldStatic memberSfCornerYY
This bit will be set in the EventArgs of a Changed event every time the value returned by CornerYY may have changed.
Public fieldStatic memberSfCreateRLE
This bit will be set in the EventArgs of a Changed event every time the value returned by CreateRLE may have changed.
Public fieldStatic memberSfDragColor
This bit will be set in the EventArgs of a Changed event every time the value returned by DragColor may have changed.
Public fieldStatic memberSfDragLineStyle
This bit will be set in the EventArgs of a Changed event every time the value returned by DragLineStyle may have changed.
Public fieldStatic memberSfDragLineWidthInScreenPixels
This bit will be set in the EventArgs of a Changed event every time the value returned by DragLineWidthInScreenPixels may have changed.
Public fieldStatic memberSfEnclosingRectangle
This bit will be set in the EventArgs of a Changed event every time the value returned by EnclosingRectangle may have changed.
Public fieldStatic memberSfGraphicDOFEnable
This bit will be set in the EventArgs of a Changed event every time the value returned by GraphicDOFEnable may have changed.
Public fieldStatic memberSfGraphicDOFEnableBase
This bit will be set in the EventArgs of a Changed event every time the value returned by GraphicDOFEnableBase may have changed.
Public fieldStatic memberSfInteractive
This bit will be set in the EventArgs of a Changed event every time the value returned by Interactive may have changed.
Public fieldStatic memberSfLineStyle
This bit will be set in the EventArgs of a Changed event every time the value returned by LineStyle may have changed.
Public fieldStatic memberSfLineWidthInScreenPixels
This bit will be set in the EventArgs of a Changed event every time the value returned by LineWidthInScreenPixels may have changed.
Public fieldStatic memberSfMouseCursor
This bit will be set in the EventArgs of a Changed event every time the value returned by MouseCursor may have changed.
Public fieldStatic memberSfParent
This bit will be set in the EventArgs of a Changed event every time the value returned by Parent may have changed.
Public fieldStatic memberSfPerimeter
This bit will be set in the EventArgs of a Changed event every time the value returned by Perimeter may have changed.
Public fieldStatic memberSfRotation
This bit will be set in the EventArgs of a Changed event every time the value returned by Rotation may have changed.
Public fieldStatic memberSfSelected
This bit will be set in the EventArgs of a Changed event every time the value returned by Selected may have changed.
Public fieldStatic memberSfSelectedColor
This bit will be set in the EventArgs of a Changed event every time the value returned by SelectedColor may have changed.
Public fieldStatic memberSfSelectedLineStyle
This bit will be set in the EventArgs of a Changed event every time the value returned by SelectedLineStyle may have changed.
Public fieldStatic memberSfSelectedLineWidthInScreenPixels
This bit will be set in the EventArgs of a Changed event every time the value returned by SelectedLineWidthInScreenPixels may have changed.
Public fieldStatic memberSfSelectedSpaceName
This bit will be set in the EventArgs of a Changed event every time the value returned by SelectedSpaceName may have changed.
Public fieldStatic memberSfSideXLength
This bit will be set in the EventArgs of a Changed event every time the value returned by SideXLength may have changed.
Public fieldStatic memberSfSideYLength
This bit will be set in the EventArgs of a Changed event every time the value returned by SideYLength may have changed.
Public fieldStatic memberSfSkew
This bit will be set in the EventArgs of a Changed event every time the value returned by Skew may have changed.
Public fieldStatic memberSfTipText
This bit will be set in the EventArgs of a Changed event every time the value returned by TipText may have changed.
Public fieldStatic memberSfVisible
This bit will be set in the EventArgs of a Changed event every time the value returned by Visible may have changed.
Public fieldStatic memberSfXDirectionAdornment
This bit will be set in the EventArgs of a Changed event every time the value returned by XDirectionAdornment may have changed.
Public fieldStatic memberSfYDirectionAdornment
This bit will be set in the EventArgs of a Changed event every time the value returned by YDirectionAdornment may have changed.
Top
Properties

  NameDescription
Public propertyArea
Area of this CogRectangleAffine.
Public propertyCenterX
Center point (X coordinate) of this affine rectangle.
Public propertyCenterY
Center point (Y coordinate) of this affine rectangle.
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
Public propertyChildren
Children of this graphic.
Public propertyColor
Color of this graphic. Can be any OLE_COLOR.
Public propertyCornerOppositeX
Corner point Opposite (X coordinate) of this affine rectangle.
Public propertyCornerOppositeY
Corner point Opposite (Y coordinate) of this affine rectangle.
Public propertyCornerOriginX
Corner point origin (X coordinate) of this affine rectangle.
Public propertyCornerOriginY
Corner point origin (Y coordinate) of this affine rectangle.
Public propertyCornerXX
Corner point X (X coordinate) of this affine rectangle.
Public propertyCornerXY
Corner point X (Y coordinate) of this affine rectangle.
Public propertyCornerYX
Corner point Y (X coordinate) of this affine rectangle.
Public propertyCornerYY
Corner point Y (Y coordinate) of this affine rectangle.
Public propertyDragColor
Color of this graphic when dragged.
Public propertyDragLineStyle
Line style of this graphic when dragged.
Public propertyDragLineWidthInScreenPixels
Line width of this graphic when dragged.
Public propertyGraphicDOFEnable
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.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyInteractive
Interactive property allow this graphic object to be selected. See GraphicDOFEnable for information on governing interactive manipulation of an object.
Public propertyLineStyle
Line style of this graphic.
Public propertyLineWidthInScreenPixels
Line width (in screen pixels) of this graphic.
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.
Public propertyParent
Parent of this graphic.
Public propertyPerimeter
Perimeter length of this CogRectangleAffine.
Public propertyRotation
The angle (in radians, from the x-axis) of the directed vector which starts at CornerOrigin and ends at CornerX.
Public propertySelected
True when the shape is selected in a display.
Public propertySelectedColor
Color of this graphic when selected.
Public propertySelectedLineStyle
Line style of this graphic when selected.
Public propertySelectedLineWidthInScreenPixels
Line width of this graphic when selected.
Public propertySelectedSpaceName
Coordinate space in which this shape is to be interpreted.
Public propertySideXLength
The Length of this affine rectangle from CornerOrigin to CornerX.
Public propertySideYLength
The Length of this affine rectangle from CornerOrigin to CornerY.
Public propertySkew
The skew (in radians) of this affine rectangle.
Public propertyTipText
Text to describe this graphic in a tool tip.
Public propertyVisible
Visible property of this graphic.
Public propertyXDirectionAdornment
The X direction adornment of this affine rectangle.
Public propertyYDirectionAdornment
The Y direction adornment of this affine rectangle.
Top
Events

  NameDescription
Public eventChanged
Occurs when one or more parts of the object's state may have changed.
Public eventDragging
Occurs when an interactive graphic is being dragged.
Public eventDraggingStopped
Occurs after the drag operation of an interactive graphic is complete.
Top
Remarks

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:

Po 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.

See Also