Provides access to the properties of an optical character font model. This can be a normal font model which is used to inspect for the presence of a character or a blank font model which is used to inspect for the absence of any character.
Inheritance Hierarchy
System MarshalByRefObject
Cognex.VisionPro.Implementation CogObjectBase
Cognex.VisionPro.OC CogOCFontModel
Namespace: Cognex.VisionPro.OC
Assembly: Cognex.VisionPro.OC (in Cognex.VisionPro.OC.dll) Version: 83.0.0.0
Syntax
The CogOCFontModel type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogOCFontModel | Constructs a new instance of this class. | |
| CogOCFontModel(IntPtr) | Constructs a new instance of this class using com pointer. | |
| CogOCFontModel(CogOCFontModel) | Constructs a new instance of this class as a deep copy of the given instance. |
Methods
| Name | Description | |
|---|---|---|
| attachCom | ||
| 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 | |
| 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 | Determines whether the specified Object is equal to the current Object. (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 ) |
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.) | |
| 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 | Returns a String that represents the current Object. (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| __com | ||
| __disposed | ||
| __factory | ||
| Creator | ||
| SfBlankHeight | This bit will be set in the EventArgs of a Changed event every time the value returned by BlankHeight may have changed. | |
| SfBlankWidth | This bit will be set in the EventArgs of a Changed event every time the value returned by BlankWidth 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. | |
| SfImage | This bit will be set in the EventArgs of a Changed event every time the value returned by Image may have changed. | |
| SfImageMask | This bit will be set in the EventArgs of a Changed event every time the value returned by ImageMask may have changed. | |
| SfImageMaskOffsetX | This bit will be set in the EventArgs of a Changed event every time the value returned by ImageMaskOffsetX may have changed. | |
| SfImageMaskOffsetY | This bit will be set in the EventArgs of a Changed event every time the value returned by ImageMaskOffsetY may have changed. | |
| SfInstance | This bit will be set in the EventArgs of a Changed event every time the value returned by Instance may have changed. | |
| SfName | This bit will be set in the EventArgs of a Changed event every time the value returned by Name may have changed. | |
| SfOrigin | This bit will be set in the EventArgs of a Changed event every time the value returned by Origin may have changed. | |
| SfType | This bit will be set in the EventArgs of a Changed event every time the value returned by Type may have changed. |
Properties
| Name | Description | |
|---|---|---|
| BlankHeight | BlankWidth and BlankHeight specify the size, in pixel units, of a blank model image. The Image property is not used for blank models. | |
| BlankWidth | BlankWidth and BlankHeight specify the size, in pixel units, of a blank model image. The Image property is not used for blank models. | |
| 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. | |
| Description | Description simply provides a string for the user to store additional information or comments about their font model. | |
| HasChanged | If true, the serializable state of this object has changed since the last time it was serialized. | |
| Image | Image of the character to be verified for a normal font model. The Image property is ignored for a blank model. | |
| ImageMask | A mask which allows the user to identify areas of the font model image, or blank region, as care or don't care. Only model pixels corresponding to care pixels in the mask are used for verifying a font model. | |
| ImageMaskOffsetX | X offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the Image to the upper-left corner of the ImageMask, in image coordinates of the Image. | |
| ImageMaskOffsetY | Y offset value in pixels. The X & Y offset values measure the offset from the upper-left corner of the Image to the upper-left corner of the ImageMask, in image coordinates of the Image. | |
| Instance | The Instance of this font model. The Name and Instance of a font model uniquely identify the model within a font. Valid instance number is between 0 and 255, inclusive. | |
| Name | The Name of this font model. The Name and Instance of a font model uniquely identify the model within a font. | |
| Origin | A transform that defines the origin of the model relative to the model's image pixels. It is a pixel space from model origin space transform. In the case of blank models, the width and height define a rectangle which is equivalent to image pixel space. | |
| Type | Indicates whether this is a normal or blank model. A normal model is used to inspect for the presence of a character and is defined by an image of the character. A blank is used to inspect for the absence of a character defined by a width and height. |
Events
| Name | Description | |
|---|---|---|
| Changed | Occurs when one or more parts of the object's state may have changed. |
Remarks
Interface which provide access to the properties of an optical character font model. This can be a normal font model which is used to inspect for the presence of a character or a blank font model which is used to inspect for the absence of any character.
See Also