JUCE
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Classes | Public Member Functions | Protected Member Functions | Protected Attributes
LowLevelGraphicsPostScriptRenderer Class Reference

An implementation of LowLevelGraphicsContext that turns the drawing operations into a PostScript document. More...

Inherits LowLevelGraphicsContext.

List of all members.

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 FontgetFont ()
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

OutputStreamout
int totalWidth
int totalHeight
bool needToClip
Colour lastColour
OwnedArray< SavedStatestateStack

Detailed Description

An implementation of LowLevelGraphicsContext that turns the drawing operations into a PostScript document.


Constructor & Destructor Documentation

LowLevelGraphicsPostScriptRenderer::LowLevelGraphicsPostScriptRenderer ( OutputStream resultingPostScript,
const String documentTitle,
int  totalWidth,
int  totalHeight 
)

Member Function Documentation

Returns true if this device is vector-based, e.g.

a printer.

Implements LowLevelGraphicsContext.

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.

bool LowLevelGraphicsPostScriptRenderer::clipToRectangle ( const Rectangle< int > &  r) [virtual]
void LowLevelGraphicsPostScriptRenderer::clipToPath ( const Path path,
const AffineTransform transform 
) [virtual]
void LowLevelGraphicsPostScriptRenderer::clipToImageAlpha ( const Image sourceImage,
const AffineTransform transform 
) [virtual]
void LowLevelGraphicsPostScriptRenderer::setFill ( const FillType fillType) [virtual]
void LowLevelGraphicsPostScriptRenderer::setOpacity ( float  opacity) [virtual]
void LowLevelGraphicsPostScriptRenderer::fillRect ( const Rectangle< int > &  r,
bool  replaceExistingContents 
) [virtual]
void LowLevelGraphicsPostScriptRenderer::fillPath ( const Path path,
const AffineTransform transform 
) [virtual]
void LowLevelGraphicsPostScriptRenderer::drawImage ( const Image sourceImage,
const AffineTransform transform 
) [virtual]
void LowLevelGraphicsPostScriptRenderer::drawLine ( const Line< float > &  line) [virtual]
void LowLevelGraphicsPostScriptRenderer::drawVerticalLine ( int  x,
float  top,
float  bottom 
) [virtual]
void LowLevelGraphicsPostScriptRenderer::drawHorizontalLine ( int  x,
float  top,
float  bottom 
) [virtual]
void LowLevelGraphicsPostScriptRenderer::setFont ( const Font newFont) [virtual]
void LowLevelGraphicsPostScriptRenderer::drawGlyph ( int  glyphNumber,
const AffineTransform transform 
) [virtual]
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]

Member Data Documentation


The documentation for this class was generated from the following file: