CogPMAlignComposite ClassCognex VisionPro
The PMAlign composite class.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.Implementation CogSerializableObjectBase
        Cognex.VisionPro.Implementation CogSerializableChangedEventBase
          Cognex.VisionPro.PMAlign CogPMAlignComposite

Namespace: Cognex.VisionPro.PMAlign
Assembly: Cognex.VisionPro.PMAlign (in Cognex.VisionPro.PMAlign.dll) Version: 65.1.0.0
Syntax

[SerializableAttribute]
public class CogPMAlignComposite : CogSerializableChangedEventBase, 
	ICogPMAlignComposite, IDeserializationCallback, IDisposable

The CogPMAlignComposite type exposes the following members.

Constructors

  NameDescription
Public methodCogPMAlignComposite 
Construct a default CogPMAlignComposite object.
Public methodCogPMAlignComposite(CogPMAlignComposite)
Construct a deep copy of the supplied CogPMAlignComposite object except for PercentCoarseFeaturesUsed, PercentFineFeaturesUsed and SelectedIndex. because these values are generated at train time.
Protected methodCogPMAlignComposite(SerializationInfo, StreamingContext)
Serialization constructor for CogPMAlignComposite object. The PercentCoarseFeaturesUsed, PercentFineFeaturesUsed and SelectedIndex are not serialized because these values are generated at train time.
Top
Methods

  NameDescription
Public methodClearCollection
Clear the collection and leave the pattern trained state as is. In case the application memory is low, this can free up some memory. Remember to save the tool before clearing the collection.
Public methodClearTrainData
Public methodClone
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
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAlignmentFeatures
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.)
Public methodGetCount
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.)
Public methodGetEnabled
Public methodGetEnabledCount
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 methodGetIgnorePolarity
Public methodGetImage
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodGetObjectData
Implements the GetObjectData method of the ISerializable interface.
(Inherited from CogSerializableObjectBase.)
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 methodGetSelectedIndex
Public methodGetTrainGraphicsIndex
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.)
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.)
Protected methodOnChanged(Int64)
This method should be called internally whenever the object's state may have changed.
(Inherited from CogSerializableChangedEventBase.)
Protected methodOnChanged(CogChangedEventArgs)
This method may be called internally whenever a derived object's state may have changed and the derived object expresses this change via a derived CogChangedEventArgs class.
(Inherited from CogSerializableChangedEventBase.)
Public methodOnDeserialization
Internal Cognex use only.
Public methodResumeAndRaiseChangedEvent
Re-enables raising of the Changed event after SuspendChangedEvent has been called, and 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.
(Inherited from CogSerializableChangedEventBase.)
Public methodSetCompositeParent
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.
(Inherited from CogSerializableChangedEventBase.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodTrainComposite
Top
Fields

  NameDescription
Public fieldStatic memberSfCompositeData
This bit will be set in the EventArgs of a Changed event every time the value returned by CompositeData may have changed.
Public fieldStatic memberSfIgnorePolarity
This bit will be set in the EventArgs of a Changed event every time the value returned by IgnorePolarity may have changed.
Public fieldStatic memberSfImageFraction
This bit will be set in the EventArgs of a Changed event every time the value returned by ImageFraction may have changed.
Protected fieldStatic memberSfNextSf
NextSf state flag.
Public fieldStatic memberSfPercentCoarseFeaturesUsed
This bit will be set in the EventArgs of a Changed event every time the value returned by PercentCoarseFeaturesUsed may have changed.
Public fieldStatic memberSfPercentFineFeaturesUsed
This bit will be set in the EventArgs of a Changed event every time the value returned by PercentFineFeaturesUsed may have changed.
Public fieldStatic memberSfSelectedIndex
This bit will be set in the EventArgs of a Changed event every time the value returned by SelectedIndex may have changed.
Public fieldStatic memberSfTimeout
This bit will be set in the EventArgs of a Changed event every time the value returned by Timeout may have changed.
Public fieldStatic memberSfTimeoutEnabled
This bit will be set in the EventArgs of a Changed event every time the value returned by TimeoutEnabled may have changed.
Public fieldStatic memberSfTuningElasticity
This bit will be set in the EventArgs of a Changed event every time the value returned by TuningElasticity may have changed.
Top
Properties

  NameDescription
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.
(Inherited from CogSerializableChangedEventBase.)
Public propertyCompositeData
Gets or sets the CompositeData property.
Public propertyHasChanged (Inherited from CogSerializableChangedEventBase.)
Public propertyIgnorePolarity
Gets or sets whether composite training should ignore polarity or not.
Public propertyImageFraction
Gets or sets the ImageFraction property. The feature must be present in at least this fraction of the images to contribute to the produced pattern.
Public propertyPercentCoarseFeaturesUsed
Gets the percentage of the coarse feature that were used in the pattern from the initial train image.The value is set when the user calls train and the item is enabled.
Public propertyPercentFineFeaturesUsed
Gets the percentage of the fine feature that were used in the pattern from the initial train image.The value is set when the user calls train and at least one composite item is enabled.
Public propertySelectedIndex
Gets or sets the SelectedIndex property. This property is used to create the record content graphics for the composite data item specified in the selected index. The SelectedIndex is used by the edit control to specify the item selected.
Public propertyStateFlags
Returns the complete set of state flags supported on this object. The flags may be indexed by name as shown in the following C# code snippet: if (changedObject.StateFlags["Color"] & eventArgs.StateFlags) { ... }
(Inherited from CogSerializableChangedEventBase.)
Public propertyTimeout
Gets or sets the maximum amount of time in milliseconds that training can take.
Public propertyTimeoutEnabled
Gets or sets whether composite training is allowed to time out. If true, the composite training is limited by the Timeout value.
Public propertyTuningElasticity
Gets or sets the TuningElasticity property. The value indicates how far the feature location can vary. The value is specified in pixels.
Top
Events

  NameDescription
Public eventChanged
This event is raised when one or more parts of the object's state may have changed.
(Inherited from CogSerializableChangedEventBase.)
Public eventInvalidatePMAlignCurrentRecord
Internal Cognex use only.
Top
Remarks

The class holds the composite training params and a collection of composite data items.
See Also