VCF::GradientFill Class Reference
This is the base class for gradient fills.
More...
#include <GradientFills.h>
Inheritance diagram for VCF::GradientFill:
List of all members.
Detailed Description
This is the base class for gradient fills.
Gradient fills use the AGG gradient span generators to render the gradient.
The main class function is to produce a color profile, that is then used by the agg gradient functions to determine what color to use at any given pixel.
The interface for the class functions identically to that of the Photoshop Gradient Editor. You have a series of 2 or more colors and a series of 1 or more "mid points" where the number of mid points is equal to 1 less than the number of colors. Each color is associated with a location value that indicates it's position within the range of 0.0 to 1.0. Location values need to be unique per color and the list of colors is sorted by it's location. Each mid point has a value ranging 0.0 to 1.0. Mid point values do not need to be unique.
Member Typedef Documentation
Constructor & Destructor Documentation
| VCF::GradientFill::GradientFill |
( |
|
) |
[inline] |
|
| virtual VCF::GradientFill::~GradientFill |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
| GradientColor& VCF::GradientFill::addColor |
( |
const Color & |
color, |
|
|
double |
location, |
|
|
double |
midPoint = 0.5 |
|
) |
[inline] |
|
| void VCF::GradientFill::buildColorProfile |
( |
|
) |
[inline, protected] |
|
| double VCF::GradientFill::getAlpha |
( |
|
) |
const [inline] |
|
| GradientColor VCF::GradientFill::getColor |
( |
const size_t |
index |
) |
const [inline] |
|
| size_t VCF::GradientFill::getColorCount |
( |
|
) |
const [inline] |
|
| double VCF::GradientFill::getColorLocation |
( |
const size_t |
index |
) |
const [inline] |
|
| Color VCF::GradientFill::getColorValue |
( |
const size_t |
index |
) |
const [inline] |
|
| Matrix2D& VCF::GradientFill::getGradientMatrix |
( |
|
) |
[inline] |
|
| Matrix2D VCF::GradientFill::getGradientMatrix |
( |
|
) |
const [inline] |
|
| size_t VCF::GradientFill::getMaxColorProfileSize |
( |
|
) |
const [inline] |
|
| double VCF::GradientFill::getMidPoint |
( |
const size_t & |
index |
) |
const [inline] |
|
| size_t VCF::GradientFill::getMidPointCount |
( |
|
) |
const [inline] |
|
| void VCF::GradientFill::initColors |
( |
|
) |
[inline, protected] |
|
| virtual void VCF::GradientFill::render |
( |
Path * |
path |
) |
[inline, virtual] |
|
| virtual void VCF::GradientFill::renderGradient |
( |
agg::rendering_buffer & |
renderingBuffer, |
|
|
agg::rasterizer_scanline_aa<> & |
rasterizer |
|
) |
[protected, pure virtual] |
|
| void VCF::GradientFill::resetColors |
( |
|
) |
[inline] |
|
| void VCF::GradientFill::setAlpha |
( |
const double & |
val |
) |
[inline] |
|
| void VCF::GradientFill::setColor |
( |
const size_t & |
index, |
|
|
const GradientColor & |
val |
|
) |
[inline] |
|
| void VCF::GradientFill::setColorLocation |
( |
const size_t & |
index, |
|
|
const double & |
val |
|
) |
[inline] |
|
| void VCF::GradientFill::setColorValue |
( |
const size_t & |
index, |
|
|
const Color & |
val |
|
) |
[inline] |
|
| virtual void VCF::GradientFill::setContext |
( |
GraphicsContext * |
context |
) |
[inline, virtual] |
|
|
|
sets the context for the fill.
The GraphicsContext will call this when the GraphicsContext::setCurrrentFill() method is called.
Implements VCF::Fill. |
| void VCF::GradientFill::setGradientMatrix |
( |
const Matrix2D & |
val |
) |
[inline] |
|
| void VCF::GradientFill::setMaxColorProfileSize |
( |
const size_t & |
val |
) |
[inline] |
|
| void VCF::GradientFill::setMidPoint |
( |
const size_t & |
index, |
|
|
double |
val |
|
) |
[inline] |
|
| void VCF::GradientFill::sortColors |
( |
|
) |
[inline] |
|
Member Data Documentation
The documentation for this class was generated from the following file: