a basic gradient used in a MWAWGraphicStyle More...
#include <MWAWGraphicStyle.hxx>
Classes | |
struct | Stop |
a structure used to define the gradient limit in MWAWGraphicStyle More... | |
Public Types | |
enum | Type { G_None , G_Axial , G_Linear , G_Radial , G_Rectangular , G_Square , G_Ellipsoid } |
an enum used to define the gradient type More... | |
Public Member Functions | |
Gradient () | |
constructor | |
bool | hasGradient (bool complex=false) const |
returns true if the gradient is defined | |
void | addTo (librevenge::RVNGPropertyList &propList) const |
add a gradient to the propList | |
bool | getAverageColor (MWAWColor &color) const |
returns the average gradient color if the gradient is defined. | |
int | cmp (Gradient const &a) const |
compare two gradient | |
Public Attributes | |
Type | m_type |
the gradient type | |
std::vector< Stop > | m_stopList |
the list of gradient limits | |
float | m_angle |
the gradient angle | |
float | m_border |
the gradient border opacity | |
MWAWVec2f | m_percentCenter |
the gradient center | |
float | m_radius |
the gradient radius | |
Friends | |
std::ostream & | operator<< (std::ostream &o, Gradient const &grad) |
a print operator | |
a basic gradient used in a MWAWGraphicStyle
|
inline |
constructor
void MWAWGraphicStyle::Gradient::addTo | ( | librevenge::RVNGPropertyList & | propList | ) | const |
add a gradient to the propList
Referenced by MWAWGraphicStyle::addTo().
|
inline |
compare two gradient
Referenced by MWAWGraphicStyle::cmp().
bool MWAWGraphicStyle::Gradient::getAverageColor | ( | MWAWColor & | color | ) | const |
returns the average gradient color if the gradient is defined.
Referenced by Canvas5StyleManager::updateLineColor().
|
inline |
returns true if the gradient is defined
Referenced by MWAWGraphicStyle::hasGradient(), Canvas5StyleManager::updateLineColor(), and Canvas5StyleManager::updateSurfaceColor().
|
friend |
a print operator
float MWAWGraphicStyle::Gradient::m_angle |
the gradient angle
Referenced by cmp(), CanvasStyleManager::readGradient(), and Canvas5StyleManager::readGradient().
float MWAWGraphicStyle::Gradient::m_border |
the gradient border opacity
Referenced by cmp().
MWAWVec2f MWAWGraphicStyle::Gradient::m_percentCenter |
the gradient center
Referenced by cmp(), CanvasStyleManager::readGradient(), and Canvas5StyleManager::readGradient().
float MWAWGraphicStyle::Gradient::m_radius |
the gradient radius
Referenced by cmp().
std::vector<Stop> MWAWGraphicStyle::Gradient::m_stopList |
the list of gradient limits
Referenced by cmp(), Gradient(), hasGradient(), PowerPoint3Parser::readFramesList(), CanvasStyleManager::readGradient(), Canvas5StyleManager::readGradient(), MsWksGraph::readGradient(), PowerPoint7Graph::readStyle(), GreatWksGraph::readStyle(), ClarisDrawStyleManagerInternal::Gradient::update(), ClarisWksStyleManagerInternal::Gradient::update(), ClarisDrawStyleManager::updateGradient(), and ClarisWksStyleManager::updateGradient().
Type MWAWGraphicStyle::Gradient::m_type |