#include <gradient.h>
Public Types | |
| typedef GradientCPoint | CPoint |
Public Member Functions | |
| Gradient () | |
| Gradient (const Color &c1, const Color &c2) | |
| Two-Tone Color Gradient Convience Constructor. | |
| Gradient (const Color &c1, const Color &c2, const Color &c3) | |
| Three-Tone Color Gradient Convience Constructor. | |
| void | sync () |
| Alias for sort (Implemented for consistancy). | |
| void | sort () |
| You should call this function after changing stuff. | |
| Color | operator() (const Real &x, float supersample=0) const |
| iterator | proximity (const Real &x) |
| Returns the iterator of the CPoint closest to x. | |
| const_iterator | proximity (const Real &x) const |
| Returns the const_iterator of the CPoint closest to x. | |
| iterator | find (const UniqueID &id) |
| Returns the iterator of the CPoint with UniqueID id. | |
| const_iterator | find (const UniqueID &id) const |
| Returns the const_iterator of the CPoint with UniqueID id. | |
| synfig::Gradient::Gradient | ( | ) | [inline] |
| void synfig::Gradient::sync | ( | ) | [inline] |
Alias for sort (Implemented for consistancy).
| void synfig::Gradient::sort | ( | ) |
You should call this function after changing stuff.
As a future optimization, this could be performed faster using a binary search.
| synfig::Gradient::iterator synfig::Gradient::proximity | ( | const Real & | x | ) |
Returns the iterator of the CPoint closest to x.
| synfig::Gradient::const_iterator synfig::Gradient::proximity | ( | const Real & | x | ) | const |
Returns the const_iterator of the CPoint closest to x.
| synfig::Gradient::iterator synfig::Gradient::find | ( | const UniqueID & | id | ) |
Returns the iterator of the CPoint with UniqueID id.
| synfig::Gradient::const_iterator synfig::Gradient::find | ( | const UniqueID & | id | ) | const |
Returns the const_iterator of the CPoint with UniqueID id.
1.5.3