An implementation of LowLevelGraphicsContext that turns the drawing operations into a PostScript document. More...
Inherits LowLevelGraphicsContext.
Classes | |
| struct | SavedState |
Public Member Functions | |
| LowLevelGraphicsPostScriptRenderer (OutputStream &resultingPostScript, const String &documentTitle, int totalWidth, int totalHeight) | |
| ~LowLevelGraphicsPostScriptRenderer () | |
| bool | isVectorDevice () const |
| Returns true if this device is vector-based, e.g. | |
| void | setOrigin (int x, int y) |
| Moves the origin to a new position. | |
| void | addTransform (const AffineTransform &transform) |
| float | getScaleFactor () |
| bool | clipToRectangle (const Rectangle< int > &r) |
| bool | clipToRectangleList (const RectangleList &clipRegion) |
| void | excludeClipRectangle (const Rectangle< int > &r) |
| void | clipToPath (const Path &path, const AffineTransform &transform) |
| void | clipToImageAlpha (const Image &sourceImage, const AffineTransform &transform) |
| void | saveState () |
| void | restoreState () |
| void | beginTransparencyLayer (float opacity) |
| void | endTransparencyLayer () |
| bool | clipRegionIntersects (const Rectangle< int > &r) |
| Rectangle< int > | getClipBounds () const |
| bool | isClipEmpty () const |
| void | setFill (const FillType &fillType) |
| void | setOpacity (float opacity) |
| void | setInterpolationQuality (Graphics::ResamplingQuality quality) |
| void | fillRect (const Rectangle< int > &r, bool replaceExistingContents) |
| void | fillPath (const Path &path, const AffineTransform &transform) |
| void | drawImage (const Image &sourceImage, const AffineTransform &transform) |
| void | drawLine (const Line< float > &line) |
| void | drawVerticalLine (int x, float top, float bottom) |
| void | drawHorizontalLine (int x, float top, float bottom) |
| const Font & | getFont () |
| void | setFont (const Font &newFont) |
| void | drawGlyph (int glyphNumber, const AffineTransform &transform) |
Protected Member Functions | |
| void | writeClip () |
| void | writeColour (const Colour &colour) |
| void | writePath (const Path &path) const |
| void | writeXY (float x, float y) const |
| void | writeTransform (const AffineTransform &trans) const |
| void | writeImage (const Image &im, int sx, int sy, int maxW, int maxH) const |
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LowLevelGraphicsPostScriptRenderer) | |
Protected Attributes | |
| OutputStream & | out |
| int | totalWidth |
| int | totalHeight |
| bool | needToClip |
| Colour | lastColour |
| OwnedArray< SavedState > | stateStack |
An implementation of LowLevelGraphicsContext that turns the drawing operations into a PostScript document.
| LowLevelGraphicsPostScriptRenderer::LowLevelGraphicsPostScriptRenderer | ( | OutputStream & | resultingPostScript, |
| const String & | documentTitle, | ||
| int | totalWidth, | ||
| int | totalHeight | ||
| ) |
| bool LowLevelGraphicsPostScriptRenderer::isVectorDevice | ( | ) | const [virtual] |
| void LowLevelGraphicsPostScriptRenderer::setOrigin | ( | int | x, |
| int | y | ||
| ) | [virtual] |
Moves the origin to a new position.
The co-ords are relative to the current origin, and indicate the new position of (0, 0).
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::addTransform | ( | const AffineTransform & | transform | ) | [virtual] |
Implements LowLevelGraphicsContext.
| float LowLevelGraphicsPostScriptRenderer::getScaleFactor | ( | ) | [virtual] |
Implements LowLevelGraphicsContext.
| bool LowLevelGraphicsPostScriptRenderer::clipToRectangle | ( | const Rectangle< int > & | r | ) | [virtual] |
Implements LowLevelGraphicsContext.
| bool LowLevelGraphicsPostScriptRenderer::clipToRectangleList | ( | const RectangleList & | clipRegion | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::excludeClipRectangle | ( | const Rectangle< int > & | r | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::clipToPath | ( | const Path & | path, |
| const AffineTransform & | transform | ||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::clipToImageAlpha | ( | const Image & | sourceImage, |
| const AffineTransform & | transform | ||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::saveState | ( | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::restoreState | ( | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::beginTransparencyLayer | ( | float | opacity | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::endTransparencyLayer | ( | ) | [virtual] |
Implements LowLevelGraphicsContext.
| bool LowLevelGraphicsPostScriptRenderer::clipRegionIntersects | ( | const Rectangle< int > & | r | ) | [virtual] |
Implements LowLevelGraphicsContext.
| Rectangle<int> LowLevelGraphicsPostScriptRenderer::getClipBounds | ( | ) | const [virtual] |
Implements LowLevelGraphicsContext.
| bool LowLevelGraphicsPostScriptRenderer::isClipEmpty | ( | ) | const [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::setFill | ( | const FillType & | fillType | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::setOpacity | ( | float | opacity | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::setInterpolationQuality | ( | Graphics::ResamplingQuality | quality | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::fillRect | ( | const Rectangle< int > & | r, |
| bool | replaceExistingContents | ||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::fillPath | ( | const Path & | path, |
| const AffineTransform & | transform | ||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::drawImage | ( | const Image & | sourceImage, |
| const AffineTransform & | transform | ||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::drawLine | ( | const Line< float > & | line | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::drawVerticalLine | ( | int | x, |
| float | top, | ||
| float | bottom | ||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::drawHorizontalLine | ( | int | x, |
| float | top, | ||
| float | bottom | ||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| const Font& LowLevelGraphicsPostScriptRenderer::getFont | ( | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::setFont | ( | const Font & | newFont | ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::drawGlyph | ( | int | glyphNumber, |
| const AffineTransform & | transform | ||
| ) | [virtual] |
Implements LowLevelGraphicsContext.
| void LowLevelGraphicsPostScriptRenderer::writeClip | ( | ) | [protected] |
| void LowLevelGraphicsPostScriptRenderer::writeColour | ( | const Colour & | colour | ) | [protected] |
| void LowLevelGraphicsPostScriptRenderer::writePath | ( | const Path & | path | ) | const [protected] |
| void LowLevelGraphicsPostScriptRenderer::writeXY | ( | float | x, |
| float | y | ||
| ) | const [protected] |
| void LowLevelGraphicsPostScriptRenderer::writeTransform | ( | const AffineTransform & | trans | ) | const [protected] |
| void LowLevelGraphicsPostScriptRenderer::writeImage | ( | const Image & | im, |
| int | sx, | ||
| int | sy, | ||
| int | maxW, | ||
| int | maxH | ||
| ) | const [protected] |
| LowLevelGraphicsPostScriptRenderer::JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR | ( | LowLevelGraphicsPostScriptRenderer | ) | [protected] |
OutputStream& LowLevelGraphicsPostScriptRenderer::out [protected] |
int LowLevelGraphicsPostScriptRenderer::totalWidth [protected] |
int LowLevelGraphicsPostScriptRenderer::totalHeight [protected] |
bool LowLevelGraphicsPostScriptRenderer::needToClip [protected] |
Colour LowLevelGraphicsPostScriptRenderer::lastColour [protected] |