def defaultImageDisplay(): # The "filter" parameter to the BitmapDisplayMethod registration # may have an value that doesn't make sense for the new graphics # window, so the default display explicitly selects the AllVoxels # filter. (For example, the registration might have last been # used to display only a particular voxel group, and that group # might not be defined in the Microstructure being displayed now.) return bitmapdisplay.bitmapDisplay(filter=voxelfilter.AllVoxels())
params=[ color.ColorParameter( 'no_material', color.black, tip="Color to use if no material has been assigned to a pixel"), color.ColorParameter( 'no_color', color.blue, tip="Color to use if the assigned material has no assigned color"), parameter.FloatRangeParameter("opacity", bitmapdisplay.opacityRange, bitmapdisplay.defaultImageOpacity, tip="Opacity of material colors."), parameter.RegisteredParameter("filter", voxelfilter.VoxelFilterPtr, voxelfilter.AllVoxels(), tip="Voxels to include in the display.") ], whoclasses=('Microstructure', ), tip="Display the color of the Material assigned to each pixel.", discussion=xmlmenudump.loadFile( 'DISCUSSIONS/engine/reg/microstructuredisplay.xml')) ############################ if config.dimension() == 2: ## TODO MER: Update for new display layer methods and 3D. class OrientationDisplay(MSMaterialDisplay): def __init__(self, colorscheme,