#include <gradient.h>
Public Types | |
| typedef GradientCPoint | CPoint |
| typedef vector< CPoint > | CPointList |
| typedef CPointList::const_iterator | const_iterator |
| typedef CPointList::iterator | iterator |
| typedef CPointList::const_reverse_iterator | const_reverse_iterator |
| typedef CPointList::reverse_iterator | reverse_iterator |
Public Member Functions | |
| Gradient () | |
| Gradient (const Color &c1, const Color &c2) | |
| Two-Tone Color Gradient Convenience Constructor. | |
| Gradient (const Color &c1, const Color &c2, const Color &c3) | |
| Three-Tone Color Gradient Convenience Constructor. | |
| void | sync () |
| Alias for sort (Implemented for consistency). | |
| void | sort () |
| You should call this function after changing stuff. | |
| void | push_back (const CPoint cpoint) |
| iterator | erase (iterator iter) |
| bool | empty () const |
| size_t | size () const |
| iterator | begin () |
| iterator | end () |
| reverse_iterator | rbegin () |
| reverse_iterator | rend () |
| const_iterator | begin () const |
| const_iterator | end () const |
| const_reverse_iterator | rbegin () const |
| const_reverse_iterator | rend () const |
| Gradient & | operator+= (const Gradient &rhs) |
| Gradient & | operator-= (const Gradient &rhs) |
| Gradient & | operator *= (const float &rhs) |
| Gradient & | operator/= (const float &rhs) |
| Gradient | operator+ (const Gradient &rhs) const |
| Gradient | operator- (const Gradient &rhs) const |
| Gradient | operator * (const float &rhs) const |
| Gradient | operator/ (const float &rhs) const |
| 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. | |
| typedef vector<CPoint> synfig::Gradient::CPointList |
| typedef CPointList::const_iterator synfig::Gradient::const_iterator |
| typedef CPointList::iterator synfig::Gradient::iterator |
| typedef CPointList::const_reverse_iterator synfig::Gradient::const_reverse_iterator |
| typedef CPointList::reverse_iterator synfig::Gradient::reverse_iterator |
| synfig::Gradient::Gradient | ( | ) | [inline] |
| void synfig::Gradient::sync | ( | ) | [inline] |
Alias for sort (Implemented for consistency).
| void synfig::Gradient::sort | ( | ) |
You should call this function after changing stuff.
| void synfig::Gradient::push_back | ( | const CPoint | cpoint | ) | [inline] |
| bool synfig::Gradient::empty | ( | ) | const [inline] |
| size_t synfig::Gradient::size | ( | ) | const [inline] |
| iterator synfig::Gradient::begin | ( | ) | [inline] |
| iterator synfig::Gradient::end | ( | ) | [inline] |
| reverse_iterator synfig::Gradient::rbegin | ( | ) | [inline] |
| reverse_iterator synfig::Gradient::rend | ( | ) | [inline] |
| const_iterator synfig::Gradient::begin | ( | ) | const [inline] |
| const_iterator synfig::Gradient::end | ( | ) | const [inline] |
| const_reverse_iterator synfig::Gradient::rbegin | ( | ) | const [inline] |
| const_reverse_iterator synfig::Gradient::rend | ( | ) | const [inline] |
| Gradient & synfig::Gradient::operator *= | ( | const float & | rhs | ) |
| Gradient & synfig::Gradient::operator/= | ( | const float & | rhs | ) |
| Gradient synfig::Gradient::operator * | ( | const float & | rhs | ) | const [inline] |
| Gradient synfig::Gradient::operator/ | ( | const float & | rhs | ) | const [inline] |
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.4