18 #ifndef QGSWMSPARAMETERS_H
19 #define QGSWMSPARAMETERS_H
34 struct QgsWmsParametersFilter
53 QList<QgsWmsParametersFilter>
mFilter;
59 struct QgsWmsParametersExternalLayer
200 const QVariant::Type type = QVariant::String,
201 const QVariant defaultValue = QVariant( "" ) );
220 QStringList
toStyleList( const
char delimiter = ',' ) const;
236 QList<
int>
toIntList( const
char delimiter = ',' ) const;
244 QList<
double>
toDoubleList( const
char delimiter = ',' ) const;
252 QList<QColor>
toColorList( const
char delimiter = ',' ) const;
308 QString
name() const;
361 USE_TITLE_AS_LAYERNAME,
366 Q_ENUM( DxfFormatOption )
408 QString width() const;
417 int widthAsInt() const;
423 QString height() const;
432 int heightAsInt() const;
439 QString srcWidth() const;
449 int srcWidthAsInt() const;
456 QString srcHeight() const;
466 int srcHeightAsInt() const;
478 bool versionIsValid( const QString version ) const;
484 QString bbox() const;
498 QString sldBody() const;
504 QStringList selections() const;
510 QStringList filters() const;
516 QString filterGeom() const;
522 QStringList opacities() const;
531 QList<
int> opacitiesAsInt() const;
537 QStringList allLayersNickname() const;
543 QStringList queryLayersNickname() const;
549 QStringList allStyles() const;
562 QString polygonTolerance() const;
569 QString lineTolerance() const;
576 QString pointTolerance() const;
583 int polygonToleranceAsInt() const;
590 int lineToleranceAsInt() const;
597 int pointToleranceAsInt() const;
603 QString formatAsString() const;
609 static QString formatAsString(
Format format );
622 QString infoFormatAsString() const;
628 bool infoFormatIsImage() const;
635 QString imageQuality() const;
642 int imageQualityAsInt() const;
649 QString tiled() const;
656 bool tiledAsBool() const;
663 Format infoFormat() const;
670 int infoFormatVersion() const;
736 QString rule() const;
742 QString ruleLabel() const;
750 bool ruleLabelAsBool() const;
756 QString showFeatureCount() const;
764 bool showFeatureCountAsBool() const;
770 QString featureCount() const;
778 int featureCountAsInt() const;
784 QString scale() const;
792 double scaleAsDouble() const;
798 QString boxSpace() const;
806 double boxSpaceAsDouble() const;
812 QString layerSpace() const;
820 double layerSpaceAsDouble() const;
826 QString layerTitleSpace() const;
834 double layerTitleSpaceAsDouble() const;
840 QString symbolSpace() const;
848 double symbolSpaceAsDouble() const;
854 QString iconLabelSpace() const;
862 double iconLabelSpaceAsDouble() const;
868 QString symbolWidth() const;
876 double symbolWidthAsDouble() const;
882 QString symbolHeight() const;
890 double symbolHeightAsDouble() const;
897 QFont layerFont() const;
903 QString layerFontFamily() const;
909 QString layerFontBold() const;
917 bool layerFontBoldAsBool() const;
923 QString layerFontItalic() const;
931 bool layerFontItalicAsBool() const;
937 QString layerFontSize() const;
945 double layerFontSizeAsDouble() const;
951 QString layerFontColor() const;
959 QColor layerFontColorAsColor() const;
966 QFont itemFont() const;
972 QString itemFontFamily() const;
978 QString itemFontBold() const;
986 bool itemFontBoldAsBool() const;
992 QString itemFontItalic() const;
1000 bool itemFontItalicAsBool() const;
1006 QString itemFontSize() const;
1014 double itemFontSizeAsDouble() const;
1020 QString itemFontColor() const;
1028 QColor itemFontColorAsColor() const;
1034 QString layerTitle() const;
1042 bool layerTitleAsBool() const;
1066 QStringList highlightGeom() const;
1080 QStringList highlightSymbol() const;
1086 QStringList highlightLabelString() const;
1092 QStringList highlightLabelColor() const;
1100 QList<QColor> highlightLabelColorAsColor() const;
1106 QStringList highlightLabelSize() const;
1114 QList<
int> highlightLabelSizeAsInt() const;
1120 QStringList highlightLabelWeight() const;
1128 QList<
int> highlightLabelWeightAsInt() const;
1134 QStringList highlightLabelFont() const;
1140 QStringList highlightLabelBufferSize() const;
1148 QList<
double> highlightLabelBufferSizeAsFloat() const;
1154 QStringList highlightLabelBufferColor() const;
1162 QList<QColor> highlightLabelBufferColorAsColor() const;
1168 QList<
double> highlightLabelRotation() const;
1174 QList<
double> highlightLabelDistance() const;
1180 QStringList highlightLabelHorizontalAlignment() const;
1186 QStringList highlightLabelVerticalAlignment() const;
1192 QString wmsPrecision() const;
1201 int wmsPrecisionAsInt() const;
1207 QString transparent() const;
1216 bool transparentAsBool() const;
1222 QString backgroundColor() const;
1231 QColor backgroundColorAsColor() const;
1237 QString dpi() const;
1246 double dpiAsDouble() const;
1252 QString composerTemplate() const;
1270 QString externalWMSUri( const QString &
id ) const;
1276 bool withGeometry() const;
1282 bool withMapTip() const;
1288 QString wmtver() const;
1297 QString layoutParameter( const QString &
id,
bool &ok ) const;
1304 QStringList atlasPk() const;
1316 QStringList dxfLayerAttributes() const;
1322 bool dxfUseLayerTitleAsName() const;
1328 double dxfScale() const;
1340 QString dxfCodec() const;
1346 QMap<QString, QString> dimensionValues() const;
1354 bool noMText() const;
1362 bool isForce2D() const;
1364 QString version() const override;
1366 QString request() const override;
1369 static
bool isExternalLayer( const QString &
name );
1371 bool loadParameter( const QString &
name, const QString &value ) override;
1378 void log( const QString &msg ) const;
1386 QMap<QString, QMap<QString, QString> > mExternalWMSParameters;