JUCE  v5.1.1-3-g1a0b28c73
JUCE API
LowLevelGraphicsPostScriptRenderer Class Reference

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

#include <juce_LowLevelGraphicsPostScriptRenderer.h>

Inheritance diagram for LowLevelGraphicsPostScriptRenderer:
Collaboration diagram for LowLevelGraphicsPostScriptRenderer:

Classes

struct  SavedState
 

Public Member Functions

 LowLevelGraphicsPostScriptRenderer (OutputStream &resultingPostScript, const String &documentTitle, int totalWidth, int totalHeight)
 
 ~LowLevelGraphicsPostScriptRenderer ()
 
void addTransform (const AffineTransform &) override
 
void beginTransparencyLayer (float) override
 
bool clipRegionIntersects (const Rectangle< int > &) override
 
void clipToImageAlpha (const Image &, const AffineTransform &) override
 
void clipToPath (const Path &, const AffineTransform &) override
 
bool clipToRectangle (const Rectangle< int > &) override
 
bool clipToRectangleList (const RectangleList< int > &) override
 
void drawGlyph (int glyphNumber, const AffineTransform &) override
 
void drawImage (const Image &, const AffineTransform &) override
 
void drawLine (const Line< float > &) override
 
virtual bool drawTextLayout (const AttributedString &, const Rectangle< float > &)
 
void endTransparencyLayer () override
 
void excludeClipRectangle (const Rectangle< int > &) override
 
void fillPath (const Path &, const AffineTransform &) override
 
void fillRect (const Rectangle< int > &, bool replaceExistingContents) override
 
void fillRect (const Rectangle< float > &) override
 
void fillRectList (const RectangleList< float > &) override
 
Rectangle< intgetClipBounds () const override
 
const FontgetFont () override
 
float getPhysicalPixelScaleFactor () override
 
bool isClipEmpty () const override
 
bool isVectorDevice () const override
 Returns true if this device is vector-based, e.g. More...
 
void restoreState () override
 
void saveState () override
 
void setFill (const FillType &) override
 
void setFont (const Font &) override
 
void setInterpolationQuality (Graphics::ResamplingQuality) override
 
void setOpacity (float) override
 
void setOrigin (Point< int >) override
 Moves the origin to a new position. More...
 

Protected Member Functions

void writeClip ()
 
void writeColour (Colour colour)
 
void writeImage (const Image &, int sx, int sy, int maxW, int maxH) const
 
void writePath (const Path &) const
 
void writeTransform (const AffineTransform &) const
 
void writeXY (float x, float y) const
 

Protected Attributes

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

Detailed Description

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

Constructor & Destructor Documentation

◆ LowLevelGraphicsPostScriptRenderer()

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

◆ ~LowLevelGraphicsPostScriptRenderer()

LowLevelGraphicsPostScriptRenderer::~LowLevelGraphicsPostScriptRenderer ( )

Member Function Documentation

◆ addTransform()

void LowLevelGraphicsPostScriptRenderer::addTransform ( const AffineTransform )
overridevirtual

◆ beginTransparencyLayer()

void LowLevelGraphicsPostScriptRenderer::beginTransparencyLayer ( float  )
overridevirtual

◆ clipRegionIntersects()

bool LowLevelGraphicsPostScriptRenderer::clipRegionIntersects ( const Rectangle< int > &  )
overridevirtual

◆ clipToImageAlpha()

void LowLevelGraphicsPostScriptRenderer::clipToImageAlpha ( const Image ,
const AffineTransform  
)
overridevirtual

◆ clipToPath()

void LowLevelGraphicsPostScriptRenderer::clipToPath ( const Path ,
const AffineTransform  
)
overridevirtual

◆ clipToRectangle()

bool LowLevelGraphicsPostScriptRenderer::clipToRectangle ( const Rectangle< int > &  )
overridevirtual

◆ clipToRectangleList()

bool LowLevelGraphicsPostScriptRenderer::clipToRectangleList ( const RectangleList< int > &  )
overridevirtual

◆ drawGlyph()

void LowLevelGraphicsPostScriptRenderer::drawGlyph ( int  glyphNumber,
const AffineTransform  
)
overridevirtual

◆ drawImage()

void LowLevelGraphicsPostScriptRenderer::drawImage ( const Image ,
const AffineTransform  
)
overridevirtual

◆ drawLine()

void LowLevelGraphicsPostScriptRenderer::drawLine ( const Line< float > &  )
overridevirtual

◆ drawTextLayout()

virtual bool LowLevelGraphicsContext::drawTextLayout ( const AttributedString ,
const Rectangle< float > &   
)
inlinevirtualinherited

◆ endTransparencyLayer()

void LowLevelGraphicsPostScriptRenderer::endTransparencyLayer ( )
overridevirtual

◆ excludeClipRectangle()

void LowLevelGraphicsPostScriptRenderer::excludeClipRectangle ( const Rectangle< int > &  )
overridevirtual

◆ fillPath()

void LowLevelGraphicsPostScriptRenderer::fillPath ( const Path ,
const AffineTransform  
)
overridevirtual

◆ fillRect() [1/2]

void LowLevelGraphicsPostScriptRenderer::fillRect ( const Rectangle< int > &  ,
bool  replaceExistingContents 
)
overridevirtual

◆ fillRect() [2/2]

void LowLevelGraphicsPostScriptRenderer::fillRect ( const Rectangle< float > &  )
overridevirtual

◆ fillRectList()

void LowLevelGraphicsPostScriptRenderer::fillRectList ( const RectangleList< float > &  )
overridevirtual

◆ getClipBounds()

Rectangle<int> LowLevelGraphicsPostScriptRenderer::getClipBounds ( ) const
overridevirtual

◆ getFont()

const Font& LowLevelGraphicsPostScriptRenderer::getFont ( )
overridevirtual

◆ getPhysicalPixelScaleFactor()

float LowLevelGraphicsPostScriptRenderer::getPhysicalPixelScaleFactor ( )
overridevirtual

◆ isClipEmpty()

bool LowLevelGraphicsPostScriptRenderer::isClipEmpty ( ) const
overridevirtual

◆ isVectorDevice()

bool LowLevelGraphicsPostScriptRenderer::isVectorDevice ( ) const
overridevirtual

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

a printer.

Implements LowLevelGraphicsContext.

◆ restoreState()

void LowLevelGraphicsPostScriptRenderer::restoreState ( )
overridevirtual

◆ saveState()

void LowLevelGraphicsPostScriptRenderer::saveState ( )
overridevirtual

◆ setFill()

void LowLevelGraphicsPostScriptRenderer::setFill ( const FillType )
overridevirtual

◆ setFont()

void LowLevelGraphicsPostScriptRenderer::setFont ( const Font )
overridevirtual

◆ setInterpolationQuality()

void LowLevelGraphicsPostScriptRenderer::setInterpolationQuality ( Graphics::ResamplingQuality  )
overridevirtual

◆ setOpacity()

void LowLevelGraphicsPostScriptRenderer::setOpacity ( float  )
overridevirtual

◆ setOrigin()

void LowLevelGraphicsPostScriptRenderer::setOrigin ( Point< int )
overridevirtual

Moves the origin to a new position.

The coordinates are relative to the current origin, and indicate the new position of (0, 0).

Implements LowLevelGraphicsContext.

◆ writeClip()

void LowLevelGraphicsPostScriptRenderer::writeClip ( )
protected

◆ writeColour()

void LowLevelGraphicsPostScriptRenderer::writeColour ( Colour  colour)
protected

◆ writeImage()

void LowLevelGraphicsPostScriptRenderer::writeImage ( const Image ,
int  sx,
int  sy,
int  maxW,
int  maxH 
) const
protected

◆ writePath()

void LowLevelGraphicsPostScriptRenderer::writePath ( const Path ) const
protected

◆ writeTransform()

void LowLevelGraphicsPostScriptRenderer::writeTransform ( const AffineTransform ) const
protected

◆ writeXY()

void LowLevelGraphicsPostScriptRenderer::writeXY ( float  x,
float  y 
) const
protected

Member Data Documentation

◆ lastColour

Colour LowLevelGraphicsPostScriptRenderer::lastColour
protected

◆ needToClip

bool LowLevelGraphicsPostScriptRenderer::needToClip
protected

◆ out

OutputStream& LowLevelGraphicsPostScriptRenderer::out
protected

◆ stateStack

OwnedArray<SavedState> LowLevelGraphicsPostScriptRenderer::stateStack
protected

◆ totalHeight

int LowLevelGraphicsPostScriptRenderer::totalHeight
protected

◆ totalWidth

int LowLevelGraphicsPostScriptRenderer::totalWidth
protected

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