ICogShapeModel InterfaceCognex VisionPro 9.25 SR1
A CogShapeModel is an object that holds the weight and polarity information that should be applied to a shape (and its subfeatures, if any) when it is used as a synthetic model.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 93.1.0.0
Syntax

public interface ICogShapeModel : ICogModelFeature

The ICogShapeModel type exposes the following members.

Methods

  NameDescription
Public methodCreateSubFeatureIterator
Returns a newly created iterator for iterating over all subfeatures. The iterator is positioned at the subfeature specified by InitialIndex. A value of -1 creates an iterator that is positioned just after the last valid subfeature.
Public methodGetEffectivePolarity
If this feature has no ParentFeature, then its effective polarity is the value of the Polarity property. If this feature has a ParentFeature, then the effective polarity is the Polarity times the effective polarity of the ParentFeature.
(Inherited from ICogModelFeature.)
Public methodGetEffectiveWeight
If this feature has no ParentFeature, then its effective weight is the value of the Weight property. If this feature has a ParentFeature, then the effective weight is the Weight times the effective weight of the ParentFeature.
(Inherited from ICogModelFeature.)
Top
Properties

  NameDescription
Public propertyColor
Color of this graphic. Can be any OLE_COLOR.
Public propertyInteractive
Interactive property allow this graphic object to be selected. See GraphicDOFEnable for information on governing interactive manipulation of an object.
Public propertyLineStyle
Line style of this graphic.
Public propertyLineWidthInScreenPixels
Line width (in screen pixels) of this graphic.
Public propertyParentFeature
If this feature has a ParentFeature, then Weight and Polarity are defined with respect to the parent. The effective weight (or polarity) of this feature is its Weight (or Polarity) times the parent's effective weight (or polarity).
(Inherited from ICogModelFeature.)
Public propertyPolarity
Returns/sets the polarity of this feature. The polarity of a given feature may be -1, 0(undefined), or +1. Polarities of +1 or -1 define where to find brighter pixels relative to the feature geometry, and 0 means undefined.
(Inherited from ICogModelFeature.)
Public propertyPolarityAdornment
Returns/sets the polarity adornment of this CogShapeModel.
Public propertySelectedSpaceName
Coordinate space in which this shape is to be interpreted.
Public propertyShape
Returns a reference to the shape object associated with this model feature. The Weight and Polarity are applied to this shape when it is used as a synthetic model.
Public propertySubFeatureCount
Returns the number of subfeatures of this CogShapeModel. The subfeatures can be iterated by calling CreateSubFeatureIterator.
Public propertyTipText
Text to describe this graphic in a tool tip.
Public propertyVisible
Visible property of this graphic.
Public propertyWeight
Returns/sets the weight of this feature. The weight of a feature determines its relative importance compared to other features of the model. The weight defaults to 1.0.
(Inherited from ICogModelFeature.)
Top
Remarks

A shape model is an object that holds the weight and polarity information that should be applied to a shape (and its subfeatures, if any) when it is used as a synthetic model.

See Also