15 #ifndef QGSHIGHLIGHT_H 16 #define QGSHIGHLIGHT_H 28 #include <QPainterPath> 52 void setColor(
const QColor & color );
56 void setFillColor(
const QColor & fillColor );
59 void setWidth(
int width );
63 void setBuffer(
double buffer ) { mBuffer = buffer; }
74 virtual void paint( QPainter* p )
override;
85 void paintPoint( QPainter *p,
QgsPoint point );
87 void paintPolygon( QPainter *p,
QgsPolygon polygon );
Base class for all map layer types.
QVector< QgsPoint > QgsPolyline
polyline is represented as a vector of points
An abstract class for items that can be placed on the map canvas.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Map canvas is a class for displaying all GIS data types on a canvas.
void setBuffer(double buffer)
Set line / outline buffer in millimeters.
A class for highlight features on the map.
QVector< QgsPolyline > QgsPolygon
polygon: first item of the list is outer ring, inner rings (if any) start from second item ...
const QgsMapLayer * layer() const
A class to represent a point.
virtual void paint(QPainter *painter)=0
function to be implemented by derived classes
Contains information about the context of a rendering operation.
Represents a vector layer which manages a vector based data sets.
virtual void updatePosition()
called on changed extent or resize event to update position of the item
void setMinWidth(double width)
Set minimum line / outline width in millimeters.