Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Small cleanup of QgsAbstractGeometry header
  • Loading branch information
wonder-sk committed May 6, 2017
1 parent 3c4567d commit 040c4b3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
2 changes: 0 additions & 2 deletions python/core/geometry/qgsabstractgeometry.sip
Expand Up @@ -130,7 +130,6 @@ class QgsAbstractGeometry
:rtype: bool
%End


virtual QgsAbstractGeometry *boundary() const = 0 /Factory/;
%Docstring
Returns the closure of the combinatorial boundary of the geometry (ie the topological boundary of the geometry).
Expand Down Expand Up @@ -237,7 +236,6 @@ class QgsAbstractGeometry
\param t QTransform transformation
%End


virtual void draw( QPainter &p ) const = 0;
%Docstring
Draws the geometry using the specified QPainter.
Expand Down
10 changes: 0 additions & 10 deletions src/core/geometry/qgsabstractgeometry.cpp
Expand Up @@ -52,16 +52,6 @@ bool QgsAbstractGeometry::isMeasure() const
return QgsWkbTypes::hasM( mWkbType );
}

#if 0
void QgsAbstractGeometry::clip( const QgsRectangle &rect )
{
// TODO
// - Implementation
// - API doc in header

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

void QgsAbstractGeometry::setZMTypeFromSubGeometry( const QgsAbstractGeometry *subgeom, QgsWkbTypes::Type baseGeomType )
{
Expand Down
15 changes: 0 additions & 15 deletions src/core/geometry/qgsabstractgeometry.h
Expand Up @@ -115,7 +115,6 @@ class CORE_EXPORT QgsAbstractGeometry
* 1 for a linestring and 2 for a polygon.
*/
virtual int dimension() const = 0;
//virtual int coordDim() const { return mCoordDimension; }

/** Returns a unique string representing the geometry type.
* \see wkbType
Expand Down Expand Up @@ -145,16 +144,6 @@ class CORE_EXPORT QgsAbstractGeometry
*/
bool isMeasure() const;

#if 0
virtual bool transform( const QgsCoordinateTransform &ct ) = 0;
virtual bool isEmpty() const = 0;
virtual bool isSimple() const = 0;
virtual bool isValid() const = 0;
virtual QgsMultiPointV2 *locateAlong() const = 0;
virtual QgsMultiCurve *locateBetween() const = 0;
virtual QgsRectangle envelope() const = 0;
#endif

/** Returns the closure of the combinatorial boundary of the geometry (ie the topological boundary of the geometry).
* For instance, a polygon geometry will have a boundary consisting of the linestrings for each ring in the polygon.
* \returns boundary for geometry. May be null for some geometry types.
Expand Down Expand Up @@ -246,10 +235,6 @@ class CORE_EXPORT QgsAbstractGeometry
*/
virtual void transform( const QTransform &t ) = 0;

#if 0
virtual void clip( const QgsRectangle &rect ); //todo
#endif

/** Draws the geometry using the specified QPainter.
* \param p destination QPainter
*/
Expand Down

0 comments on commit 040c4b3

Please sign in to comment.