2017-05-23 14:45:44 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgshighlight.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsHighlight: QgsMapCanvasItem
|
2013-06-22 19:37:41 +02:00
|
|
|
{
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
A class for highlight features on the map.
|
|
|
|
|
|
|
|
The QgsHighlight class provides a transparent overlay widget
|
|
|
|
for highlighting features on the map.
|
|
|
|
%End
|
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
%TypeHeaderCode
|
2017-05-23 14:45:44 +02:00
|
|
|
#include "qgshighlight.h"
|
2013-06-22 19:37:41 +02:00
|
|
|
%End
|
|
|
|
public:
|
2016-08-02 07:26:11 +10:00
|
|
|
|
2017-05-23 14:45:44 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsHighlight( QgsMapCanvas *mapCanvas, const QgsGeometry &geom, QgsVectorLayer *layer );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsHighlight
|
|
|
|
\param mapCanvas associated map canvas
|
|
|
|
\param geom initial geometry of highlight
|
|
|
|
\param layer associated vector layer
|
|
|
|
%End
|
2016-08-02 07:26:11 +10:00
|
|
|
|
2017-05-23 14:45:44 +02:00
|
|
|
QgsHighlight( QgsMapCanvas *mapCanvas, const QgsFeature &feature, QgsVectorLayer *layer );
|
|
|
|
%Docstring
|
|
|
|
Constructor for highlighting true feature shape using feature attributes
|
|
|
|
and renderer.
|
|
|
|
\param mapCanvas map canvas
|
|
|
|
\param feature
|
|
|
|
\param layer vector layer
|
|
|
|
%End
|
2013-06-22 19:37:41 +02:00
|
|
|
~QgsHighlight();
|
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
void setColor( const QColor &color );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Set line/stroke to color, polygon fill to color with alpha = 63.
|
|
|
|
This is legacy function, use setFillColor() after setColor() if different fill color is required. *
|
|
|
|
%End
|
2014-01-26 18:35:21 +01:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
void setFillColor( const QColor &fillColor );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Set polygons fill color.
|
|
|
|
.. versionadded:: 2.3
|
|
|
|
%End
|
2014-03-27 13:45:25 +01:00
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
void setWidth( int width );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Set stroke width. Ignored in feature mode.
|
|
|
|
%End
|
2013-06-22 19:37:41 +02:00
|
|
|
|
2014-03-27 13:45:25 +01:00
|
|
|
void setBuffer( double buffer );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Set line / stroke buffer in millimeters.
|
|
|
|
.. versionadded:: 2.3
|
|
|
|
%End
|
2014-03-27 13:45:25 +01:00
|
|
|
|
|
|
|
void setMinWidth( double width );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
Set minimum line / stroke width in millimeters.
|
|
|
|
.. versionadded:: 2.3
|
|
|
|
%End
|
2014-03-27 13:45:25 +01:00
|
|
|
|
2014-04-06 16:17:58 +02:00
|
|
|
const QgsMapLayer *layer() const;
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
:rtype: QgsMapLayer
|
|
|
|
%End
|
2014-04-06 16:17:58 +02:00
|
|
|
|
2015-02-03 02:21:52 +01:00
|
|
|
virtual void updatePosition();
|
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
protected:
|
2017-05-01 16:42:33 +02:00
|
|
|
virtual void paint( QPainter *p );
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
void updateRect();
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
|
|
|
recalculates needed rectangle
|
|
|
|
%End
|
|
|
|
|
2013-06-22 19:37:41 +02:00
|
|
|
};
|
2017-05-23 14:45:44 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgshighlight.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|