Click or drag to resize

IMcLineProfilesSamplesAsMcLines Property

A McLines holding lines with vertices that mark the sampled segments of the ancestor McLines or McRegions features.

Namespace:  MediaCy.IQL.Features
Assembly:  MediaCy.IQL.Features (in MediaCy.IQL.Features.dll) Version: 10.0.6912.0
Syntax
VB
ReadOnly Property SamplesAsMcLines As McLines
	Get

Property Value

Type: McLines
Remarks
The SamplesAsMcLines McLines object will have one line feature for each ancestor feature. These line features will be polylines (McFeatures.Type mcftPolyline), where verticies mark both the start and midpoint of each sampled segment and the final vertex is the ending point of the sampled ancestor line feature. The sampled ancestor line feature index will be the same as the feature index of the corresponding SamplesAsMcLines feature index. All property accesses reference the same McLines object, only its contents change. The contents are updated only when this property is accessed, not when the ProfileValues become stale or when they are computed.
Examples
VB
'Show sampled line(s) with 2 samples per line, on top of the LineFeatures
Dim mySL As McLines
With ThisApplication.ActiveImage.LineFeatures.Profiles
.SampleMode = mclpsmFixedNumberOfSamples
.SampleNumbersOrLengths = 2
Set mySL = .SamplesAsMcLines
End With
Dim myGOT As McGraphObj
Set myGOT = mySL.DisplayOverlays.MasterGraphOverlay.Template("McGraphObjPoly", mcgtsAutoCreateTemplate)
myGOT.BorderColor = &HFFFF00 'template color is cyan
mySL.DisplayOverlays.AutoDisplayTemplateID(True) = mcgtStandardAutoDisplay
'make sure the new one is on top
ActiveWindow.View.SetNotifyPriority mySL.DisplayOverlays.MasterGraphOverlay, -1
'show the selection handles
mySL.DisplayOverlays.MasterGraphOverlay.SelectTool "McGraphToolSelect", ""
mySL.DisplayOverlays.MasterGraphOverlay.Select , True 'Select all
See Also