Coverage for python/lsst/afw/display/virtualDevice.py : 87%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
# # LSST Data Management System # Copyright 2008, 2009, 2010, 2015 LSST Corporation. # # This product includes software developed by the # LSST Project (http://www.lsst.org/). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the LSST License Statement and # the GNU General Public License along with this program. If not, # see <http://www.lsstcorp.org/LegalNotices/>. #
## # @file # @brief A dummy image display
"""! Initialise the display @param display The display object that we're providing the implementation for @param verbose be chatty? """
"""!Close the display, cleaning up any allocated resources"""
"""!Enable or disable buffering of writes to the display @param enable True or False, as appropriate """
"""!Draw symbol a symbol at (c, r) @param symb The desired symbol. See dot() for details @param c (x) column position @param r (y) row position @param size Size of symbol, in pixels @param ctype The desired colour, either e.g. afw.display.RED or a colour name known to X11 @param args Extra arguments @param kwargs Extra keyword arguments """ (self.frame, symb, c, r, size, ctype, args, kwargs))
"""!Draw line defined by the list points @param points A list of 0-indexed positions [(x, y), (x, y), ...] @param ctype The desired colour, either e.g. afw.display.RED or a colour name known to X11 """ (self.frame, points, ctype))
"""!Erase all glyphs drawn on display """
"""!Flush any I/O buffers """
print("setCallback %s -> %s" % (what, func))
"""Return an event generated by a keypress or mouse click """
"""Return the mask transparency for a display """ if self.verbose: print("virtual[%s]._getMaskTransparency()" % self.frame)
"""Display an image and maybe a mask overlay on a display @param image afwImage.Image to display @param mask afwImage.Mask to display @param wcs A Wcs to associate with data @param title Name to display with the data """ (self.frame, "Image" if image else None, "Mask" if mask else None, "Wcs" if wcs else None, title))
"""Set the desired colourmap
@param the name of a colourmap (e.g. "gray") or a backend-specific object """
"""Set the transparency of a maskplane @param transparency The desired transparency, in the range [0, 100] @param maskplane The maskplane to set (None: all) """ (self.frame, transparency, maskplane))
"""Set the scaling from DN to displayed pixels @param algorithm Scaling algorithm (e.g. linear) @param min The minimum value of the stretch (or "zscale" or "minmax") @param max The maximum value of the stretch @param unit Units for min and max (e.g. Percent, Absolute, Sigma) @param *args Optional arguments @param **kwargs Optional keyword arguments """ min, max, unit, args, kwargs))
"""Show the requested display """
"""Pan to (colc, rowc) @param c Desired column (x) position @param r Desired row (y) position """
"""Set the zoom @param zoomfac Zoom factor to use """ |