Skip to content

Commit

Permalink
Merge branch 'master' of github.com:qgis/Quantum-GIS
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Sep 27, 2012
2 parents db7b26f + 126b897 commit d5f6543
Show file tree
Hide file tree
Showing 31 changed files with 96 additions and 69 deletions.
2 changes: 1 addition & 1 deletion python/analysis/interpolation/Triangulation.sip
Expand Up @@ -9,7 +9,7 @@ class Triangulation
enum forcedCrossBehaviour {SnappingType_VERTICE, DELETE_FIRST, INSERT_VERTICE};
virtual ~Triangulation();
/**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*/
virtual void addLine( Line3D* line, bool breakline ) = 0;
virtual void addLine( Line3D* line /Transfer/, bool breakline ) = 0;
/**Adds a point to the triangulation*/
virtual int addPoint( Point3D* p ) = 0;
/**Calculates the normal at a point on the surface and assigns it to 'result'. Returns true in case of success and flase in case of failure*/
Expand Down
4 changes: 2 additions & 2 deletions python/core/composer/qgscomposerlegenditem.sip
Expand Up @@ -50,7 +50,7 @@ class QgsComposerSymbolItem : QgsComposerLegendItem
virtual void readXML( const QDomElement& itemElem, bool xServerAvailable = true );

/**Set symbol (takes ownership)*/
void setSymbol( QgsSymbol* s );
void setSymbol( QgsSymbol* s /Transfer/ );
QgsSymbol* symbol();

void setLayerID( const QString& id );
Expand All @@ -77,7 +77,7 @@ class QgsComposerSymbolV2Item: QgsComposerLegendItem
virtual void readXML( const QDomElement& itemElem, bool xServerAvailable = true );

/**Set symbol (takes ownership)*/
void setSymbolV2( QgsSymbolV2* s );
void setSymbolV2( QgsSymbolV2* s /Transfer/ );
QgsSymbolV2* symbolV2();

ItemType itemType() const;
Expand Down
4 changes: 2 additions & 2 deletions python/core/gps/qgsgpsconnection.sip
Expand Up @@ -69,15 +69,15 @@ class QgsGPSConnection: QObject
/**Constructor
@param dev input device for the connection (e.g. serial device). The class takes ownership of the object
*/
QgsGPSConnection( QIODevice* dev );
QgsGPSConnection( QIODevice* dev /Transfer/ );
virtual ~QgsGPSConnection();
/**Opens connection to device*/
bool connect();
/**Closes connection to device*/
bool close();

/**Sets the GPS source. The class takes ownership of the device class*/
void setSource( QIODevice* source );
void setSource( QIODevice* source /Transfer/ );

/**Returns the status. Possible state are not connected, connected, data received*/
Status status() const;
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsoverlayobject.sip
Expand Up @@ -35,7 +35,7 @@ class QgsOverlayObject
void setWidth( int width );
void setRotation( double rotation );
/**Set geometry. This class takes ownership of the object*/
void setGeometry( QgsGeometry* g );
void setGeometry( QgsGeometry* g /Transfer/ );
/**Adds a position in map coordinates*/
void addPosition( const QgsPoint& position );
};
2 changes: 1 addition & 1 deletion python/core/qgsproject.sip
Expand Up @@ -245,7 +245,7 @@ class QgsProject : QObject
/** Change handler for missing layers.
Deletes old handler and takes ownership of the new one.
@note added in 1.4 */
void setBadLayerHandler( QgsProjectBadLayerHandler* handler );
void setBadLayerHandler( QgsProjectBadLayerHandler* handler /Transfer/ );

/**Returns project file path if layer is embedded from other project file. Returns empty string if layer is not embedded*/
QString layerIsEmbedded( const QString& id ) const;
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgspythonrunner.sip
Expand Up @@ -15,7 +15,7 @@ class QgsPythonRunner
/** assign an instance of python runner so that run() can be used.
This method should be called during app initialization.
Takes ownership of the object, deletes previous instance. */
static void setInstance( QgsPythonRunner* runner );
static void setInstance( QgsPythonRunner* runner /Transfer/ );

protected:
/** protected constructor: can be instantiated only from children */
Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsrasterdataprovider.sip
Expand Up @@ -85,7 +85,7 @@ class QgsRasterDataProvider : QgsDataProvider, QgsRasterInterface
virtual QgsRasterInterface * clone() const = 0;

/* It makes no sense to set input on provider */
bool setInput( QgsRasterInterface* input /Transfer/ );
bool setInput( QgsRasterInterface* input );

/**
* Add the list of WMS layer names to be rendered by this server
Expand Down
36 changes: 18 additions & 18 deletions python/core/qgsrasterrenderer.sip
Expand Up @@ -28,7 +28,7 @@ class QgsRasterRenderer : QgsRasterInterface
public:
QgsRasterRenderer( QgsRasterDataProvider* provider, const QString& type );
virtual ~QgsRasterRenderer();
virtual QgsRasterInterface * clone() const = 0;
virtual QgsRasterInterface * clone() const = 0 /Factory/;

virtual QString type() const;
virtual void * readBlock( int bandNo, const QgsRectangle & extent, int width, int height );
Expand Down Expand Up @@ -65,17 +65,17 @@ class QgsPalettedRasterRenderer: QgsRasterRenderer
%End
public:
/**Renderer owns color array*/
QgsPalettedRasterRenderer( QgsRasterDataProvider* provider, int bandNumber, QColor* colorArray, int nColors );
QgsPalettedRasterRenderer( QgsRasterDataProvider* provider, int bandNumber, QColor* colorArray /Transfer,Array/, int nColors /ArraySize/ );
~QgsPalettedRasterRenderer();
QgsRasterInterface * clone();
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider );
QgsRasterInterface * clone() /Factory/;
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;

void * readBlock( int bandNo, const QgsRectangle & extent, int width, int height );

/**Returns number of colors*/
int nColors() const;
/**Returns copy of color array (caller takes ownership)*/
QColor* colors() const;
QColor* colors() const /TransferBack/;

void writeXML( QDomDocument& doc, QDomElement& parentElem ) const;

Expand All @@ -92,9 +92,9 @@ class QgsMultiBandColorRenderer: QgsRasterRenderer
QgsContrastEnhancement* redEnhancement = 0, QgsContrastEnhancement* greenEnhancement = 0,
QgsContrastEnhancement* blueEnhancement = 0 );
~QgsMultiBandColorRenderer();
QgsRasterInterface * clone();
QgsRasterInterface * clone() /Factory/;

static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider );
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;

void * readBlock( int bandNo, const QgsRectangle & extent, int width, int height );

Expand All @@ -107,15 +107,15 @@ class QgsMultiBandColorRenderer: QgsRasterRenderer

const QgsContrastEnhancement* redContrastEnhancement() const;
/**Takes ownership*/
void setRedContrastEnhancement( QgsContrastEnhancement* ce );
void setRedContrastEnhancement( QgsContrastEnhancement* ce /Transfer/ );

const QgsContrastEnhancement* greenContrastEnhancement() const;
/**Takes ownership*/
void setGreenContrastEnhancement( QgsContrastEnhancement* ce );
void setGreenContrastEnhancement( QgsContrastEnhancement* ce /Transfer/ );

const QgsContrastEnhancement* blueContrastEnhancement() const;
/**Takes ownership*/
void setBlueContrastEnhancement( QgsContrastEnhancement* ce );
void setBlueContrastEnhancement( QgsContrastEnhancement* ce /Transfer/ );

void writeXML( QDomDocument& doc, QDomElement& parentElem ) const;
};
Expand All @@ -129,14 +129,14 @@ class QgsSingleBandPseudoColorRenderer: QgsRasterRenderer
/**Note: takes ownership of QgsRasterShader*/
QgsSingleBandPseudoColorRenderer( QgsRasterDataProvider* provider, int band, QgsRasterShader* shader /Transfer/ );
~QgsSingleBandPseudoColorRenderer();
QgsRasterInterface * clone();
QgsRasterInterface * clone() /Factory/;

static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider );
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;

void * readBlock( int bandNo, const QgsRectangle & extent, int width, int height );

/**Takes ownership of the shader*/
void setShader( QgsRasterShader* shader );
void setShader( QgsRasterShader* shader /Transfer/ );
QgsRasterShader* shader();

void writeXML( QDomDocument& doc, QDomElement& parentElem ) const;
Expand All @@ -152,17 +152,17 @@ class QgsSingleBandGrayRenderer: QgsRasterRenderer
public:
QgsSingleBandGrayRenderer( QgsRasterDataProvider* provider, int grayBand );
~QgsSingleBandGrayRenderer();
QgsRasterInterface * clone();
QgsRasterInterface * clone() /Factory/;

static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider );
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;

void * readBlock( int bandNo, const QgsRectangle & extent, int width, int height );

int grayBand() const;
void setGrayBand( int band );
const QgsContrastEnhancement* contrastEnhancement() const;
/**Takes ownership*/
void setContrastEnhancement( QgsContrastEnhancement* ce );
void setContrastEnhancement( QgsContrastEnhancement* ce /Transfer/ );

void writeXML( QDomDocument& doc, QDomElement& parentElem ) const;

Expand All @@ -177,9 +177,9 @@ class QgsSingleBandColorDataRenderer: QgsRasterRenderer
public:
QgsSingleBandColorDataRenderer( QgsRasterDataProvider* provider, int band );
~QgsSingleBandColorDataRenderer();
QgsRasterInterface * clone();
QgsRasterInterface * clone() /Factory/;

static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider );
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;

void * readBlock( int bandNo, const QgsRectangle & extent, int width, int height );

Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsrendercontext.sip
Expand Up @@ -39,7 +39,7 @@ class QgsRenderContext
//setters

/**Sets coordinate transformation. QgsRenderContext takes ownership and deletes if necessary*/
void setCoordinateTransform( QgsCoordinateTransform* t );
void setCoordinateTransform( QgsCoordinateTransform* t /Transfer/ );
void setMapToPixel( const QgsMapToPixel& mtp );
void setExtent( const QgsRectangle& extent );
void setDrawEditingInformation( bool b );
Expand Down
4 changes: 2 additions & 2 deletions python/core/qgssnapper.sip
Expand Up @@ -76,10 +76,10 @@ class QgsSnapper
@param snappingResult the list where the results are inserted (everything in map coordinate system)
@param excludePoints a list with (map coordinate) points that should be excluded in the snapping result. Useful e.g. for vertex moves where a vertex should not be snapped to its original position
@return 0 in case of success*/
int snapPoint( const QPoint& startPoint, QList<QgsSnappingResult>& snappingResult, const QList<QgsPoint>& excludePoints = QList<QgsPoint>() );
int snapPoint( const QPoint& startPoint, QList<QgsSnappingResult>& snappingResult /Out/, const QList<QgsPoint>& excludePoints = QList<QgsPoint>() );

//setters
void setSnapLayers( const QList<QgsSnapper::SnapLayer>& snapLayers );
void setSnapMode( QgsSnapper::SnappingMode snapMode );

};
};
2 changes: 1 addition & 1 deletion python/core/qgsvectorlayer.sip
Expand Up @@ -193,7 +193,7 @@ class QgsVectorLayer : QgsMapLayer
void setRenderer( QgsRenderer * r /Transfer/ );

/** Sets diagram rendering object (takes ownership) */
void setDiagramRenderer( QgsDiagramRendererV2* r );
void setDiagramRenderer( QgsDiagramRendererV2* r /Transfer/ );
const QgsDiagramRendererV2* diagramRenderer() const;

void setDiagramLayerSettings( const QgsDiagramLayerSettings& s );
Expand Down
10 changes: 5 additions & 5 deletions python/core/raster/qgsmultibandcolorrenderer.sip
Expand Up @@ -8,9 +8,9 @@ class QgsMultiBandColorRenderer: QgsRasterRenderer
QgsContrastEnhancement* redEnhancement = 0, QgsContrastEnhancement* greenEnhancement = 0,
QgsContrastEnhancement* blueEnhancement = 0 );
~QgsMultiBandColorRenderer();
QgsRasterInterface * clone();
QgsRasterInterface * clone() /Factory/;

static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider );
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;

void * readBlock( int bandNo, const QgsRectangle & extent, int width, int height );

Expand All @@ -23,15 +23,15 @@ class QgsMultiBandColorRenderer: QgsRasterRenderer

const QgsContrastEnhancement* redContrastEnhancement() const;
/**Takes ownership*/
void setRedContrastEnhancement( QgsContrastEnhancement* ce );
void setRedContrastEnhancement( QgsContrastEnhancement* ce /Transfer/ );

const QgsContrastEnhancement* greenContrastEnhancement() const;
/**Takes ownership*/
void setGreenContrastEnhancement( QgsContrastEnhancement* ce );
void setGreenContrastEnhancement( QgsContrastEnhancement* ce /Transfer/ );

const QgsContrastEnhancement* blueContrastEnhancement() const;
/**Takes ownership*/
void setBlueContrastEnhancement( QgsContrastEnhancement* ce );
void setBlueContrastEnhancement( QgsContrastEnhancement* ce /Transfer/ );

void writeXML( QDomDocument& doc, QDomElement& parentElem ) const;
};
8 changes: 4 additions & 4 deletions python/core/raster/qgspaletterasterrenderer.sip
Expand Up @@ -5,17 +5,17 @@ class QgsPalettedRasterRenderer: QgsRasterRenderer
%End
public:
/**Renderer owns color array*/
QgsPalettedRasterRenderer( QgsRasterDataProvider* provider, int bandNumber, QColor* colorArray, int nColors );
QgsPalettedRasterRenderer( QgsRasterDataProvider* provider, int bandNumber, QColor* colorArray /Array,Transfer/, int nColors /ArraySize/ );
~QgsPalettedRasterRenderer();
QgsRasterInterface * clone();
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider );
QgsRasterInterface * clone() /Factory/;
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;

void * readBlock( int bandNo, const QgsRectangle & extent, int width, int height );

/**Returns number of colors*/
int nColors() const;
/**Returns copy of color array (caller takes ownership)*/
QColor* colors() const;
QColor* colors() const /Factory/;

void writeXML( QDomDocument& doc, QDomElement& parentElem ) const;

Expand Down
2 changes: 1 addition & 1 deletion python/core/raster/qgsrasterlayer.sip
Expand Up @@ -201,7 +201,7 @@ class QgsRasterLayer : QgsMapLayer
QgsRasterRenderer* renderer() const;

/**Set raster resample filter. Takes ownership of the resample filter object*/
//void setResampleFilter( QgsRasterResampleFilter* resampleFilter );
//void setResampleFilter( QgsRasterResampleFilter* resampleFilter /Transfer/ );
QgsRasterResampleFilter * resampleFilter() const;

/** Get raster pipe */
Expand Down
2 changes: 1 addition & 1 deletion python/core/raster/qgsrasterrenderer.sip
Expand Up @@ -26,7 +26,7 @@ class QgsRasterRenderer : QgsRasterInterface
%End

public:
QgsRasterRenderer( QgsRasterInterface* input /Transfer/ = 0, const QString& type = "" );
QgsRasterRenderer( QgsRasterInterface* input = 0, const QString& type = "" );
virtual ~QgsRasterRenderer();

virtual QgsRasterInterface * clone() const = 0 /Factory/;
Expand Down
4 changes: 2 additions & 2 deletions python/core/raster/qgsrasterresamplefilter.sip
Expand Up @@ -22,11 +22,11 @@ class QgsRasterResampleFilter : QgsRasterInterface
void *readBlock( int bandNo, const QgsRectangle &extent, int width, int height );

/**Set resampler for zoomed in scales. Takes ownership of the object*/
void setZoomedInResampler( QgsRasterResampler* r );
void setZoomedInResampler( QgsRasterResampler* r /Transfer/ );
const QgsRasterResampler* zoomedInResampler() const;

/**Set resampler for zoomed out scales. Takes ownership of the object*/
void setZoomedOutResampler( QgsRasterResampler* r );
void setZoomedOutResampler( QgsRasterResampler* r /Transfer/ );
const QgsRasterResampler* zoomedOutResampler() const;

void setMaxOversampling( double os );
Expand Down
6 changes: 3 additions & 3 deletions python/core/raster/qgssinglebandgrayrenderer.sip
Expand Up @@ -6,17 +6,17 @@ class QgsSingleBandGrayRenderer: QgsRasterRenderer
public:
QgsSingleBandGrayRenderer( QgsRasterDataProvider* provider, int grayBand );
~QgsSingleBandGrayRenderer();
QgsRasterInterface * clone();
QgsRasterInterface * clone() /Factory/;

static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider );
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;

void * readBlock( int bandNo, const QgsRectangle & extent, int width, int height );

int grayBand() const;
void setGrayBand( int band );
const QgsContrastEnhancement* contrastEnhancement() const;
/**Takes ownership*/
void setContrastEnhancement( QgsContrastEnhancement* ce );
void setContrastEnhancement( QgsContrastEnhancement* ce /Transfer/ );

void writeXML( QDomDocument& doc, QDomElement& parentElem ) const;

Expand Down
6 changes: 3 additions & 3 deletions python/core/raster/qgssinglebandpseudocolorrenderer.sip
Expand Up @@ -7,14 +7,14 @@ class QgsSingleBandPseudoColorRenderer: QgsRasterRenderer
/**Note: takes ownership of QgsRasterShader*/
QgsSingleBandPseudoColorRenderer( QgsRasterDataProvider* provider, int band, QgsRasterShader* shader /Transfer/ );
~QgsSingleBandPseudoColorRenderer();
QgsRasterInterface * clone();
QgsRasterInterface * clone() /Factory/;

static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider );
static QgsRasterRenderer* create( const QDomElement& elem, QgsRasterDataProvider* provider ) /Factory/;

void * readBlock( int bandNo, const QgsRectangle & extent, int width, int height );

/**Takes ownership of the shader*/
void setShader( QgsRasterShader* shader );
void setShader( QgsRasterShader* shader /Transfer/ );
QgsRasterShader* shader();

void writeXML( QDomDocument& doc, QDomElement& parentElem ) const;
Expand Down
6 changes: 3 additions & 3 deletions python/core/symbology-ng/qgspointdisplacementrenderer.sip
Expand Up @@ -24,7 +24,7 @@ class QgsPointDisplacementRenderer : QgsFeatureRendererV2
QgsSymbolV2List symbols();

//! create a renderer from XML element
static QgsFeatureRendererV2* create( QDomElement& symbologyElem );
static QgsFeatureRendererV2* create( QDomElement& symbologyElem ) /Factory/;
QDomElement save( QDomDocument& doc );

QgsLegendSymbologyList legendSymbologyItems( QSize iconSize );
Expand All @@ -35,7 +35,7 @@ class QgsPointDisplacementRenderer : QgsFeatureRendererV2
QString labelAttributeName() const;

/**Sets embedded renderer (takes ownership)*/
void setEmbeddedRenderer( QgsFeatureRendererV2* r );
void setEmbeddedRenderer( QgsFeatureRendererV2* r /Transfer/ );
QgsFeatureRendererV2* embeddedRenderer();

// void setDisplacementGroups( const QList<QMap<QgsFeatureId, QgsFeature> >& list );
Expand All @@ -61,7 +61,7 @@ class QgsPointDisplacementRenderer : QgsFeatureRendererV2
/**Returns the symbol for the center of a displacement group (but _not_ ownership of the symbol)*/
QgsMarkerSymbolV2* centerSymbol();
/**Sets the center symbol (takes ownership)*/
void setCenterSymbol( QgsMarkerSymbolV2* symbol );
void setCenterSymbol( QgsMarkerSymbolV2* symbol /Transfer/ );

void setTolerance( double t );
double tolerance() const;
Expand Down
4 changes: 2 additions & 2 deletions python/core/symbology-ng/qgsrendererv2.sip
Expand Up @@ -90,7 +90,7 @@ class QgsFeatureRendererV2
void setUsingSymbolLevels( bool usingSymbolLevels );

//! create a renderer from XML element
static QgsFeatureRendererV2* load( QDomElement& symbologyElem );
static QgsFeatureRendererV2* load( QDomElement& symbologyElem ) /Factory/;

//! store renderer info to XML element
virtual QDomElement save( QDomDocument& doc );
Expand All @@ -110,7 +110,7 @@ class QgsFeatureRendererV2
* @return the renderer
* @note added in 1.9
*/
static QgsFeatureRendererV2* loadSld( const QDomNode &node, QGis::GeometryType geomType, QString &errorMessage );
static QgsFeatureRendererV2* loadSld( const QDomNode &node, QGis::GeometryType geomType, QString &errorMessage ) /Factory/;

//! used from subclasses to create SLD Rule elements following SLD v1.1 specs
//! @note added in 1.9
Expand Down

0 comments on commit d5f6543

Please sign in to comment.