Class PixelStackPaperType3D

  • All Implemented Interfaces:
    PaperType, PaperType3D

    public class PixelStackPaperType3D
    extends RgbPaperType3D
    Bitmapped 3d PaperType which can render any combination of coloured, opaque and transparent pixels.

    At each XY position it stores a list of pixels which have been plotted there. Each element in the list contains Z-coordinate, RGB and alpha values, packed efficiently. When all the glyphs have been painted, the list at each XY position is examined, the pixels in that list are sorted by Z-coordinate, and compositing takes place from front to back.

    Since:
    14 Feb 2013
    Author:
    Mark Taylor
    • Constructor Detail

      • PixelStackPaperType3D

        public PixelStackPaperType3D​(Compositor compositor,
                                     float minAlpha)
        Constructor.
        Parameters:
        compositor - compositing strategy for combining transparent pixels
        minAlpha - the smallest alpha value that can be represented for glyphs