LowLevelGraphicsSoftwareRenderer Class Reference
A lowest-common-denominator implementation of LowLevelGraphicsContext that does all its rendering in memory.
More...
Inherits LowLevelGraphicsContext.
List of all members.
Public Member Functions |
| | LowLevelGraphicsSoftwareRenderer (Image &imageToRenderOn) |
| | ~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.
|
| 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 Rectangle< int > &srcClip, const AffineTransform &transform) |
| bool | clipRegionIntersects (const Rectangle< int > &r) |
| const Rectangle< int > | getClipBounds () const |
| bool | isClipEmpty () const |
| void | saveState () |
| void | restoreState () |
| 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 Rectangle< int > &srcClip, const AffineTransform &transform, bool fillEntireClipAsTiles) |
| void | drawLine (double x1, double y1, double x2, double y2) |
| void | drawVerticalLine (int x, double top, double bottom) |
| void | drawHorizontalLine (int x, double top, double bottom) |
| void | setFont (const Font &newFont) |
| const Font | getFont () |
| void | drawGlyph (int glyphNumber, float x, float y) |
| void | drawGlyph (int glyphNumber, const AffineTransform &transform) |
Protected Member Functions |
| | LowLevelGraphicsSoftwareRenderer (const LowLevelGraphicsSoftwareRenderer &other) |
| LowLevelGraphicsSoftwareRenderer & | operator= (const LowLevelGraphicsSoftwareRenderer &) |
Protected Attributes |
| Image & | image |
| ScopedPointer< LLGCSavedState > | currentState |
| OwnedArray< LLGCSavedState > | stateStack |
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 |
( |
Image & |
imageToRenderOn |
) |
|
| LowLevelGraphicsSoftwareRenderer::~LowLevelGraphicsSoftwareRenderer |
( |
|
) |
|
Member Function Documentation
| bool LowLevelGraphicsSoftwareRenderer::isVectorDevice |
( |
|
) |
const [virtual] |
| 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.
| bool LowLevelGraphicsSoftwareRenderer::clipToRectangle |
( |
const Rectangle< int > & |
r |
) |
[virtual] |
| bool LowLevelGraphicsSoftwareRenderer::clipToRectangleList |
( |
const RectangleList & |
clipRegion |
) |
[virtual] |
| void LowLevelGraphicsSoftwareRenderer::excludeClipRectangle |
( |
const Rectangle< int > & |
r |
) |
[virtual] |
| void LowLevelGraphicsSoftwareRenderer::clipToPath |
( |
const Path & |
path, |
|
|
const AffineTransform & |
transform | |
|
) |
| | [virtual] |
| void LowLevelGraphicsSoftwareRenderer::clipToImageAlpha |
( |
const Image & |
sourceImage, |
|
|
const Rectangle< int > & |
srcClip, |
|
|
const AffineTransform & |
transform | |
|
) |
| | [virtual] |
| bool LowLevelGraphicsSoftwareRenderer::clipRegionIntersects |
( |
const Rectangle< int > & |
r |
) |
[virtual] |
| const Rectangle<int> LowLevelGraphicsSoftwareRenderer::getClipBounds |
( |
|
) |
const [virtual] |
| bool LowLevelGraphicsSoftwareRenderer::isClipEmpty |
( |
|
) |
const [virtual] |
| void LowLevelGraphicsSoftwareRenderer::saveState |
( |
|
) |
[virtual] |
| void LowLevelGraphicsSoftwareRenderer::restoreState |
( |
|
) |
[virtual] |
| void LowLevelGraphicsSoftwareRenderer::setFill |
( |
const FillType & |
fillType |
) |
[virtual] |
| void LowLevelGraphicsSoftwareRenderer::setOpacity |
( |
float |
opacity |
) |
[virtual] |
| void LowLevelGraphicsSoftwareRenderer::fillRect |
( |
const Rectangle< int > & |
r, |
|
|
bool |
replaceExistingContents | |
|
) |
| | [virtual] |
| void LowLevelGraphicsSoftwareRenderer::fillPath |
( |
const Path & |
path, |
|
|
const AffineTransform & |
transform | |
|
) |
| | [virtual] |
| void LowLevelGraphicsSoftwareRenderer::drawImage |
( |
const Image & |
sourceImage, |
|
|
const Rectangle< int > & |
srcClip, |
|
|
const AffineTransform & |
transform, |
|
|
bool |
fillEntireClipAsTiles | |
|
) |
| | [virtual] |
| void LowLevelGraphicsSoftwareRenderer::drawLine |
( |
double |
x1, |
|
|
double |
y1, |
|
|
double |
x2, |
|
|
double |
y2 | |
|
) |
| | [virtual] |
| void LowLevelGraphicsSoftwareRenderer::drawVerticalLine |
( |
int |
x, |
|
|
double |
top, |
|
|
double |
bottom | |
|
) |
| | [virtual] |
| void LowLevelGraphicsSoftwareRenderer::drawHorizontalLine |
( |
int |
x, |
|
|
double |
top, |
|
|
double |
bottom | |
|
) |
| | [virtual] |
| void LowLevelGraphicsSoftwareRenderer::setFont |
( |
const Font & |
newFont |
) |
[virtual] |
| const Font LowLevelGraphicsSoftwareRenderer::getFont |
( |
|
) |
[virtual] |
| void LowLevelGraphicsSoftwareRenderer::drawGlyph |
( |
int |
glyphNumber, |
|
|
float |
x, |
|
|
float |
y | |
|
) |
| | |
| void LowLevelGraphicsSoftwareRenderer::drawGlyph |
( |
int |
glyphNumber, |
|
|
const AffineTransform & |
transform | |
|
) |
| | [virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: