Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Sep 4, 2015
1 parent 56316dd commit 8e1a19a
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions python/core/geometry/qgscircularstringv2.sip
Expand Up @@ -56,6 +56,7 @@ class QgsCircularStringV2: public QgsCurveV2
bool hasCurvedSegments() const;

/** Returns approximate rotation angle for a vertex. Usually average angle between adjacent segments.
@param vertex the vertex id
@return rotation in radians, clockwise from north*/
double vertexAngle( const QgsVertexId& vertex ) const;

Expand Down
1 change: 1 addition & 0 deletions python/core/geometry/qgscompoundcurvev2.sip
Expand Up @@ -62,6 +62,7 @@ class QgsCompoundCurveV2: public QgsCurveV2
bool hasCurvedSegments() const;

/** Returns approximate rotation angle for a vertex. Usually average angle between adjacent segments.
@param vertex the vertex id
@return rotation in radians, clockwise from north*/
double vertexAngle( const QgsVertexId& vertex ) const;
};
1 change: 1 addition & 0 deletions python/core/geometry/qgscurvepolygonv2.sip
Expand Up @@ -64,6 +64,7 @@ class QgsCurvePolygonV2: public QgsSurfaceV2
QgsAbstractGeometryV2* segmentize() const /Factory/;

/** Returns approximate rotation angle for a vertex. Usually average angle between adjacent segments.
@param vertex the vertex id
@return rotation in radians, clockwise from north*/
double vertexAngle( const QgsVertexId& vertex ) const;
};
1 change: 1 addition & 0 deletions python/core/geometry/qgsgeometrycollectionv2.sip
Expand Up @@ -53,6 +53,7 @@ class QgsGeometryCollectionV2: public QgsAbstractGeometryV2
bool hasCurvedSegments() const;

/** Returns approximate rotation angle for a vertex. Usually average angle between adjacent segments.
@param vertex the vertex id
@return rotation in radians, clockwise from north*/
double vertexAngle( const QgsVertexId& vertex ) const;
};
1 change: 1 addition & 0 deletions python/core/geometry/qgslinestringv2.sip
Expand Up @@ -57,6 +57,7 @@ class QgsLineStringV2: public QgsCurveV2
void sumUpArea( double& sum ) const;

/** Returns approximate rotation angle for a vertex. Usually average angle between adjacent segments.
@param vertex the vertex id
@return rotation in radians, clockwise from north*/
double vertexAngle( const QgsVertexId& vertex ) const;
};
4 changes: 3 additions & 1 deletion python/core/geometry/qgspointv2.sip
Expand Up @@ -56,6 +56,8 @@ class QgsPointV2: public QgsAbstractGeometryV2
double closestSegment( const QgsPointV2& pt, QgsPointV2& segmentPt, QgsVertexId& vertexAfter, bool* leftOf, double epsilon ) const;
bool nextVertex( QgsVertexId& id, QgsPointV2& vertex ) const;

/** Angle undefined. Always returns 0.0*/
/** Angle undefined. Always returns 0.0
@param vertex the vertex id
@return 0.0*/
double vertexAngle( const QgsVertexId& vertex ) const;
};
7 changes: 7 additions & 0 deletions python/core/qgsrendercontext.sip
Expand Up @@ -85,4 +85,11 @@ class QgsRenderContext
//! Added in QGIS v2.4
const QgsVectorSimplifyMethod& vectorSimplifyMethod() const;
void setVectorSimplifyMethod( const QgsVectorSimplifyMethod& simplifyMethod );

/** Returns pointer to the unsegmentized geometry
@return the geometry*/
const QgsAbstractGeometryV2* geometry() const;
/** Sets pointer to original (unsegmentized) geometry
@geometry the geometry*/
void setGeometry( const QgsAbstractGeometryV2* geometry );
};
1 change: 1 addition & 0 deletions src/core/geometry/qgsabstractgeometryv2.h
Expand Up @@ -318,6 +318,7 @@ class CORE_EXPORT QgsAbstractGeometryV2
virtual QgsAbstractGeometryV2* segmentize() const { return clone(); }

/** Returns approximate rotation angle for a vertex. Usually average angle between adjacent segments.
@param vertex the vertex id
@return rotation in radians, clockwise from north*/
virtual double vertexAngle( const QgsVertexId& vertex ) const = 0;

Expand Down
1 change: 1 addition & 0 deletions src/core/geometry/qgscircularstringv2.h
Expand Up @@ -92,6 +92,7 @@ class CORE_EXPORT QgsCircularStringV2: public QgsCurveV2
bool hasCurvedSegments() const override { return true; }

/** Returns approximate rotation angle for a vertex. Usually average angle between adjacent segments.
@param vertex the vertex id
@return rotation in radians, clockwise from north*/
double vertexAngle( const QgsVertexId& vertex ) const override;

Expand Down
1 change: 1 addition & 0 deletions src/core/geometry/qgscompoundcurvev2.h
Expand Up @@ -105,6 +105,7 @@ class CORE_EXPORT QgsCompoundCurveV2: public QgsCurveV2
bool hasCurvedSegments() const override;

/** Returns approximate rotation angle for a vertex. Usually average angle between adjacent segments.
@param vertex the vertex id
@return rotation in radians, clockwise from north*/
double vertexAngle( const QgsVertexId& vertex ) const override;

Expand Down
1 change: 1 addition & 0 deletions src/core/geometry/qgscurvepolygonv2.h
Expand Up @@ -95,6 +95,7 @@ class CORE_EXPORT QgsCurvePolygonV2: public QgsSurfaceV2
QgsAbstractGeometryV2* segmentize() const override;

/** Returns approximate rotation angle for a vertex. Usually average angle between adjacent segments.
@param vertex the vertex id
@return rotation in radians, clockwise from north*/
double vertexAngle( const QgsVertexId& vertex ) const override;

Expand Down
1 change: 1 addition & 0 deletions src/core/geometry/qgsgeometrycollectionv2.h
Expand Up @@ -103,6 +103,7 @@ class CORE_EXPORT QgsGeometryCollectionV2: public QgsAbstractGeometryV2
QgsAbstractGeometryV2* segmentize() const override;

/** Returns approximate rotation angle for a vertex. Usually average angle between adjacent segments.
@param vertex the vertex id
@return rotation in radians, clockwise from north*/
double vertexAngle( const QgsVertexId& vertex ) const override;

Expand Down
1 change: 1 addition & 0 deletions src/core/geometry/qgslinestringv2.h
Expand Up @@ -91,6 +91,7 @@ class CORE_EXPORT QgsLineStringV2: public QgsCurveV2
void close();

/** Returns approximate rotation angle for a vertex. Usually average angle between adjacent segments.
@param vertex the vertex id
@return rotation in radians, clockwise from north*/
double vertexAngle( const QgsVertexId& vertex ) const override;

Expand Down
4 changes: 3 additions & 1 deletion src/core/geometry/qgspointv2.h
Expand Up @@ -85,7 +85,9 @@ class CORE_EXPORT QgsPointV2: public QgsAbstractGeometryV2
double closestSegment( const QgsPointV2& pt, QgsPointV2& segmentPt, QgsVertexId& vertexAfter, bool* leftOf, double epsilon ) const override;
bool nextVertex( QgsVertexId& id, QgsPointV2& vertex ) const override;

/** Angle undefined. Always returns 0.0*/
/** Angle undefined. Always returns 0.0
@param vertex the vertex id
@return 0.0*/
double vertexAngle( const QgsVertexId& vertex ) const override { Q_UNUSED( vertex ); return 0.0; }

private:
Expand Down

0 comments on commit 8e1a19a

Please sign in to comment.