Class RgbPaperType3D
java.lang.Object
uk.ac.starlink.ttools.plot2.paper.RgbPaperType
uk.ac.starlink.ttools.plot2.paper.RgbPaperType3D
- All Implemented Interfaces:
PaperType, PaperType3D
- Direct Known Subclasses:
PixelStackPaperType3D, ZBufferPaperType3D
Abstract RgbPaperType subclass for 3-dimensional plots.
- Since:
- 14 Feb 2013
- Author:
- Mark Taylor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classPaper for use by this type.Nested classes/interfaces inherited from class RgbPaperType
RgbPaperType.RgbPaper -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRgbPaperType3D(String name, boolean upLayer) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected RgbPaperType.RgbPapercreatePaper(Rectangle bounds) Creates a paper object for given bounds.protected abstract RgbPaperType3D.RgbPaper3DcreatePaper3D(Rectangle bounds) Creates a 3D paper object for given bounds.voidplaceGlyph(Paper paper, double dx, double dy, double dz, Glyph glyph, Color color) Places a glyph at a 3-d position in the space.Methods inherited from class RgbPaperType
createDataIcon, isBitmap, placeDecal, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface PaperType
createDataIcon, isBitmap, placeDecal
-
Constructor Details
-
RgbPaperType3D
Constructor.- Parameters:
name- paper type nameupLayer- true to render layers in ascending order, false to do them in descending order
-
-
Method Details
-
placeGlyph
Description copied from interface:PaperType3DPlaces a glyph at a 3-d position in the space.- Specified by:
placeGlyphin interfacePaperType3D- Parameters:
paper- graphics destination specific to this PaperTypedx- graphics X coordinatedy- graphics Y coordinatedz- Z-buffer coordinate; lower values are closer to the viewerglyph- graphics shapecolor- colour for glyph
-
createPaper
Description copied from class:RgbPaperTypeCreates a paper object for given bounds.- Specified by:
createPaperin classRgbPaperType- Parameters:
bounds- plot bounds- Returns:
- new paper instance
-
createPaper3D
Creates a 3D paper object for given bounds.- Parameters:
bounds- plot bounds- Returns:
- new 3d paper instance
-