2017-05-15 12:29:44 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/processing/qgsprocessingoutputs.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsProcessingOutputDefinition
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
|
|
|
|
Base class for the definition of processing outputs.
|
|
|
|
|
|
|
|
Output definitions encapsulate the properties regarding the outputs from algorithms, such
|
|
|
|
as generated layers or calculated values.
|
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprocessingoutputs.h"
|
2017-05-15 16:02:45 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
%ConvertToSubClassCode
|
2017-07-03 19:42:29 +10:00
|
|
|
if ( sipCpp->type() == QgsProcessingOutputVectorLayer::typeName() )
|
2017-05-15 16:02:45 +10:00
|
|
|
sipType = sipType_QgsProcessingOutputVectorLayer;
|
2017-07-03 19:42:29 +10:00
|
|
|
else if ( sipCpp->type() == QgsProcessingOutputRasterLayer::typeName() )
|
2017-06-06 14:38:24 +10:00
|
|
|
sipType = sipType_QgsProcessingOutputRasterLayer;
|
2017-07-03 19:42:29 +10:00
|
|
|
else if ( sipCpp->type() == QgsProcessingOutputHtml::typeName() )
|
2017-06-06 15:23:10 +10:00
|
|
|
sipType = sipType_QgsProcessingOutputHtml;
|
2017-07-03 19:42:29 +10:00
|
|
|
else if ( sipCpp->type() == QgsProcessingOutputNumber::typeName() )
|
2017-06-07 07:12:25 +10:00
|
|
|
sipType = sipType_QgsProcessingOutputNumber;
|
2017-07-03 19:42:29 +10:00
|
|
|
else if ( sipCpp->type() == QgsProcessingOutputString::typeName() )
|
2017-06-13 12:32:17 +10:00
|
|
|
sipType = sipType_QgsProcessingOutputString;
|
2017-07-03 19:42:29 +10:00
|
|
|
else if ( sipCpp->type() == QgsProcessingOutputFolder::typeName() )
|
2017-06-22 18:21:33 +10:00
|
|
|
sipType = sipType_QgsProcessingOutputFolder;
|
2017-07-21 19:46:27 +02:00
|
|
|
else
|
|
|
|
sipType = nullptr;
|
2017-05-15 12:29:44 +10:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsProcessingOutputDefinition( const QString &name, const QString &description = QString() );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsProcessingOutputDefinition.
|
|
|
|
%End
|
|
|
|
|
|
|
|
virtual ~QgsProcessingOutputDefinition();
|
|
|
|
|
|
|
|
virtual QString type() const = 0;
|
|
|
|
%Docstring
|
|
|
|
Unique output type name.
|
|
|
|
:rtype: str
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString name() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the name of the output. This is the internal identifier by which
|
|
|
|
algorithms access this output.
|
|
|
|
@see setName()
|
|
|
|
:rtype: str
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setName( const QString &name );
|
|
|
|
%Docstring
|
|
|
|
Sets the ``name`` of the output. This is the internal identifier by which
|
|
|
|
algorithms access this output.
|
|
|
|
@see name()
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString description() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the description for the output. This is the user-visible string
|
|
|
|
used to identify this output.
|
|
|
|
@see setDescription()
|
|
|
|
:rtype: str
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setDescription( const QString &description );
|
|
|
|
%Docstring
|
|
|
|
Sets the ``description`` for the output. This is the user-visible string
|
|
|
|
used to identify this output.
|
|
|
|
@see description()
|
|
|
|
%End
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef QList< const QgsProcessingOutputDefinition * > QgsProcessingOutputDefinitions;
|
|
|
|
|
|
|
|
class QgsProcessingOutputVectorLayer : QgsProcessingOutputDefinition
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
A vector layer output for processing algorithms.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprocessingoutputs.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-07-08 14:43:07 +10:00
|
|
|
QgsProcessingOutputVectorLayer( const QString &name, const QString &description = QString(), QgsProcessing::LayerType type = QgsProcessing::TypeVectorAny );
|
2017-05-15 12:29:44 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsProcessingOutputVectorLayer.
|
|
|
|
%End
|
|
|
|
|
2017-07-03 19:42:29 +10:00
|
|
|
static QString typeName();
|
|
|
|
%Docstring
|
|
|
|
Returns the type name for the output class.
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-05-15 12:29:44 +10:00
|
|
|
virtual QString type() const;
|
|
|
|
|
2017-07-08 14:43:07 +10:00
|
|
|
QgsProcessing::LayerType dataType() const;
|
2017-05-15 12:29:44 +10:00
|
|
|
%Docstring
|
|
|
|
Returns the layer type for the output layer.
|
|
|
|
.. seealso:: setDataType()
|
2017-07-08 14:43:07 +10:00
|
|
|
:rtype: QgsProcessing.LayerType
|
2017-05-15 12:29:44 +10:00
|
|
|
%End
|
|
|
|
|
2017-07-08 14:43:07 +10:00
|
|
|
void setDataType( QgsProcessing::LayerType type );
|
2017-05-15 12:29:44 +10:00
|
|
|
%Docstring
|
|
|
|
Sets the layer ``type`` for the output layer.
|
|
|
|
.. seealso:: dataType()
|
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-06-06 14:38:24 +10:00
|
|
|
class QgsProcessingOutputRasterLayer : QgsProcessingOutputDefinition
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
A raster layer output for processing algorithms.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprocessingoutputs.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsProcessingOutputRasterLayer( const QString &name, const QString &description = QString() );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsProcessingOutputRasterLayer.
|
|
|
|
%End
|
|
|
|
|
2017-07-03 19:42:29 +10:00
|
|
|
static QString typeName();
|
|
|
|
%Docstring
|
|
|
|
Returns the type name for the output class.
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-06-06 14:38:24 +10:00
|
|
|
virtual QString type() const;
|
2017-07-03 19:42:29 +10:00
|
|
|
|
|
|
|
|
2017-06-06 14:38:24 +10:00
|
|
|
};
|
|
|
|
|
2017-06-06 15:23:10 +10:00
|
|
|
class QgsProcessingOutputHtml : QgsProcessingOutputDefinition
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
A HTML file output for processing algorithms.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprocessingoutputs.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsProcessingOutputHtml( const QString &name, const QString &description = QString() );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsProcessingOutputHtml.
|
|
|
|
%End
|
|
|
|
|
2017-07-03 19:42:29 +10:00
|
|
|
static QString typeName();
|
|
|
|
%Docstring
|
|
|
|
Returns the type name for the output class.
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-06-06 15:23:10 +10:00
|
|
|
virtual QString type() const;
|
2017-07-03 19:42:29 +10:00
|
|
|
|
2017-06-06 15:23:10 +10:00
|
|
|
};
|
2017-05-15 12:29:44 +10:00
|
|
|
|
2017-06-07 07:12:25 +10:00
|
|
|
class QgsProcessingOutputNumber : QgsProcessingOutputDefinition
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
A numeric output for processing algorithms.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprocessingoutputs.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsProcessingOutputNumber( const QString &name, const QString &description = QString() );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsProcessingOutputNumber.
|
|
|
|
%End
|
|
|
|
|
2017-07-03 19:42:29 +10:00
|
|
|
static QString typeName();
|
|
|
|
%Docstring
|
|
|
|
Returns the type name for the output class.
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-06-07 07:12:25 +10:00
|
|
|
virtual QString type() const;
|
|
|
|
};
|
|
|
|
|
2017-06-13 12:32:17 +10:00
|
|
|
class QgsProcessingOutputString : QgsProcessingOutputDefinition
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
A string output for processing algorithms.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprocessingoutputs.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsProcessingOutputString( const QString &name, const QString &description = QString() );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsProcessingOutputString.
|
|
|
|
%End
|
|
|
|
|
2017-07-03 19:42:29 +10:00
|
|
|
static QString typeName();
|
|
|
|
%Docstring
|
|
|
|
Returns the type name for the output class.
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-06-13 12:32:17 +10:00
|
|
|
virtual QString type() const;
|
2017-07-03 19:42:29 +10:00
|
|
|
|
2017-06-13 12:32:17 +10:00
|
|
|
};
|
|
|
|
|
2017-06-22 18:21:33 +10:00
|
|
|
class QgsProcessingOutputFolder : QgsProcessingOutputDefinition
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
A folder output for processing algorithms.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprocessingoutputs.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-07-03 19:42:29 +10:00
|
|
|
|
2017-06-22 18:21:33 +10:00
|
|
|
QgsProcessingOutputFolder( const QString &name, const QString &description = QString() );
|
|
|
|
%Docstring
|
|
|
|
Constructor for QgsProcessingOutputFolder.
|
|
|
|
%End
|
|
|
|
|
2017-07-03 19:42:29 +10:00
|
|
|
static QString typeName();
|
|
|
|
%Docstring
|
|
|
|
Returns the type name for the output class.
|
|
|
|
:rtype: str
|
|
|
|
%End
|
2017-06-22 18:21:33 +10:00
|
|
|
virtual QString type() const;
|
2017-07-03 19:42:29 +10:00
|
|
|
|
2017-06-22 18:21:33 +10:00
|
|
|
};
|
2017-06-13 12:32:17 +10:00
|
|
|
|
2017-05-15 12:29:44 +10:00
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/processing/qgsprocessingoutputs.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|