26 #include "../../../color.h" 27 #include "../../../raster/Utils.h" 28 #include "../../../se/Fill.h" 29 #include "../../../se/SvgParameter.h" 30 #include "../../../se/Utils.h" 31 #include "../propertybrowser/AbstractPropertyManager.h" 41 m_fill(new
te::se::Fill)
59 addProperty(basicFillProperty, tr(
"Basic Fill"), QColor(255, 255, 175));
80 double opacity = value / 255.;
101 m_color.setRgb(value.red(), value.green(), value.blue(), value.alpha());
103 double alpha = value.alpha() / 255.;
144 QColor c = QColor(rgba.
getRgba());
void getRgba(int *r, int *g, int *b, int *a=0) const
It gets the color value.
TESEEXPORT void GetColor(const te::se::Stroke *stroke, te::color::RGBAColor &color)
It gets the RGBA color from the Stroke element.
void setColor(const std::string &color)
#define TE_OPAQUE
For an RGBA color this is the value of the alpha-channel for totally opaque.
TESEEXPORT double GetDouble(const te::se::ParameterValue *param)
It gets the parameter value as a double.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
static AbstractPropertyManager & getInstance()
It returns a reference to the singleton instance.
const Graphic * getGraphicFill() const
Gets the GraphicFill element associate to this Fill.
TERASTEREXPORT int Round(double val)
Round a double value to a integer value.
void setOpacity(const std::string &opacity)
A Fill specifies the pattern for filling an area geometry.
Fill * clone() const
It creates a new copy of this object.
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
#define TE_SE_DEFAULT_FILL_BASIC_COLOR
It specifies the default color used by basic fill (solid colors).
A widget used to define the basic fill se object.
const SvgParameter * getOpacity() const