| 
    QGIS API Documentation
    3.26.3-Buenos Aires (65e4edfdad)
    
   | 
 
 
 
 
Go to the documentation of this file.
   18 #ifndef QGSPROCESSINGWIDGETWRAPPER_H 
   19 #define QGSPROCESSINGWIDGETWRAPPER_H 
   34 class QgsProcessingModelAlgorithm;
 
   38 class QgsProcessingModelAlgorithm;
 
   87       SkipDefaultValueParameters = 1 << 0, 
 
   89     Q_DECLARE_FLAGS( Flags, Flag )
 
   98     virtual QVariantMap createProcessingParameters( QgsProcessingParametersGenerator::Flags flags = QgsProcessingParametersGenerator::Flags() ) = 0;
 
  187     QgsProcessingModelAlgorithm *model() 
const;
 
  195     void setModel( QgsProcessingModelAlgorithm *model );
 
  203     QString modelChildAlgorithmId() 
const;
 
  211     void setModelChildAlgorithmId( 
const QString &
id );
 
  231     QgsProcessingModelAlgorithm *mModel = 
nullptr;
 
  233     QString mModelChildAlgorithmId;
 
  248 class GUI_EXPORT QgsProcessingGuiUtils
 
  350     QWidget *wrappedWidget();
 
  356     QLabel *wrappedLabel();
 
  365     % Property( name = param, get = parameterDefinition )
 
  383     QVariant parameterValue() 
const;
 
  388     virtual QVariantMap customProperties() 
const;
 
  411     virtual void postInitialize( 
const QList< QgsAbstractProcessingParameterWidgetWrapper * > &wrappers );
 
  420     virtual int stretch() 
const;
 
  429     virtual void setDialog( QDialog *dialog );
 
  479     virtual QVariant widgetValue() 
const = 0;
 
  509     QPointer< QWidget > mWidget;
 
  510     QPointer< QgsPropertyOverrideButton > mPropertyButton;
 
  511     QPointer< QLabel > mLabel;
 
  512     std::unique_ptr< QgsVectorLayer > mDynamicLayer;
 
  514     friend class TestProcessingGui;
 
  542     virtual QString parameterType() 
const = 0;
 
  570         const QString &childId,
 
  620     virtual QStringList compatibleParameterTypes() 
const = 0;
 
  636     virtual QStringList compatibleOutputTypes() 
const = 0;
 
  663     virtual QString modelerExpressionFormatString() 
const;
 
  715     QPointer < const QgsVectorLayer > mLayer;
 
  719 #endif // QGSPROCESSINGWIDGETWRAPPER_H 
  
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
 
Contains settings which reflect the context in which a Processing parameter widget is shown,...
 
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into allowing algorithms to be written in pure substantial changes are required in order to port existing x Processing algorithms for QGIS x The most significant changes are outlined not GeoAlgorithm For algorithms which operate on features one by consider subclassing the QgsProcessingFeatureBasedAlgorithm class This class allows much of the boilerplate code for looping over features from a vector layer to be bypassed and instead requires implementation of a processFeature method Ensure that your algorithm(or algorithm 's parent class) implements the new pure virtual createInstance(self) call
 
Map canvas is a class for displaying all GIS data types on a canvas.
 
Base class for the definition of processing parameters.
 
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
 
@ Standard
Standard algorithm dialog.
 
Contains information about the context in which a processing algorithm is executed.
 
A bar for displaying non-blocking messages to the user.
 
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsField::ConfigurationFlags) CORE_EXPORT QDataStream &operator<<(QDataStream &out
Writes the field to stream out. QGIS version compatibility is not guaranteed.
 
virtual QgsExpressionContext createExpressionContext() const =0
This method needs to be reimplemented in all classes which implement this interface and return an exp...
 
An interface for objects which can create sets of parameter values for processing algorithms.
 
WidgetType
Types of dialogs which Processing widgets can be created for.
 
Abstract base class for processing algorithms.
 
Represents a vector layer which manages a vector based data sets.
 
Base class for all map layer types. This is the base class for all map layer types (vector,...
 
Abstract interface for generating an expression context.
 
Flag
Flags controlling parameter generation.
 
A model for showing available data sources and other items in a structured tree.
 
An interface for objects which can create Processing contexts.