QGIS API Documentation
4.3.0-Master (153eea77ea7)
Loading...
Searching...
No Matches
src
core
geometry
qgsvertexid.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsvertexid.cpp
3
-------------------------------------------------------------------
4
Date : 04 Sept 2014
5
Copyright : (C) 2014 by Marco Hugentobler
6
email : marco.hugentobler at sourcepole dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#include "
qgsvertexid.h
"
17
18
#include "
qgsabstractgeometry.h
"
19
20
bool
QgsVertexId::isValid
(
const
QgsAbstractGeometry
*geom )
const
21
{
22
return
geom->
hasVertex
( *
this
);
23
}
QgsAbstractGeometry
Abstract base class for all geometries.
Definition
qgsabstractgeometry.h:82
QgsAbstractGeometry::hasVertex
virtual bool hasVertex(QgsVertexId position) const =0
Returns true if the geometry contains a vertex matching the given position.
qgsabstractgeometry.h
qgsvertexid.h
QgsVertexId::isValid
bool isValid() const
Returns true if the vertex id is valid.
Definition
qgsvertexid.h:51
Generated on
for QGIS API Documentation by
1.15.0