uk.ac.starlink.ttools.plot2.paper
Class RgbPaperType3D.RgbPaper3D

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.paper.RgbPaperType.RgbPaper
      extended by uk.ac.starlink.ttools.plot2.paper.RgbPaperType3D.RgbPaper3D
All Implemented Interfaces:
Paper
Enclosing class:
RgbPaperType3D

protected abstract static class RgbPaperType3D.RgbPaper3D
extends RgbPaperType.RgbPaper

Paper for use by this type.


Constructor Summary
RgbPaperType3D.RgbPaper3D(PaperType paperType, Rectangle bounds)
          Constructor.
 
Method Summary
protected abstract  void placePixels(int xoff, int yoff, double dz, Pixer pixer, Color color)
          Paints the pixels of a pixel iterator in a given colour at a given 3d position.
 
Methods inherited from class uk.ac.starlink.ttools.plot2.paper.RgbPaperType.RgbPaper
flush, getBounds, getPaperType, getPixelIndex, getRgbImage, placeDecal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RgbPaperType3D.RgbPaper3D

public RgbPaperType3D.RgbPaper3D(PaperType paperType,
                                 Rectangle bounds)
Constructor.

Parameters:
paperType - paper type instance creating this paper
bounds - plot bounds
Method Detail

placePixels

protected abstract void placePixels(int xoff,
                                    int yoff,
                                    double dz,
                                    Pixer pixer,
                                    Color color)
Paints the pixels of a pixel iterator in a given colour at a given 3d position. Subclasses implement this method to perform the actual pixel compositing. The supplied pixer will already have been clipped, so implementations don't need to worry about checking the positions are within the bounds of this paper. Implementations can (and usually should) use the RgbPaperType.RgbPaper.getPixelIndex(int, int, uk.ac.starlink.ttools.plot2.Pixer) method to address pixels of the RgbImage buffer.

Parameters:
xoff - X graphics offset
yoff - Y graphics offset
dz - depth coordinate, lower value means closer to viewer
pixer - clipped pixel iterator, not null
color - painting colour


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.