CogImageFileCDB ClassCognex VisionPro 9.10
Object supporting access to .cdb /.idb files.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    Cognex.VisionPro.Implementation CogObjectBase
      Cognex.VisionPro.ImageFile CogImageFileCDB

Namespace: Cognex.VisionPro.ImageFile
Assembly: Cognex.VisionPro.ImageFile (in Cognex.VisionPro.ImageFile.dll) Version: 79.0.0.0
Syntax

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

The CogImageFileCDB type exposes the following members.

Constructors

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

  NameDescription
Public methodAppend
Append image to end of an open file.
Public methodAppendImageAndComment
Append image and comment to end of file.
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 methodClose
Close an open image file.
Public methodCopyTo
Copies the contents of this collection to an array.
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 methodDelete
Delete the specified images from the current open file.
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 methodOpen
Open an image file using the given mode.
Public methodReadComment
Read the comment at the given index.
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 memberSfCount
This bit will be set in the EventArgs of a Changed event every time the value returned by Count may have changed.
Public fieldStatic memberSfFileName
This bit will be set in the EventArgs of a Changed event every time the value returned by FileName may have changed.
Public fieldStatic memberSfOpenMode
This bit will be set in the EventArgs of a Changed event every time the value returned by OpenMode 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.
Public propertyCount
Gets the number of items contained in this collection.
Public propertyDescription
Description of this file type to be used in a Common File Dialog.
Public propertyFileName
Name of last opened file.
Public propertyFileTypes
Semicolon separated list of file types that this provider can read or write.
Public propertyHasChanged
If true, the serializable state of this object has changed since the last time it was serialized.
Public propertyIsSynchronized
Gets a value indicating whether access to this collection is synchronized (thread-safe).
Public propertyItem
Gets the item at the specified index. In C#, this property is the indexer for the collection.
Public propertyOpenMode
Mode in which the file was opened (or cogImageFile_Closed if no file open).
Public propertySyncRoot
Gets an object that can be used to synchronize access to this collection.
Top
Events

  NameDescription
Public eventChanged
Occurs when one or more parts of the object's state may have changed.
Top
Remarks

Interface that supports access to Cognex image database (.cdb, .idb) files.

Note: When you save an image to a Cognex image file (.IDB) or Cognex image database (.CDB) using this tool, the tool saves the image, the selected space name of the image, and the coordinate space tree associated with the image. When you load an image from an .IDB or .CDB file, the selected space and the coordinate space tree are both restored as well.

See Also