CogCoreConverters MethodsCognex VisionPro 9.20

The CogCoreConverters type exposes the following members.

Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberMakeCogColorConstant
Create an equivalent VisionPro CogColorConstants from the RGB portion of a provided Vision Color32.
Public methodStatic memberMakeCogCoordinateSpaceTree
Create a Deep Copy of the provided CoordinateSpaceTree Vision object in the form of a CogCoordinateSpaceTree VisionPro object, maintaining the same structure (names, parent-child relationships, and transforms).
Public methodStatic memberMakeCogGraphicLabel
Create a Deep Copy of the provided GraphicLabel Vision object in the form of a CogGraphicLabel VisionPro object, maintaining most but not all property equivalence. Text, TipText, X and Y position, Rotation, Offset properties, and SelectedSpaceName are preserved, but most graphical properties such as Color are not.
Public methodStatic memberMakeCogGraphicLabelAlignmentConstants
Return a CogGraphicLabelAlignmentConstants value that corresponds to the supplied GraphicLabelAlignmentConstants value.
Public methodStatic memberMakeCogImage24PlanarColor
Create a VisionPro CogImage24PlanarColor that is a deep copy of the provided Vision Image24PlanarColor, maintaining both pixel data and coordinate space tree equivalence.
Public methodStatic memberMakeCogImage8Grey
Create a VisionPro CogImage8Grey that is a deep copy of the provided Vision Image8Grey, maintaining both pixel data and coordinate space tree equivalence.
Public methodStatic memberMakeCogImageColorSpaceConstants
Return a CogImageColorSpaceConstants value that corresponds to the supplied ImageColorSpaceConstants value.
Public methodStatic memberMakeCogMaskGraphic
Create a Deep Copy of the provided MaskGraphic Vision object in the form of a CogMaskGraphic VisionPro object, maintaining most but not all property equivalence. Image, TipText, X and Y offset, and SelectedSpaceName are preserved, but most graphical properties such as Color are not.
Public methodStatic memberMakeCogMaskGraphicTransparencyConstant
Create an equivalent VisionPro CogMaskGraphicTransparencyConstants from the Alpha portion of a provided Vision Color32.
Public methodStatic memberMakeCogRecord
Create a Deep Copy of the provided Record Vision object in the form of a CogRecord VisionPro object, maintaining the same property values, eg. Content, RecordUsage, etc. and the same SubRecord structure.
Public methodStatic memberMakeCogRecordUsageConstants
Return a CogRecordUsageConstants value that corresponds to the supplied RecordUsageConstants value.
Public methodStatic memberMakeCogRectangle
Create a Deep Copy of the provided Rectangle Vision object in the form of a CogRectangle VisionPro object, maintaining dimension equivalence and selected space name. Graphics properties are not converted; the CogRectangle will have default graphical settings (color, line width, etc).
Public methodStatic memberMakeCogRectangleAffine
Create a Deep Copy of the provided RectangleAffine Vision object in the form of a CogRectangleAffine VisionPro object, maintaining dimension equivalence and selected space name. Graphics properties are not converted; the CogRectangleAffine will have default graphical settings (color, line width, etc).
Public methodStatic memberMakeCogRegion
Create a Deep Copy of the provided IRegion Vision object in the form of an ICogRegion VisionPro object, maintaining dimension equivalence and selected space name. Graphics properties are not converted; the ICogRegion will have default graphical settings (color, line width, etc).
Public methodStatic memberMakeCogRunStatus
Create a CogRunStatus object from the supplied RunStatus object.
Public methodStatic memberMakeCogSerializationOptionsConstants
Public methodStatic memberMakeCogToolResultConstants
Return a CogToolResultConstants value that corresponds to the supplied ToolResultConstants value.
Public methodStatic memberMakeCogTransform2DLinear
Create a Deep Copy of the provided Transform2DLinear Vision object in the form of a CogTransform2DLinear VisionPro object, maintaining the same values for the transform.
Public methodStatic memberMakeColor32
Create an equivalent Vision Color32 from a provided VisionPro CogColorConstants and CogMaskGraphicTransparencyConstants.
Public methodStatic memberMakeCoordinateSpaceTree
Create a Deep Copy of the provided CogCoordinateSpaceTree VisionPro object in the form of a CoordinateSpaceTree Vision object, maintaining the same structure (names, parent-child relationships, and transforms).
Public methodStatic memberMakeGraphicLabel
Create a Deep Copy of the provided CogGraphicLabel VisionPro object in the form of a GraphicLabel Vision object, maintaining most but not all property equivalence. Text, TipText, X and Y position, Rotation, Offset properties, and SelectedSpaceName are preserved, but most graphical properties such as Color are not.
Public methodStatic memberMakeGraphicLabelAlignmentConstants
Return a GraphicLabelAlignmentConstants value that corresponds to the supplied CogGraphicLabelAlignmentConstants value.
Public methodStatic memberMakeICogVisionData
Convert the supplied IImage to an equivalent VisionPro object if possible.
Public methodStatic memberMakeIImage
Convert the supplied ICogVisionData to an equivalent Vision object if possible.
Public methodStatic memberMakeImage24PlanarColor
Create a Vision Image24PlanarColor that is a deep copy of the provided VisionPro CogImage24PlanarColor, maintaining both pixel data and coordinate space tree equivalence.
Public methodStatic memberMakeImage8Grey
Create a Vision Image8Grey that is a deep copy of the provided VisionPro CogImage8Grey, maintaining both pixel data and coordinate space tree equivalence.
Public methodStatic memberMakeImageColorSpaceConstants
Return an ImageColorSpaceConstants value that corresponds to the supplied CogImageColorSpaceConstants value.
Public methodStatic memberMakeMaskGraphic
Create a Deep Copy of the provided CogMaskGraphic VisionPro object in the form of a MaskGraphic Vision object, maintaining most but not all property equivalence. Image, TipText, X and Y offset, and SelectedSpaceName are preserved, but most graphical properties such as Color are not.
Public methodStatic memberMakeRectangle
Create a Deep Copy of the provided CogRectangle VisionPro object in the form of a Rectangle Vision object, maintaining dimension equivalence and selected space name. Graphics properties are not converted; the Rectangle will have default graphical settings (color, line width, etc).
Public methodStatic memberMakeRectangleAffine
Create a Deep Copy of the provided CogRectangleAffine VisionPro object in the form of a RectangleAffine Vision object, maintaining dimension equivalence and selected space name. Graphics properties are not converted; the RectangleAffine will have default graphical settings (color, line width, etc).
Public methodStatic memberMakeRegion
Create a Deep Copy of the provided ICogRegion VisionPro object in the form of an IRegion Vision object, maintaining dimension equivalence and selected space name. Graphics properties are not converted; the IRegion will have default graphical settings (color, line width, etc).
Public methodStatic memberMakeSerializerOptionsConstants(CogSerializationOptionsConstants)
Return a SerializerOptionsConstants value that corresponds to the supplied CogSerializationOptionsConstants value.
Public methodStatic memberMakeSerializerOptionsConstants(CogSerializationOptionsContext)
Return a SerializerOptionsConstants value that corresponds to the supplied CogSerializationOptionsContext object's OptionBits property. If the input parameter is null, return SerializerOptionsConstants::All.
Public methodStatic memberMakeTransform2DLinear
Create a Deep Copy of the provided CogTransform2DLinear VisionPro object in the form of a Transform2DLinear Vision object, maintaining the same values for the transform.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
See Also