43 settings.
value(
"/qgis/digitizing/line_color_red", 255 ).
toInt(),
44 settings.
value(
"/qgis/digitizing/line_color_green", 0 ).
toInt(),
45 settings.
value(
"/qgis/digitizing/line_color_blue", 0 ).
toInt() );
46 double myAlpha = settings.
value(
"/qgis/digitizing/line_color_alpha", 200 ).
toInt() / 255.0;
47 if ( alternativeBand )
49 myAlpha = myAlpha * settings.
value(
"/qgis/digitizing/line_color_alpha_scale", 0.75 ).
toDouble();
54 color.setAlphaF( myAlpha );
56 color.setAlphaF( myAlpha );
60 settings.
value(
"/qgis/digitizing/fill_color_red", 255 ).
toInt(),
61 settings.
value(
"/qgis/digitizing/fill_color_green", 0 ).
toInt(),
62 settings.
value(
"/qgis/digitizing/fill_color_blue", 0 ).
toInt() );
63 myAlpha = settings.
value(
"/qgis/digitizing/fill_color_alpha", 30 ).
toInt() / 255.0 ;
64 fillColor.setAlphaF( myAlpha );
93 for ( ; list_it != geom.
constEnd(); ++list_it )
104 QColor color( settings.
value(
"/qgis/digitizing/line_color_red", 255 ).
toInt(),
105 settings.
value(
"/qgis/digitizing/line_color_green", 0 ).
toInt(),
106 settings.
value(
"/qgis/digitizing/line_color_blue", 0 ).
toInt() );
107 double myAlpha = settings.
value(
"/qgis/digitizing/line_color_alpha", 200 ).
toInt() / 255.0 ;
108 if ( alternativeBand )
110 myAlpha = myAlpha * settings.
value(
"/qgis/digitizing/line_color_alpha_scale", 0.75 ).
toDouble();
113 color.setAlphaF( myAlpha );
void setWidth(int width)
Set the width of the line.
int addTopologicalPoints(const QgsGeometry *geom)
Adds topological points for every vertex of the geometry.
void setLineStyle(Qt::PenStyle penStyle)
Set the style of the line.
void setOutlineColor(const QColor &c)
Sets outline color for vertex markes.
void setFillColor(const QColor &c)
Sets fill color for vertex markers.
QString tr(const char *sourceText, const char *disambiguation, int n)
Map canvas is a class for displaying all GIS data types on a canvas.
int toInt(bool *ok) const
A class for drawing transient features (e.g.
void setFillColor(const QColor &color)
Set the fill color for the rubberband.
QgsMapLayer * currentLayer()
returns current layer (set by legend widget)
QVariant value(const QString &key, const QVariant &defaultValue) const
A rubberband class for QgsAbstractGeometryV2 (considering curved geometries)
double toDouble(bool *ok) const
void setColor(const QColor &color)
Set the color for the rubberband.
const_iterator constEnd() const
const_iterator constBegin() const
void setLineStyle(Qt::PenStyle penStyle)
Sets pen style.
Represents a vector layer which manages a vector based data sets.