QGIS/python/gui/auto_generated/qgsgeometryrubberband.sip.in

103 lines
2.7 KiB
Plaintext
Raw Normal View History

2017-05-23 14:45:44 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsgeometryrubberband.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2019-09-13 09:37:16 +02:00
%ModuleHeaderCode
// For ConvertToSubClassCode.
#include <qgsgeometryrubberband.h>
%End
2017-05-23 14:45:44 +02:00
class QgsGeometryRubberBand: QgsMapCanvasItem
{
2017-05-23 14:45:44 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
A rubberband class for QgsAbstractGeometry (considering curved geometries)*
2017-05-23 14:45:44 +02:00
%End
%TypeHeaderCode
#include "qgsgeometryrubberband.h"
2019-09-13 09:37:16 +02:00
%End
%ConvertToSubClassCode
if ( dynamic_cast<QgsGeometryRubberBand *>( sipCpp ) )
sipType = sipType_QgsGeometryRubberBand;
else
sipType = nullptr;
%End
public:
enum IconType
{
2017-05-23 14:45:44 +02:00
ICON_NONE,
2017-05-23 14:45:44 +02:00
ICON_CROSS,
2017-05-23 14:45:44 +02:00
ICON_X,
2017-05-23 14:45:44 +02:00
ICON_BOX,
2017-05-23 14:45:44 +02:00
ICON_CIRCLE,
2017-05-23 14:45:44 +02:00
ICON_FULL_BOX
};
QgsGeometryRubberBand( QgsMapCanvas *mapCanvas, QgsWkbTypes::GeometryType geomType = QgsWkbTypes::LineGeometry );
~QgsGeometryRubberBand();
void setGeometry( QgsAbstractGeometry *geom /Transfer/ );
2017-05-23 14:45:44 +02:00
%Docstring
Sets geometry (takes ownership). Geometry is expected to be in map coordinates
%End
const QgsAbstractGeometry *geometry();
2017-05-23 14:45:44 +02:00
%Docstring
Returns a pointer to the geometry
%End
void moveVertex( QgsVertexId id, const QgsPoint &newPos );
2017-05-23 14:45:44 +02:00
%Docstring
Moves vertex to new position (in map coordinates)
%End
void setFillColor( const QColor &c );
2017-05-23 14:45:44 +02:00
%Docstring
Sets fill color for vertex markers
%End
void setStrokeColor( const QColor &c );
2017-05-23 14:45:44 +02:00
%Docstring
Sets stroke color for vertex markers
%End
void setStrokeWidth( int width );
2017-05-23 14:45:44 +02:00
%Docstring
Sets stroke width
%End
void setLineStyle( Qt::PenStyle penStyle );
2017-05-23 14:45:44 +02:00
%Docstring
Sets pen style
%End
void setBrushStyle( Qt::BrushStyle brushStyle );
2017-05-23 14:45:44 +02:00
%Docstring
Sets brush style
%End
void setIconType( IconType iconType );
2017-05-23 14:45:44 +02:00
%Docstring
Sets vertex marker icon type
%End
protected:
virtual void paint( QPainter *painter );
2017-05-23 14:45:44 +02:00
};
2017-05-23 14:45:44 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsgeometryrubberband.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/