A CogTransform2DComposed is a transform object that can compose transforms of different types. The composed transform maps points through all its contained transformations (from 'Right' to 'Left'), and thus acts as their composition.
Inheritance Hierarchy
System MarshalByRefObject
Cognex.VisionPro.Implementation CogObjectBase
Cognex.VisionPro CogTransform2DComposed
Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax
The CogTransform2DComposed type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogTransform2DComposed | Constructs a new instance of this class. | |
| CogTransform2DComposed(IntPtr) | Constructs a new instance of this class using com pointer. | |
| CogTransform2DComposed(CogTransform2DComposed) | Constructs a new instance of this class as a deep copy of the given instance. |
Methods
| Name | Description | |
|---|---|---|
| BestFitLinearTransform | Returns a new linear transform which best describes this transform over the given set of points. The points must be expressed in 'from' coordinates. | |
| Canonize | Returns the canonical form of this composed transform. This is the mathematically equivalent form that has the fewest number of transforms. If TypeSimplify is True, the returned type may be reduced to a type simpler than this. | |
| Clone | 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 | |
| Compose | Returns a new transform which is the composition of the given transform (on the right side) and this one (on the left side). | |
| ComposeBase | Returns a new transform which is the composition of the given transform (on the right side) and this one (on the left side). | |
| Copy | Returns a new copy of this composed transform. | |
| CopyBase | Returns a new copy of this transform. | |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
| Dispose | ||
| Dispose(Boolean) | ||
| Equals | (Inherited from Object.) | |
| Finalize | (Overrides Object Finalize .) | |
| GetAttributes |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetClassName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetComponentName |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetConverter |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetDefaultEvent |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetDefaultProperty |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEditor |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetEvents( Attribute ) |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| GetObjectData | ||
| GetProperties |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetProperties( Attribute ) | (Overrides CogObjectBase GetProperties( Attribute ).) | |
| GetPropertyOwner |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetTransform | Returns a reference to the transform at the specified index in the contained sequence. | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| Invert | Returns a new transform that is the inverse of this one. | |
| InvertBase | Returns a new transform which is the inverse of this one. | |
| LinearTransform | Returns a new linear transform which best describes this transform at the given point. The point must be expressed in 'from' coordinates. | |
| MapPoint | Maps the given x,y point through this transform, filling in the mapped x,y coordinates. | |
| MapPoints | Map the supplied points through this transform. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) | |
| Merge | Merges the RightSide composed transform into this composed transform, on right. This is the opposite of Split. If Copy is true, RightSide's contained transforms are added to the sequence by value, otherwise they are added by reference. | |
| PopFromLeft | Removes and returns the left-most transform from the contained sequence. Note that this will decrease the index of all remaining transforms in the contained sequence by one. | |
| PopFromRight | Removes and returns the right-most transform from the contained sequence. | |
| PushOntoLeft | Composes the LeftSide transform into this composed transform on the left. If Copy is True, the transform is added to the sequence by value, otherwise it's added by reference. Note that this will increase the index of all contained transforms by one. | |
| PushOntoRight | Composes the RightSide transform into this composed transform on the right. If Copy is True, the transform is added to the sequence by value, otherwise it's added by reference. | |
| Replace | Replaces the transform at the given index with the passed Replacement transform. If Copy is True, the Replacement transform is added by value, otherwise, it is added by reference. | |
| ResumeAndRaiseChangedEvent | 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. | |
| Split | Splits this composed transform into two composed transforms just before Index. This object becomes the left part and the right part is returned. | |
| SuspendChangedEvent | 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. | |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| SfCount | This bit will be set in the EventArgs of a Changed event every time the value returned by Count may have changed. | |
| SfLinear | This bit will be set in the EventArgs of a Changed event every time the value returned by Linear may have changed. |
Properties
| Name | Description | |
|---|---|---|
| ChangedEventSuspended | 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. | |
| Count | Returns the number of transforms contained in this composed transform's sequence. This is the number of transforms that can be retrieved by the indexed Transform property. | |
| HasChanged | If true, the serializable state of this object has changed since the last time it was serialized. | |
| Linear | Returns true if this is a linear transform. |
Events
| Name | Description | |
|---|---|---|
| Changed | Occurs when one or more parts of the object's state may have changed. |
Remarks
A 2D transform object that can compose transforms of different types. The composed transform maps points through all its contained transformations (from 'Right' to 'Left'), acting as their composition even if the individual transformations are not mathematically composable.
See Also