Skip to content

Commit c590e1e

Browse files
committedJun 22, 2015
Hide unimplemented GeometryV2 clip methods
1 parent 5f49335 commit c590e1e

9 files changed

+15
-3
lines changed
 

‎python/core/geometry/qgsabstractgeometryv2.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class QgsAbstractGeometryV2
9292
//render pipeline
9393
virtual void transform( const QgsCoordinateTransform& ct ) = 0;
9494
virtual void transform( const QTransform& t ) = 0;
95-
virtual void clip( const QgsRectangle& rect );
95+
//virtual void clip( const QgsRectangle& rect );
9696
virtual void draw( QPainter& p ) const = 0;
9797

9898
/**Returns next vertex id and coordinates

‎python/core/geometry/qgscircularstringv2.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class QgsCircularStringV2: public QgsCurveV2
4040
void draw( QPainter& p ) const;
4141
void transform( const QgsCoordinateTransform& ct );
4242
void transform( const QTransform& t );
43-
void clip( const QgsRectangle& rect );
43+
//void clip( const QgsRectangle& rect );
4444
void addToPainterPath( QPainterPath& path ) const;
4545
void drawAsPolygon( QPainter& p ) const;
4646

‎python/core/geometry/qgsgeometrycollectionv2.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class QgsGeometryCollectionV2: public QgsAbstractGeometryV2
2525

2626
virtual void transform( const QgsCoordinateTransform& ct );
2727
void transform( const QTransform& t );
28-
virtual void clip( const QgsRectangle& rect );
28+
//virtual void clip( const QgsRectangle& rect );
2929
virtual void draw( QPainter& p ) const;
3030

3131
bool fromWkb( const unsigned char * wkb );

‎src/core/geometry/qgsabstractgeometryv2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ bool QgsAbstractGeometryV2::isMeasure() const
6363
return ( mWkbType >= 2001 && mWkbType <= 3012 );
6464
}
6565

66+
#if 0
6667
void QgsAbstractGeometryV2::clip( const QgsRectangle& rect )
6768
{
6869
// TODO
@@ -71,6 +72,7 @@ void QgsAbstractGeometryV2::clip( const QgsRectangle& rect )
7172

7273
// Don't insert Q_UNUSED, so we have a warning that reminds us of this TODO
7374
}
75+
#endif
7476

7577
void QgsAbstractGeometryV2::setZMTypeFromSubGeometry( const QgsAbstractGeometryV2* subgeom, QgsWKBTypes::Type baseGeomType )
7678
{

‎src/core/geometry/qgsabstractgeometryv2.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ class CORE_EXPORT QgsAbstractGeometryV2
223223
*/
224224
virtual void transform( const QTransform& t ) = 0;
225225

226+
#if 0
226227
virtual void clip( const QgsRectangle& rect ); //todo
228+
#endif
227229

228230
/** Draws the geometry using the specified QPainter.
229231
* @param p destination QPainter

‎src/core/geometry/qgscircularstringv2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,10 +607,12 @@ void QgsCircularStringV2::transform( const QTransform& t )
607607
}
608608
}
609609

610+
#if 0
610611
void QgsCircularStringV2::clip( const QgsRectangle& rect )
611612
{
612613
//todo...
613614
}
615+
#endif
614616

615617
void QgsCircularStringV2::addToPainterPath( QPainterPath& path ) const
616618
{

‎src/core/geometry/qgscircularstringv2.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ class CORE_EXPORT QgsCircularStringV2: public QgsCurveV2
6969
void draw( QPainter& p ) const override;
7070
void transform( const QgsCoordinateTransform& ct ) override;
7171
void transform( const QTransform& t ) override;
72+
#if 0
7273
void clip( const QgsRectangle& rect ) override;
74+
#endif
7375
void addToPainterPath( QPainterPath& path ) const override;
7476
void drawAsPolygon( QPainter& p ) const override;
7577

‎src/core/geometry/qgsgeometrycollectionv2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ void QgsGeometryCollectionV2::transform( const QTransform& t )
148148
}
149149
}
150150

151+
#if 0
151152
void QgsGeometryCollectionV2::clip( const QgsRectangle& rect )
152153
{
153154
QVector< QgsAbstractGeometryV2* >::iterator it = mGeometries.begin();
@@ -156,6 +157,7 @@ void QgsGeometryCollectionV2::clip( const QgsRectangle& rect )
156157
( *it )->clip( rect );
157158
}
158159
}
160+
#endif
159161

160162
void QgsGeometryCollectionV2::draw( QPainter& p ) const
161163
{

‎src/core/geometry/qgsgeometrycollectionv2.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ class CORE_EXPORT QgsGeometryCollectionV2: public QgsAbstractGeometryV2
6464

6565
virtual void transform( const QgsCoordinateTransform& ct ) override;
6666
void transform( const QTransform& t ) override;
67+
#if 0
6768
virtual void clip( const QgsRectangle& rect ) override;
69+
#endif
6870
virtual void draw( QPainter& p ) const override;
6971

7072
bool fromWkb( const unsigned char * wkb ) override;

0 commit comments

Comments
 (0)
Please sign in to comment.