JUCE
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...

+ Inheritance diagram for LowLevelGraphicsPostScriptRenderer:

Classes

struct  SavedState
 

Public Member Functions

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

Protected Member Functions

void writeClip ()
 
void writeColour (Colour colour)
 
void writePath (const Path &) const
 
void writeXY (float x, float y) const
 
void writeTransform (const AffineTransform &) const
 
void writeImage (const Image &, 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
overridevirtual

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

a printer.

Implements LowLevelGraphicsContext.

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.

void LowLevelGraphicsPostScriptRenderer::addTransform ( const AffineTransform )
overridevirtual
float LowLevelGraphicsPostScriptRenderer::getPhysicalPixelScaleFactor ( )
overridevirtual
bool LowLevelGraphicsPostScriptRenderer::clipToRectangle ( const Rectangle< int > &  )
overridevirtual
bool LowLevelGraphicsPostScriptRenderer::clipToRectangleList ( const RectangleList< int > &  )
overridevirtual
void LowLevelGraphicsPostScriptRenderer::excludeClipRectangle ( const Rectangle< int > &  )
overridevirtual
void LowLevelGraphicsPostScriptRenderer::clipToPath ( const Path ,
const AffineTransform  
)
overridevirtual
void LowLevelGraphicsPostScriptRenderer::clipToImageAlpha ( const Image ,
const AffineTransform  
)
overridevirtual
void LowLevelGraphicsPostScriptRenderer::saveState ( )
overridevirtual
void LowLevelGraphicsPostScriptRenderer::restoreState ( )
overridevirtual
void LowLevelGraphicsPostScriptRenderer::beginTransparencyLayer ( float  )
overridevirtual
void LowLevelGraphicsPostScriptRenderer::endTransparencyLayer ( )
overridevirtual
bool LowLevelGraphicsPostScriptRenderer::clipRegionIntersects ( const Rectangle< int > &  )
overridevirtual
Rectangle<int> LowLevelGraphicsPostScriptRenderer::getClipBounds ( ) const
overridevirtual
bool LowLevelGraphicsPostScriptRenderer::isClipEmpty ( ) const
overridevirtual
void LowLevelGraphicsPostScriptRenderer::setFill ( const FillType )
overridevirtual
void LowLevelGraphicsPostScriptRenderer::setOpacity ( float  )
overridevirtual
void LowLevelGraphicsPostScriptRenderer::setInterpolationQuality ( Graphics::ResamplingQuality  )
overridevirtual
void LowLevelGraphicsPostScriptRenderer::fillRect ( const Rectangle< int > &  ,
bool  replaceExistingContents 
)
overridevirtual
void LowLevelGraphicsPostScriptRenderer::fillRect ( const Rectangle< float > &  )
overridevirtual
void LowLevelGraphicsPostScriptRenderer::fillRectList ( const RectangleList< float > &  )
overridevirtual
void LowLevelGraphicsPostScriptRenderer::fillPath ( const Path ,
const AffineTransform  
)
overridevirtual
void LowLevelGraphicsPostScriptRenderer::drawImage ( const Image ,
const AffineTransform  
)
overridevirtual
void LowLevelGraphicsPostScriptRenderer::drawLine ( const Line< float > &  )
overridevirtual
const Font& LowLevelGraphicsPostScriptRenderer::getFont ( )
overridevirtual
void LowLevelGraphicsPostScriptRenderer::setFont ( const Font )
overridevirtual
void LowLevelGraphicsPostScriptRenderer::drawGlyph ( int  glyphNumber,
const AffineTransform  
)
overridevirtual
void LowLevelGraphicsPostScriptRenderer::writeClip ( )
protected
void LowLevelGraphicsPostScriptRenderer::writeColour ( Colour  colour)
protected
void LowLevelGraphicsPostScriptRenderer::writePath ( const Path ) const
protected
void LowLevelGraphicsPostScriptRenderer::writeXY ( float  x,
float  y 
) const
protected
void LowLevelGraphicsPostScriptRenderer::writeTransform ( const AffineTransform ) const
protected
void LowLevelGraphicsPostScriptRenderer::writeImage ( const Image ,
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: