2017-04-24 10:22:38 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/processing/qgsprocessingcontext.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsProcessingContext
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
Contains information about the context in which a processing algorithm is executed.
|
|
|
|
|
|
|
|
Contextual information includes settings such as the associated project, and
|
|
|
|
expression context.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprocessingcontext.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-04-25 15:32:09 +10:00
|
|
|
enum Flag
|
|
|
|
{
|
|
|
|
UseSelection,
|
|
|
|
};
|
|
|
|
typedef QFlags<QgsProcessingContext::Flag> Flags;
|
|
|
|
|
|
|
|
|
2017-04-24 10:22:38 +10:00
|
|
|
QgsProcessingContext();
|
|
|
|
|
2017-04-25 15:32:09 +10:00
|
|
|
QgsProcessingContext::Flags flags() const;
|
|
|
|
%Docstring
|
|
|
|
Returns any flags set in the context.
|
|
|
|
\see setFlags()
|
|
|
|
:rtype: QgsProcessingContext.Flags
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setFlags( const QgsProcessingContext::Flags &flags );
|
|
|
|
%Docstring
|
|
|
|
Sets ``flags`` for the context.
|
|
|
|
\see flags()
|
|
|
|
%End
|
|
|
|
|
2017-04-24 10:22:38 +10:00
|
|
|
QgsProject *project() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the project in which the algorithm is being executed.
|
|
|
|
\see setProject()
|
|
|
|
:rtype: QgsProject
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setProject( QgsProject *project );
|
|
|
|
%Docstring
|
|
|
|
Sets the ``project`` in which the algorithm will be executed.
|
|
|
|
\see project()
|
|
|
|
%End
|
|
|
|
|
|
|
|
QgsExpressionContext expressionContext() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the expression context.
|
|
|
|
:rtype: QgsExpressionContext
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setExpressionContext( const QgsExpressionContext &context );
|
|
|
|
%Docstring
|
|
|
|
Sets the expression ``context``.
|
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-25 15:32:09 +10:00
|
|
|
|
|
|
|
|
|
|
|
QFlags<QgsProcessingContext::Flag> operator|(QgsProcessingContext::Flag f1, QFlags<QgsProcessingContext::Flag> f2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-24 10:22:38 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/processing/qgsprocessingcontext.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|