QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
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
29
39{
40 public:
41
44
52 QSet<QString> childAlgorithmSubset() const { return mChildAlgorithmSubset; }
53
61 void setChildAlgorithmSubset( const QSet<QString> &subset ) { mChildAlgorithmSubset = subset; }
62
70 QVariantMap initialChildInputs() const { return mInitialChildInputs; }
71
79 void setInitialChildInputs( const QVariantMap &inputs ) { mInitialChildInputs = inputs; }
80
88 QVariantMap initialChildOutputs() const { return mInitialChildOutputs; }
89
97 void setInitialChildOutputs( const QVariantMap &outputs ) { mInitialChildOutputs = outputs; }
98
105 QSet< QString > previouslyExecutedChildAlgorithms() const { return mPreviouslyExecutedChildren; }
106
113 void setPreviouslyExecutedChildAlgorithms( const QSet< QString > &children ) { mPreviouslyExecutedChildren = children; }
114
124 QgsMapLayerStore *previousLayerStore();
125
135 std::unique_ptr< QgsMapLayerStore > takePreviousLayerStore();
136
147 void setPreviousLayerStore( std::unique_ptr< QgsMapLayerStore > store );
148
149 private:
150
151 QSet<QString> mChildAlgorithmSubset;
152 QVariantMap mInitialChildInputs;
153 QVariantMap mInitialChildOutputs;
154 QSet< QString > mPreviouslyExecutedChildren;
155
156 std::unique_ptr< QgsMapLayerStore > mModelInitialLayerStore;
157
158
159};
160
161#endif // QGSPROCESSINGMODELCONFIG_H
A storage object for map layers, in which the layers are owned by the store and have their lifetime b...
void setChildAlgorithmSubset(const QSet< QString > &subset)
Sets the subset of child algorithms to run (by child ID).
QSet< QString > previouslyExecutedChildAlgorithms() const
Returns the set of previously executed child algorithm IDs to use as the initial state when running t...
QSet< QString > childAlgorithmSubset() const
Returns the subset of child algorithms to run (by child ID).
void setInitialChildInputs(const QVariantMap &inputs)
Sets the map of child algorithm inputs to use as the initial state when running the model.
void setInitialChildOutputs(const QVariantMap &outputs)
Sets the map of child algorithm outputs to use as the initial state when running the model.
QVariantMap initialChildOutputs() const
Returns the map of child algorithm outputs to use as the initial state when running the model.
QVariantMap initialChildInputs() const
Returns the map of child algorithm inputs to use as the initial state when running the model.
void setPreviouslyExecutedChildAlgorithms(const QSet< QString > &children)
Sets the previously executed child algorithm IDs to use as the initial state when running the model.