Set default parameters for the <xref linkend="RegisteredClass-SkeletonNodeSelectionDisplay"/>, which displays the currently selected &skel; &nodes; in the graphics window. See <xref linkend="RegisteredClass-SkeletonNodeSelectionDisplay"/> for a discussion of the parameters. This command may be put in the &oof2rc; file to set defaults for all &oof2; sessions. </para>""")) nodeSelectDisplay = registeredclass.Registration( 'Selected Nodes', display.DisplayMethod, SkeletonNodeSelectionDisplay, params=nodeselparams, ordering=2.2, layerordering=display.PointLike(3), whoclasses=('Skeleton', ), tip="Display the currently selected nodes.", discussion=xmlmenudump.loadFile( 'DISCUSSIONS/engine/reg/nodeselectdisplay.xml')) def defaultNodeSelectDisplay(): return nodeSelectDisplay(color=defaultNodeSelColor, size=defaultNodeSelSize) ghostgfxwindow.PredefinedLayer('Skeleton', '<topmost>', defaultNodeSelectDisplay)
Set default parameters for <link linkend="RegisteredClass-MeshInfoDisplay"><classname>MeshInfoDisplays</classname></link>. See <xref linkend="RegisteredClass-MeshInfoDisplay"/> for the details. This command may be placed in the &oof2rc; file to set a default value for all &oof2; sessions. </para>""")) meshInfoDisplay = registeredclass.Registration( 'Info', display.DisplayMethod, MeshInfoDisplay, params=meshinfoparams, ordering=4.0, layerordering=display.PointLike(100), whoclasses=('Mesh', ), tip= "Set display parameters for the decorations used by the Mesh Info toolbox.", discussion=xmlmenudump.loadFile( 'DISCUSSIONS/engine/reg/meshinfodisplay.xml')) def defaultMeshInfoDisplay(): return meshInfoDisplay(query_color=defaultQueryColor, peek_color=defaultPeekColor, node_size=defaultNodeSize, line_width=defaultLineWidth) ghostgfxwindow.PredefinedLayer('Mesh', '<topmost>', defaultMeshInfoDisplay)
discussion="""<para> Set default parameters for <link linkend="RegisteredClass-PixelInfoDisplay"><classname>PixelInfoDisplays</classname></link>. See <xref linkend="RegisteredClass-PixelInfoDisplay"/> for the details. This command may be placed in the &oof2rc; file to set a default value for all &oof2; sessions. </para>""")) pixelInfoDisplay = registeredclass.Registration( 'Pixel Info', display.DisplayMethod, PixelInfoDisplay, params=pixelinfoparams, ordering=2.70, layerordering=display.PointLike(0.5), whoclasses=('Image', 'Microstructure', 'Top Bitmap'), tip="Display a pixel that is being queried.", discussion=xmlmenudump.loadFile( 'DISCUSSIONS/common/reg/pixelinfodisplay.xml')) ######################## # In order to have a single layer that displays pixel info for *both* # Images and Microstructures, we create a new WhoClass that contains # only a single WhoProxy object. The proxy resolves to the topmost # Image or Microstructure. We can then create a predefined layer for # the WhoClass. from ooflib.common.IO import whoville