Interface class for graphics context objects, used internally by the Graphics class. More...
Inherited by LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
Public Member Functions | |
| virtual | ~LowLevelGraphicsContext () |
| virtual bool | isVectorDevice () const =0 |
| Returns true if this device is vector-based, e.g. | |
| virtual void | setOrigin (int x, int y)=0 |
| Moves the origin to a new position. | |
| virtual bool | clipToRectangle (const Rectangle< int > &r)=0 |
| virtual bool | clipToRectangleList (const RectangleList &clipRegion)=0 |
| virtual void | excludeClipRectangle (const Rectangle< int > &r)=0 |
| virtual void | clipToPath (const Path &path, const AffineTransform &transform)=0 |
| virtual void | clipToImageAlpha (const Image &sourceImage, const Rectangle< int > &srcClip, const AffineTransform &transform)=0 |
| virtual bool | clipRegionIntersects (const Rectangle< int > &r)=0 |
| virtual const Rectangle< int > | getClipBounds () const =0 |
| virtual bool | isClipEmpty () const =0 |
| virtual void | saveState ()=0 |
| virtual void | restoreState ()=0 |
| virtual void | setFill (const FillType &fillType)=0 |
| virtual void | setOpacity (float newOpacity)=0 |
| virtual void | setInterpolationQuality (Graphics::ResamplingQuality quality)=0 |
| virtual void | fillRect (const Rectangle< int > &r, bool replaceExistingContents)=0 |
| virtual void | fillPath (const Path &path, const AffineTransform &transform)=0 |
| virtual void | drawImage (const Image &sourceImage, const Rectangle< int > &srcClip, const AffineTransform &transform, bool fillEntireClipAsTiles)=0 |
| virtual void | drawLine (double x1, double y1, double x2, double y2)=0 |
| virtual void | drawVerticalLine (int x, double top, double bottom)=0 |
| virtual void | drawHorizontalLine (int y, double left, double right)=0 |
| virtual void | setFont (const Font &newFont)=0 |
| virtual const Font | getFont ()=0 |
| virtual void | drawGlyph (int glyphNumber, const AffineTransform &transform)=0 |
Protected Member Functions | |
| LowLevelGraphicsContext () | |
Interface class for graphics context objects, used internally by the Graphics class.
Users are not supposed to create instances of this class directly - do your drawing via the Graphics object instead.
It's a base class for different types of graphics context, that may perform software-based or OS-accelerated rendering.
E.g. the LowLevelGraphicsSoftwareRenderer renders onto an image in memory, but other subclasses could render directly to a windows HDC, a Quartz context, or an OpenGL context.
| LowLevelGraphicsContext::LowLevelGraphicsContext | ( | ) | [protected] |
| virtual LowLevelGraphicsContext::~LowLevelGraphicsContext | ( | ) | [virtual] |
| virtual bool LowLevelGraphicsContext::isVectorDevice | ( | ) | const [pure virtual] |
Returns true if this device is vector-based, e.g.
a printer.
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::setOrigin | ( | int | x, | |
| int | y | |||
| ) | [pure 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).
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual bool LowLevelGraphicsContext::clipToRectangle | ( | const Rectangle< int > & | r | ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual bool LowLevelGraphicsContext::clipToRectangleList | ( | const RectangleList & | clipRegion | ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::excludeClipRectangle | ( | const Rectangle< int > & | r | ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::clipToPath | ( | const Path & | path, | |
| const AffineTransform & | transform | |||
| ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::clipToImageAlpha | ( | const Image & | sourceImage, | |
| const Rectangle< int > & | srcClip, | |||
| const AffineTransform & | transform | |||
| ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual bool LowLevelGraphicsContext::clipRegionIntersects | ( | const Rectangle< int > & | r | ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual const Rectangle<int> LowLevelGraphicsContext::getClipBounds | ( | ) | const [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual bool LowLevelGraphicsContext::isClipEmpty | ( | ) | const [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::saveState | ( | ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::restoreState | ( | ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::setFill | ( | const FillType & | fillType | ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::setOpacity | ( | float | newOpacity | ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::setInterpolationQuality | ( | Graphics::ResamplingQuality | quality | ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::fillRect | ( | const Rectangle< int > & | r, | |
| bool | replaceExistingContents | |||
| ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::fillPath | ( | const Path & | path, | |
| const AffineTransform & | transform | |||
| ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::drawImage | ( | const Image & | sourceImage, | |
| const Rectangle< int > & | srcClip, | |||
| const AffineTransform & | transform, | |||
| bool | fillEntireClipAsTiles | |||
| ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::drawLine | ( | double | x1, | |
| double | y1, | |||
| double | x2, | |||
| double | y2 | |||
| ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::drawVerticalLine | ( | int | x, | |
| double | top, | |||
| double | bottom | |||
| ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::drawHorizontalLine | ( | int | y, | |
| double | left, | |||
| double | right | |||
| ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::setFont | ( | const Font & | newFont | ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual const Font LowLevelGraphicsContext::getFont | ( | ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
| virtual void LowLevelGraphicsContext::drawGlyph | ( | int | glyphNumber, | |
| const AffineTransform & | transform | |||
| ) | [pure virtual] |
Implemented in LowLevelGraphicsPostScriptRenderer, and LowLevelGraphicsSoftwareRenderer.
1.6.3