86 DataDefinedSizeScale = 1,
87 DataDefinedRotation = 2
142 bool deleteSymbolLayer(
int index );
158 void setColor(
const QColor& color );
191 qreal
alpha()
const {
return mAlpha; }
231 bool isSymbolLayerCompatible( SymbolType t );
262 void setOriginalValueVariable(
const QVariant& value );
271 qreal
alpha()
const {
return mAlpha; }
291 double outputLineWidth(
double width )
const;
292 double outputPixelSize(
double size )
const;
324 void setAngle(
double angle );
325 double angle()
const;
348 void setLineAngle(
double lineAngle );
350 void setSize(
double size );
393 void setWidth(
double width );
394 double width()
const;
432 void setAngle(
double angle );
void setClipFeaturesToExtent(bool clipFeaturesToExtent)
Sets whether features drawn by the symbol should be clipped to the render context's extent...
OutputUnit
The unit of the output.
bool mClipFeaturesToExtent
A container class for data source field mapping or expression.
const QgsVectorLayer * mLayer
void setAlpha(qreal alpha)
Set alpha transparency 1 for opaque, 0 for invisible.
virtual QgsSymbolV2 * clone() const =0
QList< OutputUnit > OutputUnitList
Base class for visual effects which can be applied to QPicture drawings.
Container of fields for a vector layer.
void setRenderHints(int hints)
QgsSymbolLayerV2List symbolLayers()
Returns list of symbol layers contained in the symbol.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
void setMapUnitScale(const QgsMapUnitScale &scale)
const QgsVectorLayer * layer() const
qreal alpha() const
Get alpha transparency 1 for opaque, 0 for invisible.
Mixed units in symbol layers.
QgsSymbolLayerV2List mLayers
QgsMapUnitScale mapUnitScale() const
const QgsFeature * feature() const
Current feature being rendered - may be null.
qreal alpha() const
Get alpha transparency 1 for opaque, 0 for invisible.
void setLayer(const QgsVectorLayer *layer)
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
The output shall be in map unitx.
int symbolLayerCount()
Returns total number of symbol layers contained in the symbol.
qreal mAlpha
Symbol opacity (in the range 0 - 1)
void setFeature(const QgsFeature *f)
void setOutputUnit(QgsSymbolV2::OutputUnit u)
QgsSymbolV2::OutputUnit outputUnit() const
double ANALYSIS_EXPORT angle(Point3D *p1, Point3D *p2, Point3D *p3, Point3D *p4)
Calculates the angle between two segments (in 2 dimension, z-values are ignored)
void setSelected(bool selected)
SymbolType
Type of the symbol.
Contains information about the context of a rendering operation.
Struct for storing maximum and minimum scales for measurements in map units.
QList< QgsSymbolLayerV2 * > QgsSymbolLayerV2List
QgsRenderContext & renderContext()
const QgsFields * fields() const
Fields of the layer.
void setRenderHints(int hints)
const QgsRenderContext & renderContext() const
Calculate scale by the area.
bool clipFeaturesToExtent() const
Returns whether features drawn by the symbol will be clipped to the render context's extent...
Represents a vector layer which manages a vector based data sets.
void setAlpha(qreal alpha)
Set alpha transparency 1 for opaque, 0 for invisible.