CogOCFontModel ClassCognex VisionPro 9.8
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 Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.OC CogOCFontModel

Namespace: Cognex.VisionPro.OC
Assembly: Cognex.VisionPro.OC (in Cognex.VisionPro.OC.dll) Version: 75.1.0.0
Syntax

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

The CogOCFontModel type exposes the following members.

Constructors

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

  NameDescription
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 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.)
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 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.)
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 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
Fields

  NameDescription
Public fieldStatic memberSfBlankHeight
This bit will be set in the EventArgs of a Changed event every time the value returned by BlankHeight may have changed.
Public fieldStatic memberSfBlankWidth
This bit will be set in the EventArgs of a Changed event every time the value returned by BlankWidth may have changed.
Public fieldStatic memberSfDescription
This bit will be set in the EventArgs of a Changed event every time the value returned by Description may have changed.
Public fieldStatic memberSfImage
This bit will be set in the EventArgs of a Changed event every time the value returned by Image may have changed.
Public fieldStatic memberSfImageMask
This bit will be set in the EventArgs of a Changed event every time the value returned by ImageMask may have changed.
Public fieldStatic memberSfImageMaskOffsetX
This bit will be set in the EventArgs of a Changed event every time the value returned by ImageMaskOffsetX may have changed.
Public fieldStatic memberSfImageMaskOffsetY
This bit will be set in the EventArgs of a Changed event every time the value returned by ImageMaskOffsetY may have changed.
Public fieldStatic memberSfInstance
This bit will be set in the EventArgs of a Changed event every time the value returned by Instance may have changed.
Public fieldStatic memberSfName
This bit will be set in the EventArgs of a Changed event every time the value returned by Name may have changed.
Public fieldStatic memberSfOrigin
This bit will be set in the EventArgs of a Changed event every time the value returned by Origin may have changed.
Public fieldStatic memberSfType
This bit will be set in the EventArgs of a Changed event every time the value returned by Type may have changed.
Top
Properties

  NameDescription
Public propertyBlankHeight
BlankWidth and BlankHeight specify the size, in pixel units, of a blank model image. The Image property is not used for blank models.
Public propertyBlankWidth
BlankWidth and BlankHeight specify the size, in pixel units, of a blank model image. The Image property is not used for blank models.
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 propertyDescription
Description simply provides a string for the user to store additional information or comments about their font model.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyImage
Image of the character to be verified for a normal font model. The Image property is ignored for a blank model.
Public propertyImageMask
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.
Public propertyImageMaskOffsetX
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.
Public propertyImageMaskOffsetY
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.
Public propertyInstance
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.
Public propertyName
The Name of this font model. The Name and Instance of a font model uniquely identify the model within a font.
Public propertyOrigin
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.
Public propertyType
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.
Top
Events

  NameDescription
Public eventChanged
Occurs when one or more parts of the object's state may have changed.
Top
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