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)
const 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, bool fillEntireClipAsTiles)
void drawLine (const Line< float > &line)
void drawVerticalLine (int x, float top, float bottom)
void drawHorizontalLine (int x, float top, float bottom)
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

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 
)
LowLevelGraphicsPostScriptRenderer::~LowLevelGraphicsPostScriptRenderer (  )

Member Function Documentation

bool LowLevelGraphicsPostScriptRenderer::isVectorDevice (  ) const [virtual]

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.

void LowLevelGraphicsPostScriptRenderer::addTransform ( const AffineTransform transform ) [virtual]
float LowLevelGraphicsPostScriptRenderer::getScaleFactor (  ) [virtual]
bool LowLevelGraphicsPostScriptRenderer::clipToRectangle ( const Rectangle< int > &  r ) [virtual]
bool LowLevelGraphicsPostScriptRenderer::clipToRectangleList ( const RectangleList clipRegion ) [virtual]
void LowLevelGraphicsPostScriptRenderer::excludeClipRectangle ( 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::saveState (  ) [virtual]
void LowLevelGraphicsPostScriptRenderer::restoreState (  ) [virtual]
void LowLevelGraphicsPostScriptRenderer::beginTransparencyLayer ( float  opacity ) [virtual]
void LowLevelGraphicsPostScriptRenderer::endTransparencyLayer (  ) [virtual]
bool LowLevelGraphicsPostScriptRenderer::clipRegionIntersects ( const Rectangle< int > &  r ) [virtual]
const Rectangle<int> LowLevelGraphicsPostScriptRenderer::getClipBounds (  ) const [virtual]
bool LowLevelGraphicsPostScriptRenderer::isClipEmpty (  ) const [virtual]
void LowLevelGraphicsPostScriptRenderer::setFill ( const FillType fillType ) [virtual]
void LowLevelGraphicsPostScriptRenderer::setOpacity ( float  opacity ) [virtual]
void LowLevelGraphicsPostScriptRenderer::setInterpolationQuality ( Graphics::ResamplingQuality  quality ) [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,
bool  fillEntireClipAsTiles 
) [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]
Font LowLevelGraphicsPostScriptRenderer::getFont (  ) [virtual]
void LowLevelGraphicsPostScriptRenderer::setFont ( const Font newFont ) [virtual]
void LowLevelGraphicsPostScriptRenderer::drawGlyph ( int  glyphNumber,
const AffineTransform transform 
) [virtual]
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]

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines