QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
processing
models
qgsprocessingmodeloutput.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprocessingmodeloutput.h
3
--------------------------
4
begin : June 2017
5
copyright : (C) 2017 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 QGSPROCESSINGMODELOUTPUT_H
19
#define QGSPROCESSINGMODELOUTPUT_H
20
21
#include "
qgis.h
"
22
#include "qgis_core.h"
23
#include "
qgsprocessingmodelcomment.h
"
24
#include "
qgsprocessingmodelcomponent.h
"
25
#include "
qgsprocessingparameters.h
"
26
28
33
class
CORE_EXPORT QgsProcessingModelOutput :
public
QgsProcessingModelComponent
34
{
35
public
:
39
QgsProcessingModelOutput(
const
QString &name = QString(),
const
QString &description = QString() );
40
41
QgsProcessingModelOutput *clone() const override
SIP_FACTORY
;
42
47
QString name()
const
{
return
mName; }
48
53
void
setName(
const
QString &name ) { mName = name; }
54
60
QVariant defaultValue()
const
{
return
mDefaultValue; }
61
67
void
setDefaultValue(
const
QVariant &value ) { mDefaultValue = value; }
68
76
bool
isMandatory()
const
{
return
mMandatory; }
77
85
void
setMandatory(
bool
mandatory ) { mMandatory = mandatory; }
86
91
QString childId()
const
{
return
mChildId; }
92
97
void
setChildId(
const
QString &
id
) { mChildId = id; }
98
103
QString childOutputName()
const
{
return
mOutputName; }
104
109
void
setChildOutputName(
const
QString &name ) { mOutputName = name; }
110
115
QVariant toVariant()
const
;
116
121
bool
loadVariant(
const
QVariantMap &map );
122
123
SIP_SKIP
const
QgsProcessingModelComment *comment()
const override
{
return
&mComment; }
124
QgsProcessingModelComment *comment()
override
{
return
&mComment; }
125
void
setComment(
const
QgsProcessingModelComment &comment )
override
{ mComment = comment; }
126
127
private
:
128
QString mName;
129
QVariant mDefaultValue;
130
QString mChildId;
131
QString mOutputName;
132
bool
mMandatory =
false
;
133
134
QgsProcessingModelComment mComment;
135
};
136
138
139
#endif
// QGSPROCESSINGMODELOUTPUT_H
qgis.h
SIP_SKIP
#define SIP_SKIP
Definition
qgis_sip.h:138
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
qgsprocessingmodelcomment.h
qgsprocessingmodelcomponent.h
qgsprocessingparameters.h
Generated on
for QGIS API Documentation by
1.17.0