mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-18 00:06:00 -04:00
prepare-commit.sh: remove trailing blanks from python files
This commit is contained in:
parent
0a707fbc27
commit
ac29c5b11f
@ -29,7 +29,7 @@ class QgsArcProperter
|
|||||||
* default constructor
|
* default constructor
|
||||||
*/
|
*/
|
||||||
QgsArcProperter();
|
QgsArcProperter();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* QgsGraphDirector call this method for fetching attribute from source layer
|
* QgsGraphDirector call this method for fetching attribute from source layer
|
||||||
* \return required attributes list
|
* \return required attributes list
|
||||||
|
@ -4,7 +4,7 @@ class QgsDistanceArcProperter : QgsArcProperter
|
|||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsdistancearcproperter.h>
|
#include <qgsdistancearcproperter.h>
|
||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual QVariant property( double distance, const QgsFeature& ) const;
|
virtual QVariant property( double distance, const QgsFeature& ) const;
|
||||||
};
|
};
|
||||||
|
@ -3,7 +3,7 @@ class QgsGraphAnalyzer
|
|||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsgraphanalyzer.h>
|
#include <qgsgraphanalyzer.h>
|
||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* solve shortest path problem using dijkstra algorithm
|
* solve shortest path problem using dijkstra algorithm
|
||||||
@ -17,8 +17,8 @@ class QgsGraphAnalyzer
|
|||||||
%MethodCode
|
%MethodCode
|
||||||
QVector< int > treeResult;
|
QVector< int > treeResult;
|
||||||
QVector< double > costResult;
|
QVector< double > costResult;
|
||||||
QgsGraphAnalyzer::dijkstra( a0, a1, a2, &treeResult, &costResult );
|
QgsGraphAnalyzer::dijkstra( a0, a1, a2, &treeResult, &costResult );
|
||||||
|
|
||||||
PyObject *l1 = PyList_New( treeResult.size() );
|
PyObject *l1 = PyList_New( treeResult.size() );
|
||||||
if ( l1 == NULL )
|
if ( l1 == NULL )
|
||||||
{
|
{
|
||||||
@ -31,13 +31,13 @@ class QgsGraphAnalyzer
|
|||||||
}
|
}
|
||||||
int i;
|
int i;
|
||||||
for ( i = 0; i < costResult.size(); ++i )
|
for ( i = 0; i < costResult.size(); ++i )
|
||||||
{
|
{
|
||||||
PyObject *Int = PyInt_FromLong( treeResult[i] );
|
PyObject *Int = PyInt_FromLong( treeResult[i] );
|
||||||
PyList_SET_ITEM( l1, i, Int );
|
PyList_SET_ITEM( l1, i, Int );
|
||||||
PyObject *Float = PyFloat_FromDouble( costResult[i] );
|
PyObject *Float = PyFloat_FromDouble( costResult[i] );
|
||||||
PyList_SET_ITEM( l2, i, Float );
|
PyList_SET_ITEM( l2, i, Float );
|
||||||
}
|
}
|
||||||
|
|
||||||
sipRes = PyTuple_New( 2 );
|
sipRes = PyTuple_New( 2 );
|
||||||
PyTuple_SET_ITEM( sipRes, 0, l1 );
|
PyTuple_SET_ITEM( sipRes, 0, l1 );
|
||||||
PyTuple_SET_ITEM( sipRes, 1, l2 );
|
PyTuple_SET_ITEM( sipRes, 1, l2 );
|
||||||
|
@ -24,20 +24,20 @@ class QgsGraphBuilderInterface
|
|||||||
/**
|
/**
|
||||||
* QgsGraphBuilderInterface constructor
|
* QgsGraphBuilderInterface constructor
|
||||||
* @param crs Coordinate reference system for new graph vertex
|
* @param crs Coordinate reference system for new graph vertex
|
||||||
* @param ctfEnabled enable coordinate transform from source graph CRS to CRS graph
|
* @param ctfEnabled enable coordinate transform from source graph CRS to CRS graph
|
||||||
* @param topologyTolerance sqrt distance between source point as one graph vertex
|
* @param topologyTolerance sqrt distance between source point as one graph vertex
|
||||||
* @param ellipsoidID ellipsoid for edge measurement
|
* @param ellipsoidID ellipsoid for edge measurement
|
||||||
*/
|
*/
|
||||||
QgsGraphBuilderInterface( const QgsCoordinateReferenceSystem& crs, bool ctfEnabled = true, double topologyTolerance = 0.0, const QString& ellipsoidID = "WGS84" );
|
QgsGraphBuilderInterface( const QgsCoordinateReferenceSystem& crs, bool ctfEnabled = true, double topologyTolerance = 0.0, const QString& ellipsoidID = "WGS84" );
|
||||||
|
|
||||||
QgsCoordinateReferenceSystem& destinationCrs();
|
QgsCoordinateReferenceSystem& destinationCrs();
|
||||||
|
|
||||||
//! get coordinate transformation enabled
|
//! get coordinate transformation enabled
|
||||||
bool coordinateTransformationEnabled();
|
bool coordinateTransformationEnabled();
|
||||||
|
|
||||||
//! get topology tolerance
|
//! get topology tolerance
|
||||||
double topologyTolerance();
|
double topologyTolerance();
|
||||||
|
|
||||||
//! get measurement tool
|
//! get measurement tool
|
||||||
QgsDistanceArea* distanceArea();
|
QgsDistanceArea* distanceArea();
|
||||||
|
|
||||||
@ -59,5 +59,5 @@ class QgsGraphBuilderInterface
|
|||||||
* @note pt1id, pt1 and pt2id, pt2 is a redundant interface. You can use vertex coordinates or their identificators.
|
* @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 );
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -20,7 +20,7 @@ class QgsGraphDirector : QObject
|
|||||||
sipClass = NULL;
|
sipClass = NULL;
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void buildProgress( int, int ) const;
|
void buildProgress( int, int ) const;
|
||||||
void buildMessage( QString ) const;
|
void buildMessage( QString ) const;
|
||||||
@ -43,9 +43,9 @@ class QgsGraphDirector : QObject
|
|||||||
virtual void makeGraph( QgsGraphBuilderInterface *builder,
|
virtual void makeGraph( QgsGraphBuilderInterface *builder,
|
||||||
const QVector< QgsPoint > &additionalPoints,
|
const QVector< QgsPoint > &additionalPoints,
|
||||||
QVector< QgsPoint> &tiedPoints /Out/ );
|
QVector< QgsPoint> &tiedPoints /Out/ );
|
||||||
|
|
||||||
void addProperter( QgsArcProperter* prop /Transfer/ ) ;
|
void addProperter( QgsArcProperter* prop /Transfer/ ) ;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* return Director name
|
* return Director name
|
||||||
*/
|
*/
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
class QgsPoint
|
class QgsPoint
|
||||||
{
|
{
|
||||||
|
|
||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
@ -11,7 +11,7 @@ class QgsPoint
|
|||||||
public:
|
public:
|
||||||
/// Default constructor
|
/// Default constructor
|
||||||
QgsPoint();
|
QgsPoint();
|
||||||
|
|
||||||
/*! Create a point from another point */
|
/*! Create a point from another point */
|
||||||
QgsPoint( const QgsPoint& p );
|
QgsPoint( const QgsPoint& p );
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ class QgsPoint
|
|||||||
* @param y y coordinate
|
* @param y y coordinate
|
||||||
*/
|
*/
|
||||||
void setY( double y );
|
void setY( double y );
|
||||||
|
|
||||||
/*! Sets the x and y value of the point */
|
/*! Sets the x and y value of the point */
|
||||||
void set( double x, double y );
|
void set( double x, double y );
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ class QgsPoint
|
|||||||
|
|
||||||
|
|
||||||
SIP_PYOBJECT __getitem__(int);
|
SIP_PYOBJECT __getitem__(int);
|
||||||
%MethodCode
|
%MethodCode
|
||||||
if (a0 == 0) {
|
if (a0 == 0) {
|
||||||
sipRes = Py_BuildValue("d",sipCpp->x());
|
sipRes = Py_BuildValue("d",sipCpp->x());
|
||||||
} else if (a0 == 1) {
|
} else if (a0 == 1) {
|
||||||
|
@ -65,7 +65,7 @@ class QgsRasterBlock
|
|||||||
bool convert( QGis::DataType destDataType );
|
bool convert( QGis::DataType destDataType );
|
||||||
QImage image() const;
|
QImage image() const;
|
||||||
bool setImage( const QImage * image );
|
bool setImage( const QImage * image );
|
||||||
|
|
||||||
static bool valueInRange( double value, const QList<QgsRasterBlock::Range> &rangeList );
|
static bool valueInRange( double value, const QList<QgsRasterBlock::Range> &rangeList );
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -68,10 +68,10 @@ class QgsRasterInterface
|
|||||||
|
|
||||||
/** Returns a bitmask containing the supported capabilities */
|
/** Returns a bitmask containing the supported capabilities */
|
||||||
virtual int capabilities() const;
|
virtual int capabilities() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the above in friendly format.
|
* Returns the above in friendly format.
|
||||||
*/
|
*/
|
||||||
QString capabilitiesString() const;
|
QString capabilitiesString() const;
|
||||||
|
|
||||||
/** Returns data type for the band specified by number */
|
/** Returns data type for the band specified by number */
|
||||||
@ -163,14 +163,14 @@ class QgsRasterInterface
|
|||||||
const QgsRectangle & theExtent,
|
const QgsRectangle & theExtent,
|
||||||
int theSampleSize,
|
int theSampleSize,
|
||||||
bool theIncludeOutOfRange );
|
bool theIncludeOutOfRange );
|
||||||
|
|
||||||
/** \brief Returns true if histogram is available (cached, already calculated), the parameters are the same as in histogram()
|
/** \brief Returns true if histogram is available (cached, already calculated), the parameters are the same as in histogram()
|
||||||
* @note theBinCount, theMinimun and theMaximum not optional in python bindings
|
* @note theBinCount, theMinimun and theMaximum not optional in python bindings
|
||||||
*/
|
*/
|
||||||
virtual bool hasHistogram( int theBandNo,
|
virtual bool hasHistogram( int theBandNo,
|
||||||
int theBinCount,
|
int theBinCount,
|
||||||
double theMinimum,
|
double theMinimum,
|
||||||
double theMaximum,
|
double theMaximum,
|
||||||
const QgsRectangle & theExtent,
|
const QgsRectangle & theExtent,
|
||||||
int theSampleSize,
|
int theSampleSize,
|
||||||
bool theIncludeOutOfRange );
|
bool theIncludeOutOfRange );
|
||||||
|
@ -17,7 +17,7 @@ class QgsVectorColorRampV2
|
|||||||
virtual ~QgsVectorColorRampV2();
|
virtual ~QgsVectorColorRampV2();
|
||||||
|
|
||||||
virtual int count() const = 0;
|
virtual int count() const = 0;
|
||||||
|
|
||||||
virtual double value( int index ) const = 0;
|
virtual double value( int index ) const = 0;
|
||||||
|
|
||||||
virtual QColor color( double value ) const = 0;
|
virtual QColor color( double value ) const = 0;
|
||||||
|
@ -5,7 +5,7 @@ class QgsAnnotationItem: QgsMapCanvasItem
|
|||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsannotationitem.h>
|
#include <qgsannotationitem.h>
|
||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum MouseMoveAction
|
enum MouseMoveAction
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ class QgsMapCanvasItem : QGraphicsItem
|
|||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsmapcanvasitem.h>
|
#include <qgsmapcanvasitem.h>
|
||||||
%End
|
%End
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
//! protected constructor: cannot be constructed directly
|
//! protected constructor: cannot be constructed directly
|
||||||
|
@ -28,7 +28,7 @@ class QgsMapTool : QObject
|
|||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! virtual destructor
|
//! virtual destructor
|
||||||
virtual ~QgsMapTool();
|
virtual ~QgsMapTool();
|
||||||
|
|
||||||
@ -118,5 +118,5 @@ class QgsMapTool : QObject
|
|||||||
//! transformation from map coordinates to screen coordinates
|
//! transformation from map coordinates to screen coordinates
|
||||||
QPoint toCanvasCoordinates( const QgsPoint& point );
|
QPoint toCanvasCoordinates( const QgsPoint& point );
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -4,7 +4,7 @@ class QgsMapToolEmitPoint : QgsMapTool
|
|||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsmaptoolemitpoint.h>
|
#include <qgsmaptoolemitpoint.h>
|
||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! constructor
|
//! constructor
|
||||||
QgsMapToolEmitPoint( QgsMapCanvas* canvas );
|
QgsMapToolEmitPoint( QgsMapCanvas* canvas );
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/** QgsQuickPrint is a convenience class to quickly print a
|
/** QgsQuickPrint is a convenience class to quickly print a
|
||||||
preformatted map to pdf.
|
preformatted map to pdf.
|
||||||
*/
|
*/
|
||||||
class QgsQuickPrint : QObject
|
class QgsQuickPrint : QObject
|
||||||
|
@ -4,7 +4,7 @@ class QgsRasterFormatSaveOptionsWidget : QWidget
|
|||||||
%TypeHeaderCode
|
%TypeHeaderCode
|
||||||
#include <qgsrasterformatsaveoptionswidget.h>
|
#include <qgsrasterformatsaveoptionswidget.h>
|
||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
enum Type
|
enum Type
|
||||||
|
@ -6,7 +6,7 @@ class QgsVertexMarker : QgsMapCanvasItem
|
|||||||
%End
|
%End
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! Icons
|
//! Icons
|
||||||
enum IconType
|
enum IconType
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user