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

A lowest-common-denominator implementation of LowLevelGraphicsContext that does all its rendering in memory. More...

#include <juce_LowLevelGraphicsSoftwareRenderer.h>

Inheritance diagram for LowLevelGraphicsSoftwareRenderer:
Collaboration diagram for LowLevelGraphicsSoftwareRenderer:

Public Member Functions

 LowLevelGraphicsSoftwareRenderer (const Image &imageToRenderOnto)
 Creates a context to render into an image. More...
 
 LowLevelGraphicsSoftwareRenderer (const Image &imageToRenderOnto, Point< int > origin, const RectangleList< int > &initialClip)
 Creates a context to render into a clipped subsection of an image. More...
 
 ~LowLevelGraphicsSoftwareRenderer ()
 Destructor. More...
 
void addTransform (const AffineTransform &t) override
 
void beginTransparencyLayer (float opacity) override
 
bool clipRegionIntersects (const Rectangle< int > &r) override
 
void clipToImageAlpha (const Image &im, const AffineTransform &t) override
 
void clipToPath (const Path &path, const AffineTransform &t) override
 
bool clipToRectangle (const Rectangle< int > &r) override
 
bool clipToRectangleList (const RectangleList< int > &r) override
 
void drawGlyph (int glyphNumber, const AffineTransform &t) override
 
void drawImage (const Image &im, const AffineTransform &t) override
 
void drawLine (const Line< float > &line) override
 
virtual bool drawTextLayout (const AttributedString &, const Rectangle< float > &)
 
void endTransparencyLayer () override
 
void excludeClipRectangle (const Rectangle< int > &r) override
 
void fillPath (const Path &path, const AffineTransform &t) override
 
void fillRect (const Rectangle< int > &r, bool replace) override
 
void fillRect (const Rectangle< float > &r) override
 
void fillRectList (const RectangleList< float > &list) 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 &fillType) override
 
void setFont (const Font &newFont) override
 
void setInterpolationQuality (Graphics::ResamplingQuality quality) override
 
void setOpacity (float newOpacity) override
 
void setOrigin (Point< int > o) override
 Moves the origin to a new position. More...
 

Protected Attributes

RenderingHelpers::SavedStateStack< SavedStateType > stack
 

Detailed Description

A lowest-common-denominator implementation of LowLevelGraphicsContext that does all its rendering in memory.

User code is not supposed to create instances of this class directly - do all your rendering via the Graphics class instead.

Constructor & Destructor Documentation

◆ LowLevelGraphicsSoftwareRenderer() [1/2]

LowLevelGraphicsSoftwareRenderer::LowLevelGraphicsSoftwareRenderer ( const Image imageToRenderOnto)

Creates a context to render into an image.

◆ LowLevelGraphicsSoftwareRenderer() [2/2]

LowLevelGraphicsSoftwareRenderer::LowLevelGraphicsSoftwareRenderer ( const Image imageToRenderOnto,
Point< int origin,
const RectangleList< int > &  initialClip 
)

Creates a context to render into a clipped subsection of an image.

◆ ~LowLevelGraphicsSoftwareRenderer()

LowLevelGraphicsSoftwareRenderer::~LowLevelGraphicsSoftwareRenderer ( )

Destructor.

Member Function Documentation

◆ addTransform()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::addTransform ( const AffineTransform t)
inlineoverridevirtualinherited

◆ beginTransparencyLayer()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::beginTransparencyLayer ( float  opacity)
inlineoverridevirtualinherited

◆ clipRegionIntersects()

template<class SavedStateType>
bool RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::clipRegionIntersects ( const Rectangle< int > &  r)
inlineoverridevirtualinherited

◆ clipToImageAlpha()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::clipToImageAlpha ( const Image im,
const AffineTransform t 
)
inlineoverridevirtualinherited

◆ clipToPath()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::clipToPath ( const Path path,
const AffineTransform t 
)
inlineoverridevirtualinherited

◆ clipToRectangle()

template<class SavedStateType>
bool RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::clipToRectangle ( const Rectangle< int > &  r)
inlineoverridevirtualinherited

◆ clipToRectangleList()

template<class SavedStateType>
bool RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::clipToRectangleList ( const RectangleList< int > &  r)
inlineoverridevirtualinherited

◆ drawGlyph()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::drawGlyph ( int  glyphNumber,
const AffineTransform t 
)
inlineoverridevirtualinherited

◆ drawImage()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::drawImage ( const Image im,
const AffineTransform t 
)
inlineoverridevirtualinherited

◆ drawLine()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::drawLine ( const Line< float > &  line)
inlineoverridevirtualinherited

◆ drawTextLayout()

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

◆ endTransparencyLayer()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::endTransparencyLayer ( )
inlineoverridevirtualinherited

◆ excludeClipRectangle()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::excludeClipRectangle ( const Rectangle< int > &  r)
inlineoverridevirtualinherited

◆ fillPath()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::fillPath ( const Path path,
const AffineTransform t 
)
inlineoverridevirtualinherited

◆ fillRect() [1/2]

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::fillRect ( const Rectangle< int > &  r,
bool  replace 
)
inlineoverridevirtualinherited

◆ fillRect() [2/2]

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::fillRect ( const Rectangle< float > &  r)
inlineoverridevirtualinherited

◆ fillRectList()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::fillRectList ( const RectangleList< float > &  list)
inlineoverridevirtualinherited

◆ getClipBounds()

template<class SavedStateType>
Rectangle<int> RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::getClipBounds ( ) const
inlineoverridevirtualinherited

◆ getFont()

template<class SavedStateType>
const Font& RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::getFont ( )
inlineoverridevirtualinherited

◆ getPhysicalPixelScaleFactor()

template<class SavedStateType>
float RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::getPhysicalPixelScaleFactor ( )
inlineoverridevirtualinherited

◆ isClipEmpty()

template<class SavedStateType>
bool RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::isClipEmpty ( ) const
inlineoverridevirtualinherited

◆ isVectorDevice()

template<class SavedStateType>
bool RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::isVectorDevice ( ) const
inlineoverridevirtualinherited

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

a printer.

Implements LowLevelGraphicsContext.

◆ restoreState()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::restoreState ( )
inlineoverridevirtualinherited

◆ saveState()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::saveState ( )
inlineoverridevirtualinherited

◆ setFill()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::setFill ( const FillType fillType)
inlineoverridevirtualinherited

◆ setFont()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::setFont ( const Font newFont)
inlineoverridevirtualinherited

◆ setInterpolationQuality()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::setInterpolationQuality ( Graphics::ResamplingQuality  quality)
inlineoverridevirtualinherited

◆ setOpacity()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::setOpacity ( float  newOpacity)
inlineoverridevirtualinherited

◆ setOrigin()

template<class SavedStateType>
void RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::setOrigin ( Point< int )
inlineoverridevirtualinherited

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.

Member Data Documentation

◆ stack

template<class SavedStateType>
RenderingHelpers::SavedStateStack<SavedStateType> RenderingHelpers::StackBasedLowLevelGraphicsContext< SavedStateType >::stack
protectedinherited

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