Skip to content

Commit 6cb4114

Browse files
committed
Add OVERRIDE to definitions (pt 1)
1 parent db9fc09 commit 6cb4114

File tree

403 files changed

+2759
-2757
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

403 files changed

+2759
-2757
lines changed

src/analysis/interpolation/Bezier3D.h

+12-12
Original file line numberDiff line numberDiff line change
@@ -36,34 +36,34 @@ class ANALYSIS_EXPORT Bezier3D: public ParametricLine
3636
/**Destructor*/
3737
virtual ~Bezier3D();
3838
/**Do not use this method, since a Bezier curve does not consist of other curves*/
39-
virtual void add( ParametricLine *pl );
39+
virtual void add( ParametricLine *pl ) OVERRIDE;
4040
/**Calculates the first derivative and assigns it to v*/
41-
virtual void calcFirstDer( float t, Vector3D* v );
41+
virtual void calcFirstDer( float t, Vector3D* v ) OVERRIDE;
4242
/**Calculates the second derivative and assigns it to v*/
43-
virtual void calcSecDer( float t, Vector3D* v );
43+
virtual void calcSecDer( float t, Vector3D* v ) OVERRIDE;
4444
//virtual Point3D calcPoint(float t);
4545
/**Calculates the point on the curve and assigns it to p*/
46-
virtual void calcPoint( float t, Point3D* p );
46+
virtual void calcPoint( float t, Point3D* p ) OVERRIDE;
4747
/**changes the order of control points*/
48-
virtual void changeDirection();
48+
virtual void changeDirection() OVERRIDE;
4949
//virtual void draw(QPainter* p);
5050
//virtual bool intersects(ParametricLine* pal);
5151
/**Do not use this method, since a Bezier curve does not consist of other curves*/
52-
virtual void remove( int i );
52+
virtual void remove( int i ) OVERRIDE;
5353
/**Returns a control point*/
54-
virtual const Point3D* getControlPoint( int number ) const;
54+
virtual const Point3D* getControlPoint( int number ) const OVERRIDE;
5555
/**Returns a pointer to the control polygon*/
5656
//! @note not available in python binding
57-
virtual const QVector<Point3D*>* getControlPoly() const;
57+
virtual const QVector<Point3D*>* getControlPoly() const OVERRIDE;
5858
/**Returns the degree of the curve*/
59-
virtual int getDegree() const;
59+
virtual int getDegree() const OVERRIDE;
6060
/**Returns the parent*/
61-
virtual ParametricLine* getParent() const;
61+
virtual ParametricLine* getParent() const OVERRIDE;
6262
/** Sets the parent*/
63-
virtual void setParent( ParametricLine* par );
63+
virtual void setParent( ParametricLine* par ) OVERRIDE;
6464
/**Sets the control polygon*/
6565
//! @note not available in python binding
66-
virtual void setControlPoly( QVector<Point3D*>* cp );
66+
virtual void setControlPoly( QVector<Point3D*>* cp ) OVERRIDE;
6767

6868
};
6969

src/analysis/interpolation/CloughTocherInterpolator.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ class ANALYSIS_EXPORT CloughTocherInterpolator : public TriangleInterpolator
8585
/**destructor*/
8686
virtual ~CloughTocherInterpolator();
8787
/**Calculates the normal vector and assigns it to vec (not implemented at the moment)*/
88-
virtual bool calcNormVec( double x, double y, Vector3D* result );
88+
virtual bool calcNormVec( double x, double y, Vector3D* result ) OVERRIDE;
8989
/**Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point*/
90-
virtual bool calcPoint( double x, double y, Point3D* result );
90+
virtual bool calcPoint( double x, double y, Point3D* result ) OVERRIDE;
9191
virtual void setTriangulation( NormVecDecorator* tin );
9292
};
9393

src/analysis/interpolation/DualEdgeTriangulation.h

+26-26
Original file line numberDiff line numberDiff line change
@@ -43,69 +43,69 @@ class ANALYSIS_EXPORT DualEdgeTriangulation: public Triangulation
4343
virtual ~DualEdgeTriangulation();
4444
void setDecorator( Triangulation* d ) {mDecorator = d;}
4545
/**Adds a line (e.g. a break-, structure- or an isoline) to the triangulation. The class takes ownership of the line object and its points*/
46-
void addLine( Line3D* line, bool breakline );
46+
void addLine( Line3D* line, bool breakline ) OVERRIDE;
4747
/**Adds a point to the triangulation and returns the number of this point in case of success or -100 in case of failure*/
48-
int addPoint( Point3D* p );
48+
int addPoint( Point3D* p ) OVERRIDE;
4949
/**Performs a consistency check, remove this later*/
50-
virtual void performConsistencyTest();
50+
virtual void performConsistencyTest() OVERRIDE;
5151
/**Calculates the normal at a point on the surface*/
52-
virtual bool calcNormal( double x, double y, Vector3D* result );
52+
virtual bool calcNormal( double x, double y, Vector3D* result ) OVERRIDE;
5353
/**Calculates x-, y and z-value of the point on the surface*/
54-
virtual bool calcPoint( double x, double y, Point3D* result );
54+
virtual bool calcPoint( double x, double y, Point3D* result ) OVERRIDE;
5555
/**draws the points, edges and the forced lines*/
5656
//virtual void draw(QPainter* p, double xlowleft, double ylowleft, double xupright, double yupright, double width, double height) const;
5757
/**Returns a pointer to the point with number i*/
58-
virtual Point3D* getPoint( unsigned int i ) const;
58+
virtual Point3D* getPoint( unsigned int i ) const OVERRIDE;
5959
/**Returns the number of the point opposite to the triangle points p1, p2 (which have to be on a halfedge)*/
60-
int getOppositePoint( int p1, int p2 );
60+
int getOppositePoint( int p1, int p2 ) OVERRIDE;
6161
/**Finds out, in which triangle the point with coordinates x and y is and assigns the numbers of the vertices to 'n1', 'n2' and 'n3' and the vertices to 'p1', 'p2' and 'p3'*/
6262
//! @note not available in python bindings
63-
virtual bool getTriangle( double x, double y, Point3D* p1, int* n1, Point3D* p2, int* n2, Point3D* p3, int* n3 );
63+
virtual bool getTriangle( double x, double y, Point3D* p1, int* n1, Point3D* p2, int* n2, Point3D* p3, int* n3 ) OVERRIDE;
6464
/**Finds out, in which triangle the point with coordinates x and y is and assigns addresses to the points at the vertices to 'p1', 'p2' and 'p3*/
65-
virtual bool getTriangle( double x, double y, Point3D* p1, Point3D* p2, Point3D* p3 );
65+
virtual bool getTriangle( double x, double y, Point3D* p1, Point3D* p2, Point3D* p3 ) OVERRIDE;
6666
/**Returns a pointer to a value list with the information of the triangles surrounding (counterclockwise) a point. Four integer values describe a triangle, the first three are the number of the half edges of the triangle and the fourth is -10, if the third (and most counterclockwise) edge is a breakline, and -20 otherwise. The value list has to be deleted by the code which called the method*/
67-
QList<int>* getSurroundingTriangles( int pointno );
67+
QList<int>* getSurroundingTriangles( int pointno ) OVERRIDE;
6868
/**Returns the largest x-coordinate value of the bounding box*/
69-
virtual double getXMax() const;
69+
virtual double getXMax() const OVERRIDE;
7070
/**Returns the smallest x-coordinate value of the bounding box*/
71-
virtual double getXMin() const;
71+
virtual double getXMin() const OVERRIDE;
7272
/**Returns the largest y-coordinate value of the bounding box*/
73-
virtual double getYMax() const;
73+
virtual double getYMax() const OVERRIDE;
7474
/**Returns the smallest x-coordinate value of the bounding box*/
75-
virtual double getYMin() const;
75+
virtual double getYMin() const OVERRIDE;
7676
/**Returns the number of points*/
77-
virtual int getNumberOfPoints() const;
77+
virtual int getNumberOfPoints() const OVERRIDE;
7878
/**Removes the line with number i from the triangulation*/
7979
void removeLine( int i );
8080
/**Removes the point with the number i from the triangulation*/
8181
void removePoint( int i );
8282
/**Sets the behaviour of the triangulation in case of crossing forced lines*/
83-
virtual void setForcedCrossBehaviour( Triangulation::forcedCrossBehaviour b );
83+
virtual void setForcedCrossBehaviour( Triangulation::forcedCrossBehaviour b ) OVERRIDE;
8484
/**Sets the color of the normal edges*/
85-
virtual void setEdgeColor( int r, int g, int b );
85+
virtual void setEdgeColor( int r, int g, int b ) OVERRIDE;
8686
/**Sets the color of the forced edges*/
87-
virtual void setForcedEdgeColor( int r, int g, int b );
87+
virtual void setForcedEdgeColor( int r, int g, int b ) OVERRIDE;
8888
/**Sets the color of the breaklines*/
89-
virtual void setBreakEdgeColor( int r, int g, int b );
89+
virtual void setBreakEdgeColor( int r, int g, int b ) OVERRIDE;
9090
/**Sets an interpolator object*/
91-
void setTriangleInterpolator( TriangleInterpolator* interpolator );
91+
void setTriangleInterpolator( TriangleInterpolator* interpolator ) OVERRIDE;
9292
/**Eliminates the horizontal triangles by swapping or by insertion of new points*/
93-
void eliminateHorizontalTriangles();
93+
void eliminateHorizontalTriangles() OVERRIDE;
9494
/**Adds points to make the triangles better shaped (algorithm of ruppert)*/
95-
virtual void ruppertRefinement();
95+
virtual void ruppertRefinement() OVERRIDE;
9696
/**Returns true, if the point with coordinates x and y is inside the convex hull and false otherwise*/
97-
bool pointInside( double x, double y );
97+
bool pointInside( double x, double y ) OVERRIDE;
9898
/**Reads the dual edge structure of a taff file*/
9999
//bool readFromTAFF(QString fileName);
100100
/**Saves the dual edge structure to a taff file*/
101101
//bool saveToTAFF(QString fileName) const;
102102
/**Swaps the edge which is closest to the point with x and y coordinates (if this is possible)*/
103-
virtual bool swapEdge( double x, double y );
103+
virtual bool swapEdge( double x, double y ) OVERRIDE;
104104
/**Returns a value list with the numbers of the four points, which would be affected by an edge swap. This function is e.g. needed by NormVecDecorator to know the points, for which the normals have to be recalculated. The returned ValueList has to be deleted by the code which calls the method*/
105-
virtual QList<int>* getPointsAroundEdge( double x, double y );
105+
virtual QList<int>* getPointsAroundEdge( double x, double y ) OVERRIDE;
106106
/**Saves the triangulation as a (line) shapefile
107107
@return true in case of success*/
108-
virtual bool saveAsShapefile( const QString& fileName ) const;
108+
virtual bool saveAsShapefile( const QString& fileName ) const OVERRIDE;
109109

110110
protected:
111111
/**X-coordinate of the upper right corner of the bounding box*/

src/analysis/interpolation/LinTriangleInterpolator.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ class ANALYSIS_EXPORT LinTriangleInterpolator : public TriangleInterpolator
3131
/** Destructor*/
3232
virtual ~LinTriangleInterpolator();
3333
/**Calculates the normal vector and assigns it to vec*/
34-
virtual bool calcNormVec( double x, double y, Vector3D* result );
34+
virtual bool calcNormVec( double x, double y, Vector3D* result ) OVERRIDE;
3535
/**Performs a linear interpolation in a triangle and assigns the x-,y- and z-coordinates to point*/
36-
virtual bool calcPoint( double x, double y, Point3D* result );
36+
virtual bool calcPoint( double x, double y, Point3D* result ) OVERRIDE;
3737
/**Returns a pointer to the current Triangulation object*/
3838
virtual DualEdgeTriangulation* getTriangulation() const;
3939
/**Sets a Triangulation*/

src/analysis/interpolation/NormVecDecorator.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ class ANALYSIS_EXPORT NormVecDecorator: public TriDecorator
3333
NormVecDecorator( Triangulation* tin );
3434
virtual ~NormVecDecorator();
3535
/**Adds a point to the triangulation*/
36-
int addPoint( Point3D* p );
36+
int addPoint( Point3D* p ) OVERRIDE;
3737
/**Calculates the normal at a point on the surface and assigns it to 'result'. Returns true in case of success and false in case of failure*/
38-
bool calcNormal( double x, double y, Vector3D* result );
38+
bool calcNormal( double x, double y, Vector3D* result ) OVERRIDE;
3939
/**Calculates the normal of a triangle-point for the point with coordinates x and y. This is needed, if a point is on a break line and there is no unique normal stored in 'mNormVec'. Returns false, it something went wrong and true otherwise*/
4040
bool calcNormalForPoint( double x, double y, int point, Vector3D* result );
4141
/**Calculates x-, y and z-value of the point on the surface and assigns it to 'result'. Returns true in case of success and flase in case of failure*/
42-
bool calcPoint( double x, double y, Point3D* result );
42+
bool calcPoint( double x, double y, Point3D* result ) OVERRIDE;
4343
/**Eliminates the horizontal triangles by swapping or by insertion of new points. If alreadyestimated is true, a re-estimation of the normals will be done*/
44-
virtual void eliminateHorizontalTriangles();
44+
virtual void eliminateHorizontalTriangles() OVERRIDE;
4545
/**Estimates the first derivative a point. Return true in case of succes and false otherwise*/
4646
bool estimateFirstDerivative( int pointno );
4747
/**This method adds the functionality of estimating normals at the data points. Return true in the case of success and false otherwise*/
@@ -56,12 +56,12 @@ class ANALYSIS_EXPORT NormVecDecorator: public TriDecorator
5656
/**Returns the state of the point with the number 'pointno'*/
5757
pointState getState( int pointno ) const;
5858
/**Sets an interpolator*/
59-
void setTriangleInterpolator( TriangleInterpolator* inter );
59+
void setTriangleInterpolator( TriangleInterpolator* inter ) OVERRIDE;
6060
/**Swaps the edge which is closest to the point with x and y coordinates (if this is possible) and forces recalculation of the concerned normals (if alreadyestimated is true)*/
61-
virtual bool swapEdge( double x, double y );
61+
virtual bool swapEdge( double x, double y ) OVERRIDE;
6262
/**Saves the triangulation as a (line) shapefile
6363
@return true in case of success*/
64-
virtual bool saveAsShapefile( const QString& fileName ) const;
64+
virtual bool saveAsShapefile( const QString& fileName ) const OVERRIDE;
6565

6666
protected:
6767
/**Is true, if the normals already have been estimated*/

src/analysis/interpolation/TriDecorator.h

+25-25
Original file line numberDiff line numberDiff line change
@@ -26,35 +26,35 @@ class TriDecorator: public Triangulation
2626
TriDecorator();
2727
TriDecorator( Triangulation* t );
2828
virtual ~TriDecorator();
29-
virtual void addLine( Line3D* line, bool breakline );
30-
virtual int addPoint( Point3D* p );
29+
virtual void addLine( Line3D* line, bool breakline ) OVERRIDE;
30+
virtual int addPoint( Point3D* p ) OVERRIDE;
3131
/**Adds an association to a triangulation*/
3232
virtual void addTriangulation( Triangulation* t );
3333
/**Performs a consistency check, remove this later*/
34-
virtual void performConsistencyTest();
35-
virtual bool calcNormal( double x, double y, Vector3D* result );
36-
virtual bool calcPoint( double x, double y, Point3D* result );
37-
virtual Point3D* getPoint( unsigned int i ) const;
38-
virtual int getNumberOfPoints() const;
34+
virtual void performConsistencyTest() OVERRIDE;
35+
virtual bool calcNormal( double x, double y, Vector3D* result ) OVERRIDE;
36+
virtual bool calcPoint( double x, double y, Point3D* result ) OVERRIDE;
37+
virtual Point3D* getPoint( unsigned int i ) const OVERRIDE;
38+
virtual int getNumberOfPoints() const OVERRIDE;
3939
//! @note not available in python bindings
40-
bool getTriangle( double x, double y, Point3D* p1, int* n1, Point3D* p2, int* n2, Point3D* p3, int* n3 );
41-
bool getTriangle( double x, double y, Point3D* p1, Point3D* p2, Point3D* p3 );
42-
virtual int getOppositePoint( int p1, int p2 );
43-
virtual QList<int>* getSurroundingTriangles( int pointno );
44-
virtual double getXMax() const;
45-
virtual double getXMin() const;
46-
virtual double getYMax() const;
47-
virtual double getYMin() const;
48-
virtual void setForcedCrossBehaviour( Triangulation::forcedCrossBehaviour b );
49-
virtual void setEdgeColor( int r, int g, int b );
50-
virtual void setForcedEdgeColor( int r, int g, int b );
51-
virtual void setBreakEdgeColor( int r, int g, int b );
52-
virtual void setTriangleInterpolator( TriangleInterpolator* interpolator );
53-
virtual void eliminateHorizontalTriangles();
54-
virtual void ruppertRefinement();
55-
virtual bool pointInside( double x, double y );
56-
virtual bool swapEdge( double x, double y );
57-
virtual QList<int>* getPointsAroundEdge( double x, double y );
40+
bool getTriangle( double x, double y, Point3D* p1, int* n1, Point3D* p2, int* n2, Point3D* p3, int* n3 ) OVERRIDE;
41+
bool getTriangle( double x, double y, Point3D* p1, Point3D* p2, Point3D* p3 ) OVERRIDE;
42+
virtual int getOppositePoint( int p1, int p2 ) OVERRIDE;
43+
virtual QList<int>* getSurroundingTriangles( int pointno ) OVERRIDE;
44+
virtual double getXMax() const OVERRIDE;
45+
virtual double getXMin() const OVERRIDE;
46+
virtual double getYMax() const OVERRIDE;
47+
virtual double getYMin() const OVERRIDE;
48+
virtual void setForcedCrossBehaviour( Triangulation::forcedCrossBehaviour b ) OVERRIDE;
49+
virtual void setEdgeColor( int r, int g, int b ) OVERRIDE;
50+
virtual void setForcedEdgeColor( int r, int g, int b ) OVERRIDE;
51+
virtual void setBreakEdgeColor( int r, int g, int b ) OVERRIDE;
52+
virtual void setTriangleInterpolator( TriangleInterpolator* interpolator ) OVERRIDE;
53+
virtual void eliminateHorizontalTriangles() OVERRIDE;
54+
virtual void ruppertRefinement() OVERRIDE;
55+
virtual bool pointInside( double x, double y ) OVERRIDE;
56+
virtual bool swapEdge( double x, double y ) OVERRIDE;
57+
virtual QList<int>* getPointsAroundEdge( double x, double y ) OVERRIDE;
5858
protected:
5959
/**Association with a Triangulation object*/
6060
Triangulation* mTIN;

src/analysis/interpolation/qgsidwinterpolator.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ANALYSIS_EXPORT QgsIDWInterpolator: public QgsInterpolator
3131
@param y y-coordinate (in map units)
3232
@param result out: interpolation result
3333
@return 0 in case of success*/
34-
int interpolatePoint( double x, double y, double& result );
34+
int interpolatePoint( double x, double y, double& result ) OVERRIDE;
3535

3636
void setDistanceCoefficient( double p ) {mDistanceCoefficient = p;}
3737

src/analysis/interpolation/qgstininterpolator.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ANALYSIS_EXPORT QgsTINInterpolator: public QgsInterpolator
4343
@param y y-coordinate (in map units)
4444
@param result out: interpolation result
4545
@return 0 in case of success*/
46-
int interpolatePoint( double x, double y, double& result );
46+
int interpolatePoint( double x, double y, double& result ) OVERRIDE;
4747

4848
void setExportTriangulationToFile( bool e ) {mExportTriangulationToFile = e;}
4949
void setTriangulationFilePath( const QString& filepath ) {mTriangulationFilePath = filepath;}

src/analysis/network/qgsdistancearcproperter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
class ANALYSIS_EXPORT QgsDistanceArcProperter : public QgsArcProperter
2626
{
2727
public:
28-
virtual QVariant property( double distance, const QgsFeature& ) const;
28+
virtual QVariant property( double distance, const QgsFeature& ) const OVERRIDE;
2929
};
3030
#endif //QGSEDGEDISTANCEPROPERTYH

src/analysis/network/qgsgraphbuilder.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ class ANALYSIS_EXPORT QgsGraphBuilder : public QgsGraphBuilderInterface
4646
/*
4747
* MANDATORY BUILDER PROPERTY DECLARATION
4848
*/
49-
virtual void addVertex( int id, const QgsPoint& pt );
49+
virtual void addVertex( int id, const QgsPoint& pt ) OVERRIDE;
5050

51-
virtual void addArc( int pt1id, const QgsPoint& pt1, int pt2id, const QgsPoint& pt2, const QVector< QVariant >& prop );
51+
virtual void addArc( int pt1id, const QgsPoint& pt1, int pt2id, const QgsPoint& pt2, const QVector< QVariant >& prop ) OVERRIDE;
5252

5353
/**
5454
* return QgsGraph result;

src/analysis/network/qgslinevectorlayerdirector.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ class ANALYSIS_EXPORT QgsLineVectorLayerDirector : public QgsGraphDirector
5858
*/
5959
void makeGraph( QgsGraphBuilderInterface *builder,
6060
const QVector< QgsPoint >& additionalPoints,
61-
QVector< QgsPoint>& tiedPoints ) const;
61+
QVector< QgsPoint>& tiedPoints ) const OVERRIDE;
6262

63-
QString name() const;
63+
QString name() const OVERRIDE;
6464

6565
private:
6666
QgsVectorLayer *mVectorLayer;

src/analysis/raster/qgsaspectfilter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ANALYSIS_EXPORT QgsAspectFilter: public QgsDerivativeFilter
3131
nodata value if not present or outside of the border. Must be implemented by subclasses*/
3232
float processNineCellWindow( float* x11, float* x21, float* x31,
3333
float* x12, float* x22, float* x32,
34-
float* x13, float* x23, float* x33 );
34+
float* x13, float* x23, float* x33 ) OVERRIDE;
3535

3636
};
3737

src/analysis/raster/qgsderivativefilter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ANALYSIS_EXPORT QgsDerivativeFilter : public QgsNineCellFilter
2929
//to be implemented by subclasses
3030
virtual float processNineCellWindow( float* x11, float* x21, float* x31,
3131
float* x12, float* x22, float* x32,
32-
float* x13, float* x23, float* x33 ) = 0;
32+
float* x13, float* x23, float* x33 ) OVERRIDE = 0;
3333

3434
protected:
3535
/**Calculates the first order derivative in x-direction according to Horn (1981)*/

0 commit comments

Comments
 (0)