Click or drag to resize

mcSeedRegionToolCommandFlags Enumeration

Legal values for the McSeedRegionTool's IMcGraphToolServer.CommandFlags property.

Namespace:  MediaCy.IQL.Display.Overlays
Assembly:  MediaCy.IQL.Display.Overlays (in MediaCy.IQL.Display.Overlays.dll) Version: 10.0.6912.0
Syntax
VB
Public Enumeration mcSeedRegionToolCommandFlags
Members
  Member nameValueDescription
mcsrtcfNoFlags0No flags
mcsrtcfPushResultMcRegionsOntoUndoStack1Action flag: Thecurrent state of the results McRegions (see mcsrtcfSetResultMcRegions) and other tool state information is pushed onto the backspace key Undo stack and the Redo stack is cleared. You would use this action flag before making some change (e.g., removing all features) to the results McRegions that you wanted to be undoable in the same way that changes made with the tool are undoable.
mcsrtcfDoUndo2Action flag: Onelevel of Undo is performed, if possible. This is equivalent to pressing the Backspace key. The mcsrtcfCanUndo CommandFlags bit will be set if an undo is possible.
mcsrtcfDoRedo3Action flag: Onelevel of Redo is performed, if possible. This is equivalent to pressing the Shift-backspace key. The mcsrtcfCanRedo CommandFlags bit will be set if a redo is possible.
mcsrtcfCaptureUndoState4Action flag: Thecurrent state of the tool is captured for the next push onto the undo stack.
mcsrtcfSetResultMcRegions16Action flag: CommandData iscast to an McRegions instance and used as the McRegions into which the results will be appended as a new sub-region feature. If this McRegions is not set, then by default it is the Aoi of the ancestor image of the McGraphOverlay on which the McSeedRegionTool has been invoked (via a call to McGraphOverlay.SelectTool). Once the CommandData is accessed, it is cleared.
mcsrtcfGetResultMcRegions32Action flag: Get, intoCommandData, the McRegions instance that is used as the McRegions into which the results will be appended as a new sub-region feature. Unless the mcsrtcfSetResultMcRegions action flag has been used to change it, this McRegions instance will be the Aoi of the ancestor image of the McGraphOverlay on which the McSeedRegionTool has been invoked (via a call to McGraphOverlay.SelectTool). Once the CommandData is gotten to retrieve the result, it is cleared.
mcsrtcfSetMinimumSize48Action flag: The integralvalue in CommandData is used to establish the minimum size, in square pixels, for retaining created regions. By default the minimum size value is zero, so no size test is applied. If the shift key is pressed so that the seeded region is subtracted from existing regions, then the test is applied only to regions that were touched by the subtracting, seeded region. Once the CommandData is accessed, it is cleared.
mcsrtcfGetMinimumSize64Action flag: CommandData isfilled with the minimum size, in square pixels, for retaining created regions (see mcsrtcfSetMinimumSize). Once the CommandData is gotten to retrieve the result, it is cleared.
mcsrtcfGetWorkingMcRegions256Action flag: Get, intoCommandData, the unnamed temporary McRegions instance that is used to get the seeded region (via a call to McRegions.Threshold.Execute with the SeedPoint argument set). The working McRegions operator will be a child of the the ancestor image of the McGraphOverlay on which the McSeedRegionTool has been invoked (via a call to McGraphOverlay.SelectTool). Once the CommandData is gotten to retrieve the result, it is cleared.
mcsrtcfRepeatLastClick257Action flag: Repeat the lastclick operation with current WorkingRegions properties. In particular, the current WorkingRegions.Threshold.IntensityRange settings will usually be different that when the click was done.
mcsrtcfGetLastClickLocation258Action flag: On exit CommandDatais set to the image location of the last click as length-2 array of Single. If no such click has been done, then the returned X,Y value will be -1,-1. The value is cleared once it is accessed.
mcsrtcfSimulateClick259Action flag: On entry,CommandData may be empty or set to an X,Y value giving the image location of the simulated click. If CommandData is empty, then the last click location is used and in any case on exit CommandData will be cleared to Empty and the last click location will be set to that used for the simulated click.
mcsrtcfSetUndoStack260Action flag: On entry CommandDatashould be set to an instance McUndoStack or empty. If given an instance of McUndoStack, then irrespective of the state of the mcsrtcfUseImageUndoStack flag, this McUndoStack instance will be used when pushing undo/redo states.
mcsrtcfFlushUndoStack261Action flag: The currently usedundo stack is flushed, emptying it of all undo/redo states associated with this tool..
mcsrtcfCanRepeat2048Read-Only static flag: Ifset, the mcsrtcfRepeatLastClick action flag is available. This bit cannot be set by assignment, but assigning a clear state to this bit will prevent mcsrtcfRepeatLastClick action until the next click is made.
mcsrtcfKeepOneRegionOnly4096Static flag: If set, anyexisting features in the Results McRegions that intersect the seeded region are replaced by the new, seeded, region. If the shift key is pressed, so that the seeded region is subtracted from existing regions, and multiple regions result from the subtraction, then only the largest remaining of these regions is kept.
mcsrtcfForceMergeMode8192Static flag: If set, the toolis kept in merge mode, whether the Ctrl key is pressed or not. Pressing Shift-click still subtracts the seeded region.
mcsrtcfForceSubtractMode16384Static flag: If set, the toolis kept in subtract mode, whether the Shift key is pressed or not. Pressing Ctrl-click still merges the seeded region.
mcsrtcfUseImageUndoStack32768Static flag: If set,undo/redo information is placed on the UndoStack of the McImage ancestor of the results McRegions (see mcsrtcfSetResultMcRegions), and is left there when the tool is shut down. If clear (the default), undo/redo information is kept on an internal UndoStack. Changing the state of this flag will clear any undo stack that has been set by the mcsrtcfSetUndoStack action flag.
mcsrtcfMergeMode1048576Read-Only static flag: Ifset, the tool is in merge mode, either because the Ctrl key is pressed or the mcsrtcfForceMergeMode flag is set. This bit cannot be set by assignment.
mcsrtcfSubtracMode2097152Read-Only static flag: Ifset, the tool is in subtract mode, either because the Shift key is pressed or the mcsrtcfForceSubtractMode flag is set. This bit cannot be set by assignment.
mcsrtcfCanUndo4194304Read-Only static flag: Ifset, a backspace Undo operation is available. This bit cannot be set by assignment.
mcsrtcfCanRedo8388608Read-Only static flag: Ifset, a Shift-backspace Redo operation is available. This bit cannot be set by assignment.
mcsrtcfModeStateFlagsMask3145728
mcsrtcfReadOnlyFlagsMask15728640Read-only static flags are masked by this.
See Also