Description

An event fired when one or more measurements in the collection goes “stale”

Syntax

Private Sub object_MeasuresGoneStale(Measures, MeasureObjectsArray, DependencyFlags)

The MeasuresGoneStale Event syntax has these parts:

PartDescription
objectA McMeasures object.
MeasuresA McMeasures object.

The McMeasures object firing the event.

MeasureObjectsArrayA Variant value.

An array of the McMeasure objects that have just gone stale. This array may be of length only one; use the VB UBound method to find the largest index.

DependencyFlagsA mcMeasurementDependencyFlags enumeration, as described in settings.

Flags, or'ed together, indicating which dependency or dependencies changed so as to cause the measurement(s) to go stale.

Settings

The settings for DependencyFlags are:

ConstantValueDescription
 mcmdfNoDependencies0

no dependencies

 mcmdfImageLuminance1

depends on ancestor image luminance data

 mcmdfFeatureData2

depends on its ancestor McFeatures data

 mcmdfIntensityCalib4

depends on the intensity calibration

 mcmdfSpatialCalib8

depends on the spatial calibration

 mcmdfAoi16

depends on ancestor image AOI

 mcmdfFeaturesStatus32

depends on ancestor McFeatures.FeaturesStatusFlags or McFeatures.Selected properties.

 mcmdfUserData64

depends on the UserData property

 mcmdfImageMultiChannel128

measurements with this dependency are legal only on an ancestor image having multiple channels

 mcmdfImage3Color256

measurements with this dependency are legal only on an ancestor image having 3 channels. This dependency implies mcmdfImageMultiChannel

 mcmdfOther32768

some other dependency(s), so always ask

 mcmdfAssumedDependencies95

These are the dependencies that are assumed if a user measurement does not report anything when a call is made to McUserMeasure.UserAttributes(mcmaidDependencies) or in response to the McUserMeasureCallback.GetAttributes(mcmaidDependencies) event. The assumed flags are mcmdfImageLuminance, mcmdfFeatureData, mcmdfIntensityCalib, mcmdfSpatialCalib, mcmdfAoi and mcmdfUserData.

Remarks

Sent whenever one or more measurements in the collection goes “stale”. A measurement is “stale” when its McMeasure.Value property needs to be recomputed; for each of the objects in teh MeasureObjectsArray the McMeasure.IsValueStale property will have gone True just before this event is fired.