Skip to content
Permalink
Browse files

fix warnings

  • Loading branch information
jef-n committed Sep 30, 2011
1 parent e139348 commit a0be3b941a9e5614cd3b425d3ee10189b288dbb5
@@ -48,7 +48,11 @@ class ANALYSIS_EXPORT QgsArcProperter
/**
* calculate and return adge property
*/
virtual QVariant property( double distance, const QgsFeature& f ) const
{ return QVariant(); }
virtual QVariant property( double distance, const QgsFeature &f ) const
{
Q_UNUSED( distance );
Q_UNUSED( f );
return QVariant();
}
};
#endif //QGSEDGEPROPERTYH
@@ -14,5 +14,6 @@

QVariant QgsDistanceArcProperter::property( double distance, const QgsFeature& f ) const
{
Q_UNUSED( f );
return QVariant( distance );
}
@@ -79,12 +79,11 @@ class ANALYSIS_EXPORT QgsGraphBuilderInterface

/**
* add vertex
* @param id vertex identyficator
* @param id vertex identifier
* @param pt vertex coordinate
* @note id and pt is a redundant interface. You can use coordinates or id for vertex identyfy
* @note id and pt are redundant. You can use pt or id to identify the vertex
*/
virtual void addVertex( int id, const QgsPoint& pt )
{ }
virtual void addVertex( int id, const QgsPoint &pt ) = 0;

/**
* add arc
@@ -95,8 +94,7 @@ class ANALYSIS_EXPORT QgsGraphBuilderInterface
* @param properties arc properties
* @note pt1id, pt1 and pt2id, pt2 is a redundant interface. You can use vertex coordinates or their identificators.
*/
virtual void addArc( int pt1id, const QgsPoint& pt1, int pt2id, const QgsPoint& pt2, const QVector< QVariant >& properties )
{ }
virtual void addArc( int pt1id, const QgsPoint& pt1, int pt2id, const QgsPoint& pt2, const QVector< QVariant >& properties ) = 0;

private:
QgsCoordinateReferenceSystem mCrs;
@@ -55,10 +55,14 @@ class ANALYSIS_EXPORT QgsGraphDirector : public QObject
*
* @note if tiedPoints[i]==QgsPoint(0.0,0.0) then tied failed.
*/
virtual void makeGraph( QgsGraphBuilderInterface* builder,
const QVector< QgsPoint >& additionalPoints,
QVector< QgsPoint>& tiedPoints ) const
{}
virtual void makeGraph( QgsGraphBuilderInterface *builder,
const QVector< QgsPoint > &additionalPoints,
QVector< QgsPoint > &tiedPoints ) const
{
Q_UNUSED( builder );
Q_UNUSED( additionalPoints );
Q_UNUSED( tiedPoints );
}

void addProperter( QgsArcProperter* prop )
{

0 comments on commit a0be3b9

Please sign in to comment.
You can’t perform that action at this time.