QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
processing
models
qgsprocessingmodelconfig.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprocessingmodelconfig.h
3
----------------------
4
begin : April 2024
5
copyright : (C) 2024 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSPROCESSINGMODELCONFIG_H
19
#define QGSPROCESSINGMODELCONFIG_H
20
21
#include "
qgis.h
"
22
#include "qgis_core.h"
23
24
#include <QSet>
25
26
#define SIP_NO_FILE
27
28
class
QgsMapLayerStore
;
29
38
class
CORE_EXPORT
QgsProcessingModelInitialRunConfig
39
{
40
public
:
41
QgsProcessingModelInitialRunConfig
();
42
~QgsProcessingModelInitialRunConfig
();
43
51
QSet<QString>
childAlgorithmSubset
()
const
{
return
mChildAlgorithmSubset; }
52
60
void
setChildAlgorithmSubset
(
const
QSet<QString> &subset ) { mChildAlgorithmSubset = subset; }
61
69
QVariantMap
initialChildInputs
()
const
{
return
mInitialChildInputs; }
70
78
void
setInitialChildInputs
(
const
QVariantMap &inputs ) { mInitialChildInputs = inputs; }
79
87
QVariantMap
initialChildOutputs
()
const
{
return
mInitialChildOutputs; }
88
96
void
setInitialChildOutputs
(
const
QVariantMap &outputs ) { mInitialChildOutputs = outputs; }
97
104
QSet< QString >
previouslyExecutedChildAlgorithms
()
const
{
return
mPreviouslyExecutedChildren; }
105
112
void
setPreviouslyExecutedChildAlgorithms
(
const
QSet< QString > &children ) { mPreviouslyExecutedChildren = children; }
113
123
QgsMapLayerStore
*previousLayerStore();
124
134
std::unique_ptr< QgsMapLayerStore > takePreviousLayerStore();
135
146
void
setPreviousLayerStore( std::unique_ptr< QgsMapLayerStore > store );
147
148
private
:
149
QSet<QString> mChildAlgorithmSubset;
150
QVariantMap mInitialChildInputs;
151
QVariantMap mInitialChildOutputs;
152
QSet< QString > mPreviouslyExecutedChildren;
153
154
std::unique_ptr< QgsMapLayerStore > mModelInitialLayerStore;
155
};
156
157
#endif
// QGSPROCESSINGMODELCONFIG_H
QgsMapLayerStore
A storage object for map layers, in which the layers are owned by the store and have their lifetime b...
Definition
qgsmaplayerstore.h:36
QgsProcessingModelInitialRunConfig::setChildAlgorithmSubset
void setChildAlgorithmSubset(const QSet< QString > &subset)
Sets the subset of child algorithms to run (by child ID).
Definition
qgsprocessingmodelconfig.h:60
QgsProcessingModelInitialRunConfig::previouslyExecutedChildAlgorithms
QSet< QString > previouslyExecutedChildAlgorithms() const
Returns the set of previously executed child algorithm IDs to use as the initial state when running t...
Definition
qgsprocessingmodelconfig.h:104
QgsProcessingModelInitialRunConfig::childAlgorithmSubset
QSet< QString > childAlgorithmSubset() const
Returns the subset of child algorithms to run (by child ID).
Definition
qgsprocessingmodelconfig.h:51
QgsProcessingModelInitialRunConfig::setInitialChildInputs
void setInitialChildInputs(const QVariantMap &inputs)
Sets the map of child algorithm inputs to use as the initial state when running the model.
Definition
qgsprocessingmodelconfig.h:78
QgsProcessingModelInitialRunConfig::QgsProcessingModelInitialRunConfig
QgsProcessingModelInitialRunConfig()
QgsProcessingModelInitialRunConfig::setInitialChildOutputs
void setInitialChildOutputs(const QVariantMap &outputs)
Sets the map of child algorithm outputs to use as the initial state when running the model.
Definition
qgsprocessingmodelconfig.h:96
QgsProcessingModelInitialRunConfig::initialChildOutputs
QVariantMap initialChildOutputs() const
Returns the map of child algorithm outputs to use as the initial state when running the model.
Definition
qgsprocessingmodelconfig.h:87
QgsProcessingModelInitialRunConfig::~QgsProcessingModelInitialRunConfig
~QgsProcessingModelInitialRunConfig()
QgsProcessingModelInitialRunConfig::initialChildInputs
QVariantMap initialChildInputs() const
Returns the map of child algorithm inputs to use as the initial state when running the model.
Definition
qgsprocessingmodelconfig.h:69
QgsProcessingModelInitialRunConfig::setPreviouslyExecutedChildAlgorithms
void setPreviouslyExecutedChildAlgorithms(const QSet< QString > &children)
Sets the previously executed child algorithm IDs to use as the initial state when running the model.
Definition
qgsprocessingmodelconfig.h:112
qgis.h
Generated on
for QGIS API Documentation by
1.17.0