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

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

Inherits LowLevelGraphicsContext.

Public Member Functions

 LowLevelGraphicsSoftwareRenderer (const Image &imageToRenderOnto)
 
 LowLevelGraphicsSoftwareRenderer (const Image &imageToRenderOnto, const Point< int > &origin, const RectangleList &initialClip)
 
 ~LowLevelGraphicsSoftwareRenderer ()
 
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 &)
 
float getScaleFactor ()
 
bool clipToRectangle (const Rectangle< int > &)
 
bool clipToRectangleList (const RectangleList &)
 
void excludeClipRectangle (const Rectangle< int > &)
 
void clipToPath (const Path &, const AffineTransform &)
 
void clipToImageAlpha (const Image &, const AffineTransform &)
 
bool clipRegionIntersects (const Rectangle< int > &)
 
Rectangle< int > getClipBounds () const
 
bool isClipEmpty () const
 
void saveState ()
 
void restoreState ()
 
void beginTransparencyLayer (float opacity)
 
void endTransparencyLayer ()
 
void setFill (const FillType &)
 
void setOpacity (float opacity)
 
void setInterpolationQuality (Graphics::ResamplingQuality)
 
void fillRect (const Rectangle< int > &, bool replaceExistingContents)
 
void fillPath (const Path &, const AffineTransform &)
 
void drawImage (const Image &, const AffineTransform &)
 
void drawLine (const Line< float > &)
 
void drawVerticalLine (int x, float top, float bottom)
 
void drawHorizontalLine (int x, float top, float bottom)
 
void setFont (const Font &)
 
const FontgetFont ()
 
void drawGlyph (int glyphNumber, float x, float y)
 
void drawGlyph (int glyphNumber, const AffineTransform &)
 
const ImagegetImage () const noexcept
 
const
RenderingHelpers::TranslationOrTransform & 
getTransform () const noexcept
 
- Public Member Functions inherited from LowLevelGraphicsContext
virtual ~LowLevelGraphicsContext ()
 
virtual float getTargetDeviceScaleFactor ()
 
virtual bool drawTextLayout (const AttributedString &, const Rectangle< float > &)
 

Protected Attributes

RenderingHelpers::SavedStateStack
< RenderingHelpers::SoftwareRendererSavedState > 
savedState
 

Additional Inherited Members

- Protected Member Functions inherited from LowLevelGraphicsContext
 LowLevelGraphicsContext ()
 

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::LowLevelGraphicsSoftwareRenderer ( const Image imageToRenderOnto)
LowLevelGraphicsSoftwareRenderer::LowLevelGraphicsSoftwareRenderer ( const Image imageToRenderOnto,
const Point< int > &  origin,
const RectangleList initialClip 
)
LowLevelGraphicsSoftwareRenderer::~LowLevelGraphicsSoftwareRenderer ( )

Member Function Documentation

bool LowLevelGraphicsSoftwareRenderer::isVectorDevice ( ) const
virtual

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

a printer.

Implements LowLevelGraphicsContext.

void LowLevelGraphicsSoftwareRenderer::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 LowLevelGraphicsSoftwareRenderer::addTransform ( const AffineTransform )
virtual
float LowLevelGraphicsSoftwareRenderer::getScaleFactor ( )
virtual
bool LowLevelGraphicsSoftwareRenderer::clipToRectangle ( const Rectangle< int > &  )
virtual
bool LowLevelGraphicsSoftwareRenderer::clipToRectangleList ( const RectangleList )
virtual
void LowLevelGraphicsSoftwareRenderer::excludeClipRectangle ( const Rectangle< int > &  )
virtual
void LowLevelGraphicsSoftwareRenderer::clipToPath ( const Path ,
const AffineTransform  
)
virtual
void LowLevelGraphicsSoftwareRenderer::clipToImageAlpha ( const Image ,
const AffineTransform  
)
virtual
bool LowLevelGraphicsSoftwareRenderer::clipRegionIntersects ( const Rectangle< int > &  )
virtual
Rectangle<int> LowLevelGraphicsSoftwareRenderer::getClipBounds ( ) const
virtual
bool LowLevelGraphicsSoftwareRenderer::isClipEmpty ( ) const
virtual
void LowLevelGraphicsSoftwareRenderer::saveState ( )
virtual
void LowLevelGraphicsSoftwareRenderer::restoreState ( )
virtual
void LowLevelGraphicsSoftwareRenderer::beginTransparencyLayer ( float  opacity)
virtual
void LowLevelGraphicsSoftwareRenderer::endTransparencyLayer ( )
virtual
void LowLevelGraphicsSoftwareRenderer::setFill ( const FillType )
virtual
void LowLevelGraphicsSoftwareRenderer::setOpacity ( float  opacity)
virtual
void LowLevelGraphicsSoftwareRenderer::setInterpolationQuality ( Graphics::ResamplingQuality  )
virtual
void LowLevelGraphicsSoftwareRenderer::fillRect ( const Rectangle< int > &  ,
bool  replaceExistingContents 
)
virtual
void LowLevelGraphicsSoftwareRenderer::fillPath ( const Path ,
const AffineTransform  
)
virtual
void LowLevelGraphicsSoftwareRenderer::drawImage ( const Image ,
const AffineTransform  
)
virtual
void LowLevelGraphicsSoftwareRenderer::drawLine ( const Line< float > &  )
virtual
void LowLevelGraphicsSoftwareRenderer::drawVerticalLine ( int  x,
float  top,
float  bottom 
)
virtual
void LowLevelGraphicsSoftwareRenderer::drawHorizontalLine ( int  x,
float  top,
float  bottom 
)
virtual
void LowLevelGraphicsSoftwareRenderer::setFont ( const Font )
virtual
const Font& LowLevelGraphicsSoftwareRenderer::getFont ( )
virtual
void LowLevelGraphicsSoftwareRenderer::drawGlyph ( int  glyphNumber,
float  x,
float  y 
)
void LowLevelGraphicsSoftwareRenderer::drawGlyph ( int  glyphNumber,
const AffineTransform  
)
virtual
const Image& LowLevelGraphicsSoftwareRenderer::getImage ( ) const
noexcept
const RenderingHelpers::TranslationOrTransform& LowLevelGraphicsSoftwareRenderer::getTransform ( ) const
noexcept

Member Data Documentation

RenderingHelpers::SavedStateStack<RenderingHelpers::SoftwareRendererSavedState> LowLevelGraphicsSoftwareRenderer::savedState
protected

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