Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix SIP end doc
  • Loading branch information
vcloarec committed Jul 29, 2020
1 parent 9a39f9a commit 56787d6
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
14 changes: 14 additions & 0 deletions python/core/auto_generated/qgsmapsettings.sip.in
Expand Up @@ -523,6 +523,13 @@ transform bounding box from output CRS to layer's CRS
%Docstring
transform point coordinates from layer's CRS to output CRS

:return: the transformed point
%End

QgsPoint layerToMapCoordinates( const QgsMapLayer *layer, QgsPoint point ) const;
%Docstring
transform point coordinates from layer's CRS to output CRS

:return: the transformed point
%End

Expand All @@ -539,6 +546,13 @@ transform rectangle from layer's CRS to output CRS
%Docstring
transform point coordinates from output CRS to layer's CRS

:return: the transformed point
%End

QgsPoint mapToLayerCoordinates( const QgsMapLayer *layer, QgsPoint point ) const;
%Docstring
transform point coordinates from output CRS to layer's CRS

:return: the transformed point
%End

Expand Down
5 changes: 5 additions & 0 deletions python/gui/auto_generated/qgsmaptool.sip.in
Expand Up @@ -253,6 +253,11 @@ transformation from screen coordinates to layer's coordinates
QgsPointXY toLayerCoordinates( const QgsMapLayer *layer, const QgsPointXY &point );
%Docstring
transformation from map coordinates to layer's coordinates
%End

QgsPoint toLayerCoordinates( const QgsMapLayer *layer, const QgsPoint &point );
%Docstring
transformation from map coordinates to layer's coordinates
%End

QgsPointXY toMapCoordinates( const QgsMapLayer *layer, const QgsPointXY &point );
Expand Down
4 changes: 4 additions & 0 deletions python/gui/auto_generated/qgsmaptoolcapture.sip.in
Expand Up @@ -11,6 +11,7 @@




class QgsMapToolCapture : QgsMapToolAdvancedDigitizing
{

Expand Down Expand Up @@ -116,6 +117,9 @@ transfers ownership to the caller.
.. versionadded:: 3.8
%End

public slots:
void toggleLinearCircularDigitizing();

protected:


Expand Down
2 changes: 2 additions & 0 deletions src/gui/qgsgeometryrubberband.h
Expand Up @@ -117,6 +117,8 @@ class GUI_EXPORT QgsGeometryRubberBand: public QgsMapCanvasItem

protected:
void paint( QPainter *painter ) override;

//! Returns which geometry is handled by the rubber band, polygon or line
QgsWkbTypes::GeometryType geometryType() const;

private:
Expand Down
9 changes: 9 additions & 0 deletions src/gui/qgsmaptoolcapture.h
Expand Up @@ -36,9 +36,15 @@ class QgsMapLayer;
class QgsGeometryValidator;
class QgsMapToolCaptureRubberband;


#ifndef SIP_RUN

///@cond PRIVATE

/**
* Class that reprensents a rubber can that can be linear or circular.
*
* \since QGIS 3.16
*/
class QgsMapToolCaptureRubberband: public QgsGeometryRubberBand
{
Expand Down Expand Up @@ -103,6 +109,8 @@ class QgsMapToolCaptureRubberband: public QgsGeometryRubberBand
QgsPoint mFirstPolygonPoint;
};

/// @endcond

#endif //SIP_RUN

/**
Expand Down Expand Up @@ -202,6 +210,7 @@ class GUI_EXPORT QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
QgsRubberBand *takeRubberBand() SIP_FACTORY;

public slots:
//! Changes the digitizing shape to linear or circular
void toggleLinearCircularDigitizing();

private slots:
Expand Down

0 comments on commit 56787d6

Please sign in to comment.