VCF::BasicFill Class Reference
This class is a basic implementation of the Fill interface. More...
#include <vcf/GraphicsKit/BasicFill.h>
Inheritance diagram for VCF::BasicFill:

Public Member Functions | |
| BasicFill () | |
| virtual | ~BasicFill () |
| virtual void | setContext (GraphicsContext *context) |
| sets the context for the fill. | |
| virtual void | render (Path *path) |
| renders the fill using the current path. | |
| Color | getColor () |
| Gets the color for the fill. | |
| void | setColor (Color *color) |
| Sets the color for the fill. | |
| bool | allowAntiAlias () |
| returns whether or not to allow antialiasing when rendering the fill | |
| void | setAllowAntiAlias (bool val) |
| toggles whether or not to perform anti-aliasing when rendering the fill. | |
Protected Attributes | |
| double | opacity_ |
| Color | color_ |
| GraphicsContext * | context_ |
| bool | antiAlias_ |
Detailed Description
This class is a basic implementation of the Fill interface.It is suitable for rendering a solid color fill with optional alpha and anti-aliasing support. If anti-aliasing is turned on then an attempt will be made to render the fill using AGG, assuming a render buffer for the GraphicsContext is available. Alpha support is only used if the rendering is performed by AGG, otherwise it is ignored.
- See also:
- Fill
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
returns whether or not to allow antialiasing when rendering the fill
|
|
|
Gets the color for the fill.
|
|
|
renders the fill using the current path. The fill can retrieve the points for the path by calling either Path::getPoints() or Path::flattenPoints(). Implements VCF::Fill. |
|
|
toggles whether or not to perform anti-aliasing when rendering the fill.
|
|
|
Sets the color for the fill.
|
|
|
sets the context for the fill. The GraphicsContext will call this when the GraphicsContext::setCurrrentFill() method is called. Implements VCF::Fill. |
Member Data Documentation
|
|
|
|
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file:
- vcf/GraphicsKit/BasicFill.h
