Default interface of this class provides access to an optical character font's properties, Compile method, Uncompile method, and the results of compiling the font.
Inheritance Hierarchy
System MarshalByRefObject
Cognex.VisionPro.Implementation CogObjectBase
Cognex.VisionPro.OC CogOCFont
Namespace: Cognex.VisionPro.OC
Assembly: Cognex.VisionPro.OC (in Cognex.VisionPro.OC.dll) Version: 75.1.0.0
Syntax
The CogOCFont type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogOCFont | Constructs a new instance of this class. | |
| CogOCFont(IntPtr) | Constructs a new instance of this class using com pointer. | |
| CogOCFont(CogOCFont) | Constructs a new instance of this class as a deep copy of the given instance. |
Methods
| Name | Description | |
|---|---|---|
| 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 | |
| Compile | Compiles this font which involves computing the confusion scores for all possible model pairings in the font. | |
| Confusable | Returns true if the specified model pair are confusable. Two models are confusable if their Confusion score is greater than the ConfusionThreshold specified by the user. | |
| Confusion | Get the Confusion score for the specified model pair. The Confusion score for a pair of models is the probability, on a scale of 0 to 1, that the two models will be confused with each other during verification. | |
| 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.) | |
| ExportToCvlArchive | Exports this font to the specified CVL archive as a ccOCAlphabetPtrh. If this font is compiled then the CVL will contain a compiled font. | |
| 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 ) |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetPropertyOwner |
Implements the corresponding member of the ICustomTypeDescriptor interface.
May be overridden in derived classes to provide custom type information.
(Inherited from CogObjectBase.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ImportFromCvlArchive | Imports a ccOCAlphabet class from the specified CVL archive file into this CogOCFont class. The archive should contain a single ccOCAlphabet. Import will try to load from the CVL archive via either a ccOCAlphabet or a ccOCAlphabetPtrh. | |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
| 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.) | |
| 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. | |
| 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.) | |
| Uncompile | Uncompile this font. |
Fields
| Name | Description | |
|---|---|---|
| SfCompiled | This bit will be set in the EventArgs of a Changed event every time the value returned by Compiled may have changed. | |
| SfConfusable | This bit will be set in the EventArgs of a Changed event every time the value returned by Confusable may have changed. | |
| SfConfusion | This bit will be set in the EventArgs of a Changed event every time the value returned by Confusion may have changed. | |
| SfConfusionThreshold | This bit will be set in the EventArgs of a Changed event every time the value returned by ConfusionThreshold may have changed. | |
| SfDescription | This bit will be set in the EventArgs of a Changed event every time the value returned by Description may have changed. | |
| SfFontModels | This bit will be set in the EventArgs of a Changed event every time the value returned by FontModels may have changed. | |
| SfTimeout | This bit will be set in the EventArgs of a Changed event every time the value returned by Timeout may have changed. | |
| SfTimeoutEnabled | This bit will be set in the EventArgs of a Changed event every time the value returned by TimeoutEnabled 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. | |
| Compiled | True if the font is compiled. | |
| ConfusionThreshold | Threshold at which two models are considered Confusable. A compiled font contains Confusion scores for all model pairs in the font. A score greater than this threshold indicates that a model pair should be considered confusing. | |
| Description | Description simply provides a string for the user to store additional information or comments about their font. | |
| FontModels | Collection of font models for this font. | |
| HasChanged | If true, the serializable state of this object has changed since the last time it was serialized. | |
| Timeout | The maximum time (msec) allowed to compile the font. If compilation has not finished by the end of the timeout period, it will stop soon thereafter and return E_Cog_TimeoutExpired. This value only applies if TimeoutEnabled is true. | |
| TimeoutEnabled | If true then the Timeout property limits the amount of time allowed for compilation of the font. If false then timeout is disabled and the Timeout property is ignored. |
Events
| Name | Description | |
|---|---|---|
| Changed | Occurs when one or more parts of the object's state may have changed. |
Remarks
Interface for an optical character font. This interface includes properties and methods that let you specify the font's confusion threshold, determine how confusable font model pairs are, and Compile the font. It also contains the collection of models that make up the font.
See Also