Skip to content
Permalink
Browse files

Fix some /Transfer/ annotations

  • Loading branch information
Hugo Mercier
Hugo Mercier committed Sep 23, 2016
1 parent eefeef5 commit 67c05b51c2d13e6f46bbd21b21815001124d990f
@@ -9,9 +9,9 @@ class DualEdgeTriangulation: Triangulation
virtual ~DualEdgeTriangulation();
void setDecorator( Triangulation* d );
/** 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*/
void addLine( Line3D* line, bool breakline );
void addLine( Line3D* line /Transfer/, bool breakline );
/** Adds a point to the triangulation and returns the number of this point in case of success or -100 in case of failure*/
int addPoint( Point3D* p );
int addPoint( Point3D* p /Transfer/);
/** Performs a consistency check, remove this later*/
virtual void performConsistencyTest();
/** Calculates the normal at a point on the surface*/
@@ -18,7 +18,7 @@ class QgsMultiCurve: public QgsGeometryCollection
QString asJSON( int precision = 17 ) const;

/** Adds a geometry and takes ownership. Returns true in case of success*/
virtual bool addGeometry( QgsAbstractGeometry* g );
virtual bool addGeometry( QgsAbstractGeometry* g /Transfer/ );
/** Returns a geometry without curves. Caller takes ownership*/
QgsAbstractGeometry* segmentize() const /Factory/;

@@ -18,7 +18,7 @@ class QgsMultiLineString: public QgsMultiCurve
QString asJSON( int precision = 17 ) const;

/** Adds a geometry and takes ownership. Returns true in case of success*/
virtual bool addGeometry( QgsAbstractGeometry* g );
virtual bool addGeometry( QgsAbstractGeometry* g /Transfer/ );

/** Returns the geometry converted to the more generic curve type QgsMultiCurve
@return the converted geometry. Caller takes ownership*/
@@ -18,7 +18,7 @@ class QgsMultiPointV2: public QgsGeometryCollection


/** Adds a geometry and takes ownership. Returns true in case of success*/
virtual bool addGeometry( QgsAbstractGeometry* g );
virtual bool addGeometry( QgsAbstractGeometry* g /Transfer/ );

virtual QgsAbstractGeometry* boundary() const /Factory/;

@@ -18,7 +18,7 @@ class QgsMultiPolygonV2: public QgsMultiSurface


/** Adds a geometry and takes ownership. Returns true in case of success*/
virtual bool addGeometry( QgsAbstractGeometry* g );
virtual bool addGeometry( QgsAbstractGeometry* g /Transfer/ );

/** Returns the geometry converted to the more generic curve type QgsMultiSurface
@return the converted geometry. Caller takes ownership*/
@@ -18,7 +18,7 @@ class QgsMultiSurface: public QgsGeometryCollection


/** Adds a geometry and takes ownership. Returns true in case of success*/
virtual bool addGeometry( QgsAbstractGeometry* g );
virtual bool addGeometry( QgsAbstractGeometry* g /Transfer/ );

virtual QgsAbstractGeometry* boundary() const /Factory/;

@@ -76,7 +76,7 @@ class QgsVectorLayerCache : QObject
*
* @param cacheIndex The cache index to add.
*/
void addCacheIndex( QgsAbstractCacheIndex *cacheIndex );
void addCacheIndex( QgsAbstractCacheIndex *cacheIndex /Transfer/ );

/**
* Query this VectorLayerCache for features.
@@ -14,7 +14,7 @@ class QgsAttributeTableView : QTableView
* @brief setFeatureSelectionManager
* @param featureSelectionManager We will take ownership
*/
void setFeatureSelectionManager( QgsIFeatureSelectionManager* featureSelectionManager );
void setFeatureSelectionManager( QgsIFeatureSelectionManager* featureSelectionManager /Transfer/ );

/**
* This event filter is installed on the verticalHeader to intercept mouse press and release
@@ -79,7 +79,7 @@ class QgsFeatureListView : QListView
* @brief setFeatureSelectionManager
* @param featureSelectionManager We will take ownership
*/
void setFeatureSelectionManager( QgsIFeatureSelectionManager* featureSelectionManager );
void setFeatureSelectionManager( QgsIFeatureSelectionManager* featureSelectionManager /Transfer/ );

protected:
virtual void mouseMoveEvent( QMouseEvent *event );
@@ -79,7 +79,7 @@ class QgisInterface : QObject
* @param widget widget to add. The toolbar will take ownership of this widget
* @return the QAction you can use to remove this widget from the toolbar
*/
virtual QAction* addToolBarWidget( QWidget* widget ) = 0;
virtual QAction* addToolBarWidget( QWidget* widget /Transfer/ ) = 0;

//! Remove an action (icon) from the plugin toolbar
virtual void removeToolBarIcon( QAction *qAction ) = 0;
@@ -92,7 +92,7 @@ class QgisInterface : QObject
* @param widget widget to add. The toolbar will take ownership of this widget
* @return the QAction you can use to remove this widget from the toolbar
*/
virtual QAction* addRasterToolBarWidget( QWidget* widget ) = 0;
virtual QAction* addRasterToolBarWidget( QWidget* widget /Transfer/ ) = 0;

//! Add an icon to the Raster toolbar
virtual int addRasterToolBarIcon( QAction *qAction ) = 0;
@@ -111,7 +111,7 @@ class QgisInterface : QObject
* @param widget widget to add. The toolbar will take ownership of this widget
* @return the QAction you can use to remove this widget from the toolbar
*/
virtual QAction* addVectorToolBarWidget( QWidget* widget ) = 0;
virtual QAction* addVectorToolBarWidget( QWidget* widget /Transfer/ ) = 0;

//! Remove an action (icon) from the Vector toolbar
virtual void removeVectorToolBarIcon( QAction *qAction ) = 0;
@@ -127,7 +127,7 @@ class QgisInterface : QObject
* @param widget widget to add. The toolbar will take ownership of this widget
* @return the QAction you can use to remove this widget from the toolbar
*/
virtual QAction* addDatabaseToolBarWidget( QWidget* widget ) = 0;
virtual QAction* addDatabaseToolBarWidget( QWidget* widget /Transfer/ ) = 0;

//! Remove an action (icon) from the Database toolbar
virtual void removeDatabaseToolBarIcon( QAction *qAction ) = 0;
@@ -143,7 +143,7 @@ class QgisInterface : QObject
* @param widget widget to add. The toolbar will take ownership of this widget
* @return the QAction you can use to remove this widget from the toolbar
*/
virtual QAction* addWebToolBarWidget( QWidget* widget ) = 0;
virtual QAction* addWebToolBarWidget( QWidget* widget /Transfer/ ) = 0;

//! Remove an action (icon) from the Web toolbar
virtual void removeWebToolBarIcon( QAction *qAction ) = 0;
@@ -54,7 +54,7 @@ class QgsGeometryRubberBand: QgsMapCanvasItem
~QgsGeometryRubberBand();

/** Sets geometry (takes ownership). Geometry is expected to be in map coordinates */
void setGeometry( QgsAbstractGeometry* geom );
void setGeometry( QgsAbstractGeometry* geom /Transfer/ );
/** Returns a pointer to the geometry*/
const QgsAbstractGeometry* geometry();
/** Moves vertex to new position (in map coordinates)*/
@@ -35,9 +35,9 @@ class QgsMapToolEdit: QgsMapTool
* @param geometryType
* @param alternativeBand if true, rubber band will be set with more transparency and a dash pattern. defaut is false.
*/
QgsRubberBand* createRubberBand( QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::LineGeometry, bool alternativeBand = false );
QgsRubberBand* createRubberBand( QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::LineGeometry, bool alternativeBand = false ) /Factory/;

QgsGeometryRubberBand* createGeometryRubberBand( QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::LineGeometry, bool alternativeBand = false ) const;
QgsGeometryRubberBand* createGeometryRubberBand( QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::LineGeometry, bool alternativeBand = false ) const /Factory/;

/** Returns the current vector layer of the map canvas or 0*/
QgsVectorLayer* currentVectorLayer();
@@ -25,14 +25,14 @@ class Qgs25DRendererWidget : QgsRendererWidget
* @param style
* @param renderer the mask renderer (will take ownership)
*/
static QgsRendererWidget* create( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );
static QgsRendererWidget* create( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer /Transfer/ ) /Factory/;

/** Constructor
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
*/
Qgs25DRendererWidget( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );
Qgs25DRendererWidget( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer /Transfer/ );

QgsFeatureRenderer* renderer();

@@ -32,14 +32,14 @@ class GUI_EXPORT Qgs25DRendererWidget : public QgsRendererWidget, Ui::Qgs25DRend
/** Static creation method
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
* @param renderer the mask renderer (will not take ownership)
*/
static QgsRendererWidget* create( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );

/** Constructor
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
* @param renderer the mask renderer (will not take ownership)
*/
Qgs25DRendererWidget( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );

@@ -32,14 +32,14 @@ class GUI_EXPORT QgsHeatmapRendererWidget : public QgsRendererWidget, private Ui
/** Static creation method
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
* @param renderer the mask renderer (will not take ownership)
*/
static QgsRendererWidget* create( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );

/** Constructor
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
* @param renderer the mask renderer (will not take ownership)
*/
QgsHeatmapRendererWidget( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );

@@ -34,14 +34,14 @@ class GUI_EXPORT QgsInvertedPolygonRendererWidget : public QgsRendererWidget, pr
/** Static creation method
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
* @param renderer the mask renderer (will not take ownership)
*/
static QgsRendererWidget* create( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );

/** Constructor
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
* @param renderer the mask renderer (will not take ownership)
*/
QgsInvertedPolygonRendererWidget( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );

0 comments on commit 67c05b5

Please sign in to comment.