JUCE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
LowLevelGraphicsPostScriptRenderer Class Reference

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 FontgetFont ()
 
void setFont (const Font &newFont)
 
void drawGlyph (int glyphNumber, const AffineTransform &transform)
 
- Public Member Functions inherited from LowLevelGraphicsContext
virtual ~LowLevelGraphicsContext ()
 
virtual float getTargetDeviceScaleFactor ()
 
virtual bool drawTextLayout (const AttributedString &, const Rectangle< float > &)
 

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
 
- Protected Member Functions inherited from LowLevelGraphicsContext
 LowLevelGraphicsContext ()
 

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
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 
)
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
const 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

Member Data Documentation

OutputStream& LowLevelGraphicsPostScriptRenderer::out
protected
int LowLevelGraphicsPostScriptRenderer::totalWidth
protected
int LowLevelGraphicsPostScriptRenderer::totalHeight
protected
bool LowLevelGraphicsPostScriptRenderer::needToClip
protected
Colour LowLevelGraphicsPostScriptRenderer::lastColour
protected
OwnedArray<SavedState> LowLevelGraphicsPostScriptRenderer::stateStack
protected

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