CogTransform2DLinear ClassCognex VisionPro 9.21
Linear 2D coordinate transform.
Inheritance Hierarchy

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

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

[SerializableAttribute]
public class CogTransform2DLinear : CogObjectBase, 
	ICogNetInternal, IDisposable, ICogTransform2D, ICloneable, ISerializable, 
	ICogHasChanged, ICogChangedEvent

The CogTransform2DLinear type exposes the following members.

Constructors

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

  NameDescription
Protected methodattachCom
Public methodBestFitLinearTransform
Returns a new linear transform which best describes this transform over the given set of points. The points must be expressed in 'from' coordinates.
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 methodCompose
Returns a new linear transform which is the composition of the given transform (on the right side) and this one (on the left side).
Public methodComposeBase
Returns a new transform which is the composition of the given transform (on the right side) and this one (on the left side).
Public methodCopy
Returns a new copy of this transform.
Public methodCopyBase
Returns a new copy of this transform.
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 methodDispose 
Protected methodDispose(Boolean)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize (Overrides Object Finalize .)
Protected methodGetAttributes
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.)
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.)
Public methodGetMatrixElement
Access the selected element of the 2-by-2 matrix in this transform.
Public methodGetMatrixElementsTranslation
Extract the named parameters from this transform.
Protected methodGetObjectData
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 methodGetScalingAspectRotationSkewTranslation
Extract the named parameters from this transform. Rotation and Skew are in radians.
Public methodGetScalingsRotationsTranslation
Extract the named parameters from this transform. RotationX and RotationY are in radians.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIdentity
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodInvert
Returns a new linear transform which is the inverse of this one.
Public methodInvertBase
Returns a new transform which is the inverse of this one.
Public methodLinearTransform
Returns a new linear transform which best describes this transform at the given point. The point must be expressed in 'from' coordinates.
Public methodMapAngle
Maps the given angle (in radians) through this transform and returns the result (in radians).
Public methodMapArea
Maps the given area through this transform and returns the result.
Public methodMapPoint
Maps the given x,y point through this transform, filling in the mapped x,y coordinates.
Public methodMapPoints
Map the supplied points through this transform.
Public methodMapVector
Maps the given x,y vector through this transform, filling in the mapped x,y vector components.
Public methodMatrixIdentity
Returns true if the 2-by-2 matrix in this transform is an identity mapping within the given tolerance. The tolerance is applied to each matrix element.
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 methodSetMatrixElement
Access the selected element of the 2-by-2 matrix in this transform.
Public methodSetMatrixElementsTranslation
Set this transform from the given parameters.
Public methodSetScalingAspectRotationSkewTranslation
Set this transform from the given parameters. Rotation and Skew are in radians.
Public methodSetScalingsRotationsTranslation
Set this transform from the given parameters. RotationX and RotationY are in radians.
Public methodSingular
Returns true if this transform is singular. A transform is singular if the matrix determinant equals zero within the given tolerance.
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
Operators

  NameDescription
Public operatorStatic memberMultiply
Top
Fields

  NameDescription
Protected field__com
Protected field__disposed
Protected fieldStatic member__factory
Protected fieldStatic memberCreator
Public fieldStatic memberSfAspect
This bit will be set in the EventArgs of a Changed event every time the value returned by Aspect may have changed.
Public fieldStatic memberSfGetMatrixElement
This bit will be set in the EventArgs of a Changed event every time the value returned by GetMatrixElement may have changed.
Public fieldStatic memberSfLinear
This bit will be set in the EventArgs of a Changed event every time the value returned by Linear may have changed.
Public fieldStatic memberSfMatrixDeterminant
This bit will be set in the EventArgs of a Changed event every time the value returned by MatrixDeterminant 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 memberSfRotationX
This bit will be set in the EventArgs of a Changed event every time the value returned by RotationX may have changed.
Public fieldStatic memberSfRotationY
This bit will be set in the EventArgs of a Changed event every time the value returned by RotationY may have changed.
Public fieldStatic memberSfScaling
This bit will be set in the EventArgs of a Changed event every time the value returned by Scaling may have changed.
Public fieldStatic memberSfScalingX
This bit will be set in the EventArgs of a Changed event every time the value returned by ScalingX may have changed.
Public fieldStatic memberSfScalingY
This bit will be set in the EventArgs of a Changed event every time the value returned by ScalingY 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 memberSfTranslationX
This bit will be set in the EventArgs of a Changed event every time the value returned by TranslationX may have changed.
Public fieldStatic memberSfTranslationY
This bit will be set in the EventArgs of a Changed event every time the value returned by TranslationY may have changed.
Top
Properties

  NameDescription
Public propertyAspect
Returns/sets the aspect of this transform. Aspect is the ratio of scaling along the y axis over scaling along the x axis. When aspect is set the rotation, skew, and scaling remain unchanged.
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 propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyLinear
Returns true if this is a linear transform.
Public propertyMatrixDeterminant
Returns the determinant of the 2-by-2 matrix in this transformation.
Public propertyRotation
Returns/sets the rotation of this transform (in radians). When rotation is set the skew, scaling, and aspect remain unchanged.
Public propertyRotationX
Returns the x-axis rotation of this transform (in radians). When set, RotationY, ScalingX, and ScalingY remain unchanged.
Public propertyRotationY
Returns the y-axis rotation of this transform (in radians). When set, RotationX, ScalingX, and ScalingY remain unchanged.
Public propertyScaling
Returns/sets the scaling of this transform. When scaling is set the rotation, skew, and aspect remain unchanged.
Public propertyScalingX
Returns the x-axis scaling of this transform. When set, RotationX, RotationY, and ScalingY remain unchanged.
Public propertyScalingY
Returns the y-axis scaling of this transform. When set, RotationX, RotationY, and ScalingX remain unchanged.
Public propertySkew
Returns/sets the skew of this transform (in radians). When skew is set the rotation, scaling, and aspect remain unchanged.
Public propertyTranslationX
Returns/sets the x component of the translation vector.
Public propertyTranslationY
Returns/sets the y component of the translation vector.
Top
Events

  NameDescription
Public eventChanged
Occurs when one or more parts of the object's state may have changed.
Top
Remarks

CogTransform2DLinear represents a two-dimensional linear transformation between two coordinate spaces. It enables you to map points from the from coordinate space to the to coordinate space. It defaults to the identity transform.

CogTransform2DLinear represents a linear transformation as a (2x2) matrix and a translation vector. There are three different parameterization methods for the matrix, each based on the following general 2-d linear transformation:

Where (xA, yA) is the input point, (Tx, Ty) is the translation vector, and the rest is the (2x2) matrix that represents the scaling and rotation.

See Also