Description

A read/write property indicating which to which viewer groups this viewer belongs.

Property type

A mcViewGroupEnum enumeration.  

Syntax

object.ViewerGroup [= value]

The ViewerGroup Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McView.
valueA mcViewGroupEnum enumeration, as described in settings.

Settings

The settings for value are:

ConstantValueDescription
 vgNoViewerGroup0

Not part of any viewer group

 vgMDIImageWindow1

A standard MDI Image Window

 vgSmallPreviewWindow2

A small preview window

 vgLargePreviewWindow4

A large preview window

 vgImageMcDisplay8

A McDisplay operator that is an immediate child of an McImage

 vgGraphOverlayMcDisplay16

A McDisplay operator that is an immediate child of an McGraphOverlay

Remarks

Viewer groups are used to indicate what kinds of actions should be taken with a particular view. Several standard viewer groups are predefined, but clients can assign their own. User defined viewer group values should consist of a single bit starting at hex 0x100.

Viewer groups are used to determine which overlay(s) display on which view(s). A McGraphOverlay instance holds an McViews collection (the McGraphOverlay.Views property) which will check to see if it should automatically add an McViewer instance when a SetImageToDisplay call is made to display an image that is an “ancestor” of the McViews operator (which is itself a child of the McGraphOverlay). The McView is added to the McViews collection if and only if the McViews.ViewerGroupsToTrack property has a non-zero bit-by-bit intersection with the McView.ViewerGroup property. This bitwise comparison supports membership in and tracking of multiple viewer groups.

Notes

On image creation, the standard Image.Views property has its ViewerGroupsToTrack property set to all 32 bits of the 32 groups available. This means that by default the Image.Views collection will track the addition of any IMcBasicView with any ViewerGroup value.