CogToolBase ClassCognex VisionPro 9.23
A base class that implements the ICogTool interface. Tools may implement the ICogTool interface in other ways and are not required to derive from this class.
Inheritance Hierarchy

System Object
  System MarshalByRefObject
    System.ComponentModel Component
      Cognex.VisionPro.Implementation CogComponentBase
        Cognex.VisionPro.Implementation CogSerializableComponentBase
          Cognex.VisionPro.Implementation CogSerializableChangedEventComponentBase
            Cognex.VisionPro.Implementation CogToolBase
              Cognex.VisionPro.Blob CogBlobTool
              Cognex.VisionPro.CalibFix CogCalibCheckerboardTool
              Cognex.VisionPro.CalibFix CogCalibImageCorrectorTool
              Cognex.VisionPro.CalibFix CogCalibNPointToNPointTool
              Cognex.VisionPro.CalibFix CogFixtureNPointToNPointTool
              Cognex.VisionPro.CalibFix CogFixtureTool
              Cognex.VisionPro.Caliper CogCaliperTool
              Cognex.VisionPro.Caliper CogFindCircleTool
              Cognex.VisionPro.Caliper CogFindCornerTool
              Cognex.VisionPro.Caliper CogFindEllipseTool
              Cognex.VisionPro.Caliper CogFindLineTool
              Cognex.VisionPro.CNLSearch CogCNLSearchTool
              Cognex.VisionPro CogAcqFifoTool
              Cognex.VisionPro CogDataAnalysisTool
              Cognex.VisionPro CogFitCircleTool
              Cognex.VisionPro CogFitEllipseTool
              Cognex.VisionPro CogFitLineTool
              Cognex.VisionPro CogVisionInteropToolBase
              Cognex.VisionPro.ColorExtractor CogColorExtractorTool
              Cognex.VisionPro.ColorMatch CogColorMatchTool
              Cognex.VisionPro.ColorSegmenter CogColorSegmenterTool
              Cognex.VisionPro.CompositeColorMatch CogCompositeColorMatchTool
              Cognex.VisionPro.Dimensioning CogAngleLineLineTool
              Cognex.VisionPro.Dimensioning CogAnglePointPointTool
              Cognex.VisionPro.Dimensioning CogCreateCircleTool
              Cognex.VisionPro.Dimensioning CogCreateEllipseTool
              Cognex.VisionPro.Dimensioning CogCreateGraphicLabelTool
              Cognex.VisionPro.Dimensioning CogCreateLineBisectPointsTool
              Cognex.VisionPro.Dimensioning CogCreateLineParallelTool
              Cognex.VisionPro.Dimensioning CogCreateLinePerpendicularTool
              Cognex.VisionPro.Dimensioning CogCreateLineTool
              Cognex.VisionPro.Dimensioning CogCreateSegmentAvgSegsTool
              Cognex.VisionPro.Dimensioning CogCreateSegmentTool
              Cognex.VisionPro.Dimensioning CogDistanceCircleCircleTool
              Cognex.VisionPro.Dimensioning CogDistanceLineCircleTool
              Cognex.VisionPro.Dimensioning CogDistanceLineEllipseTool
              Cognex.VisionPro.Dimensioning CogDistancePointCircleTool
              Cognex.VisionPro.Dimensioning CogDistancePointEllipseTool
              Cognex.VisionPro.Dimensioning CogDistancePointLineTool
              Cognex.VisionPro.Dimensioning CogDistancePointPointTool
              Cognex.VisionPro.Dimensioning CogDistancePointSegmentTool
              Cognex.VisionPro.Dimensioning CogDistanceSegmentCircleTool
              Cognex.VisionPro.Dimensioning CogDistanceSegmentEllipseTool
              Cognex.VisionPro.Dimensioning CogDistanceSegmentLineTool
              Cognex.VisionPro.Dimensioning CogDistanceSegmentSegmentTool
              Cognex.VisionPro.Dimensioning CogIntersectCircleCircleTool
              Cognex.VisionPro.Dimensioning CogIntersectLineCircleTool
              Cognex.VisionPro.Dimensioning CogIntersectLineEllipseTool
              Cognex.VisionPro.Dimensioning CogIntersectLineLineTool
              Cognex.VisionPro.Dimensioning CogIntersectSegmentCircleTool
              Cognex.VisionPro.Dimensioning CogIntersectSegmentEllipseTool
              Cognex.VisionPro.Dimensioning CogIntersectSegmentLineTool
              Cognex.VisionPro.Dimensioning CogIntersectSegmentSegmentTool
              Cognex.VisionPro.DLRuntime CogDLRuntimeTool
              Cognex.VisionPro.EdgeInspect CogBeadInspectTool
              Cognex.VisionPro.ID CogIDTool
              Cognex.VisionPro.ImageFile CogImageFileTool
              Cognex.VisionPro.ImageProcessing CogAffineTransformTool
              Cognex.VisionPro.ImageProcessing CogCopyRegionTool
              Cognex.VisionPro.ImageProcessing CogHistogramTool
              Cognex.VisionPro.ImageProcessing CogImageAverageTool
              Cognex.VisionPro.ImageProcessing CogImageConvertTool
              Cognex.VisionPro.ImageProcessing CogImageSharpnessTool
              Cognex.VisionPro.ImageProcessing CogIPOneImageTool
              Cognex.VisionPro.ImageProcessing CogIPTwoImageAddTool
              Cognex.VisionPro.ImageProcessing CogIPTwoImageMinMaxTool
              Cognex.VisionPro.ImageProcessing CogIPTwoImageSubtractTool
              Cognex.VisionPro.ImageProcessing CogMaskCreatorTool
              Cognex.VisionPro.ImageProcessing CogPolarUnwrapTool
              Cognex.VisionPro.ImageProcessing CogSobelEdgeTool
              Cognex.VisionPro.Implementation CogToolBaseImpl
              Cognex.VisionPro.Implementation.Internal CogUserTool
              Cognex.VisionPro.LineMax.Implementation CogLineMaxToolBase
              Cognex.VisionPro.LinescanDistortionCorrection CogLinescanDistortionCorrectionTool
              Cognex.VisionPro.OC CogOCVTool
              Cognex.VisionPro.OCRMax CogOCRMaxTool
              Cognex.VisionPro.OCVMax CogOCVMaxTool
              Cognex.VisionPro.PatInspect CogPatInspectTool
              Cognex.VisionPro.PixelMap CogPixelMapTool
              Cognex.VisionPro.PMAlign CogPMAlignMultiTool
              Cognex.VisionPro.PMAlign CogPMAlignTool
              Cognex.VisionPro.PMRedLine CogPMRedLineTool
              Cognex.VisionPro.QuickBuild.Implementation.Internal CogInputImageTool
              Cognex.VisionPro.ResultsAnalysis CogResultsAnalysisTool
              Cognex.VisionPro.SearchMax CogSearchMaxTool
              Cognex.VisionPro.SurfaceFX CogSurfaceFXTool
              Cognex.VisionPro.Trevista CogTrevistaTool
              Cognex.VisionPro3D Cog3DPatMaxTool
              Cognex.VisionPro3D Cog3DRangeImageCrossSectionTool
              Cognex.VisionPro3D Cog3DRangeImageHeightCalculatorTool
              Cognex.VisionPro3D Cog3DRangeImagePlaneEstimatorTool
              Cognex.VisionPro3D Cog3DRangeImageVolumeCalculatorTool
              Cognex.VisionPro3D Cog3DVisionDataRerenderTool
              Cognex.VisionPro3D Cog3DVisionDataStitchTool

Namespace: Cognex.VisionPro.Implementation
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 91.0.0.0 (91.0.0.0)
Syntax

[SerializableAttribute]
public abstract class CogToolBase : CogSerializableChangedEventComponentBase, 
	ICogTool, ICogChangedEvent, IComponent, IDisposable, ICloneable, 
	ICustomTypeDescriptor, IDeserializationCallback

The CogToolBase type exposes the following members.

Constructors

  NameDescription
Public methodCogToolBase 
Constructs a new instance of the CogToolBase class.
Public methodCogToolBase(CogToolBase)
Constructs a new instance of the CogToolBase class.
Protected methodCogToolBase(SerializationInfo, StreamingContext)
Constructs a new instance of the CogToolBase class.
Top
Methods

  NameDescription
Protected methodCheckRunConditions
Check for run conditions including data binding.
Protected methodCheckRunConditionsNoThrow
Check for run conditions including data binding, returning an exception for the first problem encountered.
Protected methodClone
Creates a deep copy of the tool.
Public methodCreateCurrentRecord
Creates a new set of records that represents the tool's current state.
Public methodCreateLastRunRecord
Creates a new set of records that represents the tool's last-run state.
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 
Releases all resources used by the Component.
(Inherited from Component.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the Component and optionally releases the managed resources.
(Inherited from Component.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.)
Protected methodGetAttributes
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogComponentBase.)
Protected methodGetClassName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogComponentBase.)
Protected methodGetComponentName
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogComponentBase.)
Protected methodGetConverter
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogComponentBase.)
Protected methodGetDefaultEvent
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogComponentBase.)
Protected methodGetDefaultProperty
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogComponentBase.)
Protected methodGetEditor
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogComponentBase.)
Protected methodGetEvents 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogComponentBase.)
Protected methodGetEvents( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogComponentBase.)
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
Implements the GetObjectData method of the ISerializable interface.
(Inherited from CogSerializableComponentBase.)
Protected methodGetProperties 
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogComponentBase.)
Protected methodGetProperties( Attribute )
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogComponentBase.)
Protected methodGetPropertyOwner
Implements the corresponding member of the ICustomTypeDescriptor interface. May be overridden in derived classes to provide custom type information.
(Inherited from CogComponentBase.)
Protected methodGetService
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component.)
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 methodInternalCreateCurrentRecord
Called by the CreateCurrentRecord method to create a record containing the current state of the tool.
Protected methodInternalCreateLastRunRecord
Called by the CreateLastRunRecord method to create a record containing the state of the tool after the last call to its Run method.
Protected methodInternalRun
Called by the Run method to perform the main processing of the tool.
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 CogSerializableChangedEventComponentBase.)
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 CogSerializableChangedEventComponentBase.)
Public methodOnDeserialization
Protected methodOnRan
Raises the Ran event.
Protected methodOnRunning
Raises the Running event.
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 CogSerializableChangedEventComponentBase.)
Public methodRun
Runs the tool. This method is guaranteed to not throw an exception. Any exception generated in the course of running the tool will be caught and packaged in the tool's RunStatus.Exception. Should this occur, the tool's RunStatus.Result will be set to Error and its RunStatus.Message will reference the message that accompanied the exception. It is the user's responsibility to examine the tool's RunStatus after calling Run.
Protected methodSetRunStatus
Cognex Internal use only.
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 CogSerializableChangedEventComponentBase.)
Public methodToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Top
Fields

  NameDescription
Protected fieldCurrentRecordEnable_
Gets or sets the flags specifying the records to include based on the tool's current state. The derived class exposes this as a strongly-typed enum property.
Protected fieldLastRunLastRunRecordDiagEnable_
Gets or sets the flags specifying the records to create during the next invocation of the Run method.
Protected fieldLastRunRecordDiagEnable_
Gets or sets the flags specifying the diagnostics records to include based on the tool's last-run state. The derived class exposes this as a strongly-typed enum property.
Protected fieldLastRunRecordEnable_
Gets or sets the flags specifying the records to include based on the tool's last-run state. The derived class exposes this as a strongly-typed enum property.
Protected fieldProcessingTimeAdjustment_
Gets or sets the amount to offset reported tool processing time.
Public fieldStatic memberSfCreateCurrentRecord
State flag for the CurrentRecordEnable property.
Public fieldStatic memberSfCreateLastRunRecord
State flag for the LastRunRecordEnable property.
Public fieldStatic memberSfFailOnInvalidDataBinding
State flag for the FailOnInvalidDataBinding property.
Public fieldStatic memberSfName
State flag for the Name property.
Protected fieldStatic memberSfNextSf
Next state flag to be used in derived classes.
Public fieldStatic memberSfRunStatus
State flag for the RunStatus property.
Top
Properties

  NameDescription
Protected propertyCanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from Component.)
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 CogSerializableChangedEventComponentBase.)
Public propertyContainer
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public propertyDataBindings
Gets the data bindings for the tool.
Protected propertyDesignMode
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.)
Protected propertyEvents
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.)
Public propertyFailOnInvalidDataBinding
Specifies that the Run method is to fail if executed while one or more data bindings are invalid.
Public propertyHasChanged (Inherited from CogSerializableChangedEventComponentBase.)
Public propertyName
Gets or sets a user-supplied name for the tool.
Public propertyRunStatus
Gets general information about the last call to the tool's Run function. Note that serious errors that occur within the tool's Run method may only be detected by examining the RunStatus after calling Run. It is the user's responsibility to examine the tool's RunStatus after calling Run.
Public propertySite
Gets or sets the ISite of the Component.
(Inherited from Component.)
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 CogSerializableChangedEventComponentBase.)
Public propertyUserData
Gets a CogDictionary object that can be used to store application-specific information.
Top
Events

  NameDescription
Public eventChanged
This event is raised when one or more parts of the object's state may have changed.
(Inherited from CogSerializableChangedEventComponentBase.)
Public eventDisposed
Occurs when the component is disposed by a call to the Dispose  method.
(Inherited from Component.)
Public eventRan
Event that is raised at the end of the tool's Run method.
Public eventRunning
Event that is raised at the start of the tool's Run method.
Top
See Also