QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
qgsmeshrenderersettings.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsmeshrenderersettings.cpp
3  ---------------------------
4  begin : May 2018
5  copyright : (C) 2018 by Peter Petrik
6  email : zilolv 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 
19 #include "qgssymbollayerutils.h"
20 #include "qgsunittypes.h"
21 
23 {
24  return mEnabled;
25 }
26 
28 {
29  mEnabled = on;
30 }
31 
33 {
34  return mLineWidth;
35 }
36 
38 {
39  mLineWidth = lineWidth;
40 }
41 
43 {
44  return mColor;
45 }
46 
47 void QgsMeshRendererMeshSettings::setColor( const QColor &color )
48 {
49  mColor = color;
50 }
51 
53 {
54  return mLineWidthUnit;
55 }
56 
58 {
59  mLineWidthUnit = lineWidthUnit;
60 }
61 
62 QDomElement QgsMeshRendererMeshSettings::writeXml( QDomDocument &doc ) const
63 {
64  QDomElement elem = doc.createElement( QStringLiteral( "mesh-settings" ) );
65  elem.setAttribute( QStringLiteral( "enabled" ), mEnabled ? QStringLiteral( "1" ) : QStringLiteral( "0" ) );
66  elem.setAttribute( QStringLiteral( "line-width" ), mLineWidth );
67  elem.setAttribute( QStringLiteral( "color" ), QgsSymbolLayerUtils::encodeColor( mColor ) );
68  elem.setAttribute( QStringLiteral( "line-width-unit" ), QgsUnitTypes::encodeUnit( mLineWidthUnit ) );
69  return elem;
70 }
71 
72 void QgsMeshRendererMeshSettings::readXml( const QDomElement &elem )
73 {
74  mEnabled = elem.attribute( QStringLiteral( "enabled" ) ).toInt();
75  mLineWidth = elem.attribute( QStringLiteral( "line-width" ) ).toDouble();
76  mColor = QgsSymbolLayerUtils::decodeColor( elem.attribute( QStringLiteral( "color" ) ) );
77  mLineWidthUnit = QgsUnitTypes::decodeRenderUnit( elem.attribute( QStringLiteral( "line-width-unit" ) ) );
78 }
79 // ---------------------------------------------------------------------
80 
82 {
83  return mColorRampShader;
84 }
85 
87 {
88  mColorRampShader = shader;
89 }
90 
91 double QgsMeshRendererScalarSettings::classificationMinimum() const { return mClassificationMinimum; }
92 
93 double QgsMeshRendererScalarSettings::classificationMaximum() const { return mClassificationMaximum; }
94 
96 {
97  mClassificationMinimum = minimum;
98  mClassificationMaximum = maximum;
99 }
100 
101 double QgsMeshRendererScalarSettings::opacity() const { return mOpacity; }
102 
103 void QgsMeshRendererScalarSettings::setOpacity( double opacity ) { mOpacity = opacity; }
104 
106 {
107  return mDataResamplingMethod;
108 }
109 
111 {
112  mDataResamplingMethod = dataInterpolationMethod;
113 }
114 
115 QDomElement QgsMeshRendererScalarSettings::writeXml( QDomDocument &doc ) const
116 {
117  QgsReadWriteContext readWriteContext;
118  QDomElement elem = doc.createElement( QStringLiteral( "scalar-settings" ) );
119  elem.setAttribute( QStringLiteral( "min-val" ), mClassificationMinimum );
120  elem.setAttribute( QStringLiteral( "max-val" ), mClassificationMaximum );
121  elem.setAttribute( QStringLiteral( "opacity" ), mOpacity );
122 
123  QString methodTxt;
124  switch ( mDataResamplingMethod )
125  {
126  case None:
127  methodTxt = QStringLiteral( "none" );
128  break;
129  case NeighbourAverage:
130  methodTxt = QStringLiteral( "neighbour-average" );
131  break;
132  }
133  elem.setAttribute( QStringLiteral( "interpolation-method" ), methodTxt );
134  QDomElement elemShader = mColorRampShader.writeXml( doc );
135  elem.appendChild( elemShader );
136 
137  QDomElement elemEdge = doc.createElement( QStringLiteral( "edge-settings" ) );
138  elemEdge.appendChild( mEdgeStrokeWidth.writeXml( doc, readWriteContext ) );
139  elemEdge.setAttribute( QStringLiteral( "stroke-width-unit" ), mEdgeStrokeWidthUnit );
140  elem.appendChild( elemEdge );
141 
142  return elem;
143 }
144 
145 void QgsMeshRendererScalarSettings::readXml( const QDomElement &elem )
146 {
147  QgsReadWriteContext readWriteContext;
148  mClassificationMinimum = elem.attribute( QStringLiteral( "min-val" ) ).toDouble();
149  mClassificationMaximum = elem.attribute( QStringLiteral( "max-val" ) ).toDouble();
150  mOpacity = elem.attribute( QStringLiteral( "opacity" ) ).toDouble();
151 
152  QString methodTxt = elem.attribute( QStringLiteral( "interpolation-method" ) );
153  if ( QStringLiteral( "neighbour-average" ) == methodTxt )
154  {
155  mDataResamplingMethod = DataResamplingMethod::NeighbourAverage;
156  }
157  else
158  {
159  mDataResamplingMethod = DataResamplingMethod::None;
160  }
161  QDomElement elemShader = elem.firstChildElement( QStringLiteral( "colorrampshader" ) );
162  mColorRampShader.readXml( elemShader );
163 
164  QDomElement elemEdge = elem.firstChildElement( QStringLiteral( "edge-settings" ) );
165  QDomElement elemEdgeStrokeWidth = elemEdge.firstChildElement( QStringLiteral( "mesh-stroke-width" ) );
166  mEdgeStrokeWidth.readXml( elemEdgeStrokeWidth, readWriteContext );
167  mEdgeStrokeWidthUnit = static_cast<QgsUnitTypes::RenderUnit>(
168  elemEdge.attribute( QStringLiteral( "stroke-width-unit" ) ).toInt() );
169 }
170 
172 {
173  return mEdgeStrokeWidth;
174 }
175 
177 {
178  mEdgeStrokeWidth = strokeWidth;
179 }
180 
182 {
183  return mEdgeStrokeWidthUnit;
184 }
185 
187 {
188  mEdgeStrokeWidthUnit = edgeStrokeWidthUnit;
189 }
190 
191 // ---------------------------------------------------------------------
192 
194 {
195  return mLineWidth;
196 }
197 
199 {
200  mLineWidth = lineWidth;
201 }
202 
204 {
205  return mColor;
206 }
207 
208 void QgsMeshRendererVectorSettings::setColor( const QColor &vectorColor )
209 {
210  mColor = vectorColor;
211 }
212 
214 {
215  return mFilterMin;
216 }
217 
218 void QgsMeshRendererVectorSettings::setFilterMin( double vectorFilterMin )
219 {
220  mFilterMin = vectorFilterMin;
221 }
222 
224 {
225  return mFilterMax;
226 }
227 
228 void QgsMeshRendererVectorSettings::setFilterMax( double vectorFilterMax )
229 {
230  mFilterMax = vectorFilterMax;
231 }
232 
234 {
235  return mOnUserDefinedGrid;
236 }
237 
239 {
240  mOnUserDefinedGrid = enabled;
241 }
242 
244 {
245  return mUserGridCellWidth;
246 }
247 
249 {
250  mUserGridCellWidth = width;
251 }
252 
254 {
255  return mUserGridCellHeight;
256 }
257 
259 {
260  mUserGridCellHeight = height;
261 }
262 
264 {
265  return mShaftLengthMethod;
266 }
267 
269 {
270  mShaftLengthMethod = shaftLengthMethod;
271 }
272 
274 {
275  return mMinShaftLength;
276 }
277 
279 {
280  mMinShaftLength = minShaftLength;
281 }
282 
284 {
285  return mMaxShaftLength;
286 }
287 
289 {
290  mMaxShaftLength = maxShaftLength;
291 }
292 
294 {
295  return mScaleFactor;
296 }
297 
299 {
300  mScaleFactor = scaleFactor;
301 }
302 
304 {
305  return mFixedShaftLength;
306 }
307 
309 {
310  mFixedShaftLength = fixedShaftLength;
311 }
312 
314 {
315  return mArrowHeadWidthRatio;
316 }
317 
319 {
320  mArrowHeadWidthRatio = vectorHeadWidthRatio;
321 }
322 
324 {
325  return mArrowHeadLengthRatio;
326 }
327 
329 {
330  mArrowHeadLengthRatio = vectorHeadLengthRatio;
331 }
332 
333 QDomElement QgsMeshRendererVectorArrowSettings::writeXml( QDomDocument &doc ) const
334 {
335  QDomElement elem = doc.createElement( QStringLiteral( "vector-arrow-settings" ) );
336  elem.setAttribute( QStringLiteral( "arrow-head-width-ratio" ), mArrowHeadWidthRatio );
337  elem.setAttribute( QStringLiteral( "arrow-head-length-ratio" ), mArrowHeadLengthRatio );
338 
339  QDomElement elemShaft = doc.createElement( QStringLiteral( "shaft-length" ) );
340  QString methodTxt;
341  switch ( mShaftLengthMethod )
342  {
343  case MinMax:
344  methodTxt = QStringLiteral( "minmax" );
345  elemShaft.setAttribute( QStringLiteral( "min" ), mMinShaftLength );
346  elemShaft.setAttribute( QStringLiteral( "max" ), mMaxShaftLength );
347  break;
348  case Scaled:
349  methodTxt = QStringLiteral( "scaled" );
350  elemShaft.setAttribute( QStringLiteral( "scale-factor" ), mScaleFactor );
351  break;
352  case Fixed:
353  methodTxt = QStringLiteral( "fixed" ) ;
354  elemShaft.setAttribute( QStringLiteral( "fixed-length" ), mFixedShaftLength );
355  break;
356  }
357  elemShaft.setAttribute( QStringLiteral( "method" ), methodTxt );
358  elem.appendChild( elemShaft );
359  return elem;
360 }
361 
362 void QgsMeshRendererVectorArrowSettings::readXml( const QDomElement &elem )
363 {
364  mArrowHeadWidthRatio = elem.attribute( QStringLiteral( "arrow-head-width-ratio" ) ).toDouble();
365  mArrowHeadLengthRatio = elem.attribute( QStringLiteral( "arrow-head-length-ratio" ) ).toDouble();
366 
367  QDomElement elemShaft = elem.firstChildElement( QStringLiteral( "shaft-length" ) );
368  QString methodTxt = elemShaft.attribute( QStringLiteral( "method" ) );
369  if ( QStringLiteral( "minmax" ) == methodTxt )
370  {
371  mShaftLengthMethod = MinMax;
372  mMinShaftLength = elemShaft.attribute( QStringLiteral( "min" ) ).toDouble();
373  mMaxShaftLength = elemShaft.attribute( QStringLiteral( "max" ) ).toDouble();
374  }
375  else if ( QStringLiteral( "scaled" ) == methodTxt )
376  {
377  mShaftLengthMethod = Scaled;
378  mScaleFactor = elemShaft.attribute( QStringLiteral( "scale-factor" ) ).toDouble();
379  }
380  else // fixed
381  {
382  mShaftLengthMethod = Fixed;
383  mFixedShaftLength = elemShaft.attribute( QStringLiteral( "fixed-length" ) ).toDouble();
384  }
385 }
386 
387 // ---------------------------------------------------------------------
388 
390  : mAveragingMethod( new QgsMeshMultiLevelsAveragingMethod() )
391 {
392 }
393 
395 
397 {
398  return mAveragingMethod.get();
399 }
400 
402 {
403  if ( method )
404  mAveragingMethod.reset( method->clone() );
405  else
406  mAveragingMethod.reset();
407 }
408 
409 QDomElement QgsMeshRendererSettings::writeXml( QDomDocument &doc ) const
410 {
411  QDomElement elem = doc.createElement( QStringLiteral( "mesh-renderer-settings" ) );
412 
413  QDomElement elemActiveDatasetGroup = doc.createElement( QStringLiteral( "active-dataset-group" ) );
414  elemActiveDatasetGroup.setAttribute( QStringLiteral( "scalar" ), mActiveScalarDatasetGroup );
415  elemActiveDatasetGroup.setAttribute( QStringLiteral( "vector" ), mActiveVectorDatasetGroup );
416  elem.appendChild( elemActiveDatasetGroup );
417 
418  for ( int groupIndex : mRendererScalarSettings.keys() )
419  {
420  const QgsMeshRendererScalarSettings &scalarSettings = mRendererScalarSettings[groupIndex];
421  QDomElement elemScalar = scalarSettings.writeXml( doc );
422  elemScalar.setAttribute( QStringLiteral( "group" ), groupIndex );
423  elem.appendChild( elemScalar );
424  }
425 
426  for ( int groupIndex : mRendererVectorSettings.keys() )
427  {
428  const QgsMeshRendererVectorSettings &vectorSettings = mRendererVectorSettings[groupIndex];
429  QDomElement elemVector = vectorSettings.writeXml( doc );
430  elemVector.setAttribute( QStringLiteral( "group" ), groupIndex );
431  elem.appendChild( elemVector );
432  }
433 
434  QDomElement elemNativeMesh = mRendererNativeMeshSettings.writeXml( doc );
435  elemNativeMesh.setTagName( QStringLiteral( "mesh-settings-native" ) );
436  elem.appendChild( elemNativeMesh );
437 
438  QDomElement elemEdgeMesh = mRendererEdgeMeshSettings.writeXml( doc );
439  elemEdgeMesh.setTagName( QStringLiteral( "mesh-settings-edge" ) );
440  elem.appendChild( elemEdgeMesh );
441 
442  QDomElement elemTriangularMesh = mRendererTriangularMeshSettings.writeXml( doc );
443  elemTriangularMesh.setTagName( QStringLiteral( "mesh-settings-triangular" ) );
444  elem.appendChild( elemTriangularMesh );
445 
446  if ( mAveragingMethod )
447  {
448  QDomElement elemAveraging = doc.createElement( QStringLiteral( "averaging-3d" ) );
449  elemAveraging.setAttribute( QStringLiteral( "method" ), QString::number( mAveragingMethod->method() ) ) ;
450  QDomElement elemAveragingParams = mAveragingMethod->writeXml( doc );
451  elemAveraging.appendChild( elemAveragingParams );
452  elem.appendChild( elemAveraging );
453  }
454 
455  return elem;
456 }
457 
458 void QgsMeshRendererSettings::readXml( const QDomElement &elem )
459 {
460  mRendererScalarSettings.clear();
461  mRendererVectorSettings.clear();
462  mAveragingMethod.reset();
463 
464  QDomElement elemActiveDataset = elem.firstChildElement( QStringLiteral( "active-dataset-group" ) );
465  if ( elemActiveDataset.hasAttribute( QStringLiteral( "scalar" ) ) )
466  mActiveScalarDatasetGroup = elemActiveDataset.attribute( QStringLiteral( "scalar" ) ).toInt();
467 
468  if ( elemActiveDataset.hasAttribute( QStringLiteral( "vector" ) ) )
469  mActiveVectorDatasetGroup = elemActiveDataset.attribute( QStringLiteral( "vector" ) ).toInt();
470 
471  QDomElement elemScalar = elem.firstChildElement( QStringLiteral( "scalar-settings" ) );
472  while ( !elemScalar.isNull() )
473  {
474  int groupIndex = elemScalar.attribute( QStringLiteral( "group" ) ).toInt();
476  scalarSettings.readXml( elemScalar );
477  mRendererScalarSettings.insert( groupIndex, scalarSettings );
478 
479  elemScalar = elemScalar.nextSiblingElement( QStringLiteral( "scalar-settings" ) );
480  }
481 
482  QDomElement elemVector = elem.firstChildElement( QStringLiteral( "vector-settings" ) );
483  while ( !elemVector.isNull() )
484  {
485  int groupIndex = elemVector.attribute( QStringLiteral( "group" ) ).toInt();
487  vectorSettings.readXml( elemVector );
488  mRendererVectorSettings.insert( groupIndex, vectorSettings );
489 
490  elemVector = elemVector.nextSiblingElement( QStringLiteral( "vector-settings" ) );
491  }
492 
493  QDomElement elemNativeMesh = elem.firstChildElement( QStringLiteral( "mesh-settings-native" ) );
494  mRendererNativeMeshSettings.readXml( elemNativeMesh );
495 
496  QDomElement elemEdgeMesh = elem.firstChildElement( QStringLiteral( "mesh-settings-edge" ) );
497  mRendererEdgeMeshSettings.readXml( elemEdgeMesh );
498 
499  QDomElement elemTriangularMesh = elem.firstChildElement( QStringLiteral( "mesh-settings-triangular" ) );
500  mRendererTriangularMeshSettings.readXml( elemTriangularMesh );
501 
502  QDomElement elemAveraging = elem.firstChildElement( QStringLiteral( "averaging-3d" ) );
503  if ( !elemAveraging.isNull() )
504  {
505  mAveragingMethod.reset( QgsMesh3dAveragingMethod::createFromXml( elemAveraging ) );
506  }
507 }
508 
510 {
511  return mActiveScalarDatasetGroup;
512 }
513 
514 void QgsMeshRendererSettings::setActiveScalarDatasetGroup( int activeScalarDatasetGroup )
515 {
516  mActiveScalarDatasetGroup = activeScalarDatasetGroup;
517 }
518 
520 {
521  return mActiveVectorDatasetGroup;
522 }
523 
524 void QgsMeshRendererSettings::setActiveVectorDatasetGroup( int activeVectorDatasetGroup )
525 {
526  mActiveVectorDatasetGroup = activeVectorDatasetGroup;
527 }
528 
530 {
531  return mSeedingMethod;
532 }
533 
535 {
536  mSeedingMethod = seedingMethod;
537 }
538 
540 {
541  return mSeedingDensity;
542 }
543 
545 {
546  mSeedingDensity = seedingDensity;
547 }
548 
549 QDomElement QgsMeshRendererVectorStreamlineSettings::writeXml( QDomDocument &doc ) const
550 {
551  QDomElement elem = doc.createElement( QStringLiteral( "vector-streamline-settings" ) );
552 
553  elem.setAttribute( QStringLiteral( "seeding-method" ), mSeedingMethod );
554  elem.setAttribute( QStringLiteral( "seeding-density" ), mSeedingDensity );
555 
556  return elem;
557 }
558 
560 {
561  mSeedingMethod =
563  elem.attribute( QStringLiteral( "seeding-method" ) ).toInt() );
564  mSeedingDensity = elem.attribute( QStringLiteral( "seeding-density" ) ).toDouble();
565 }
566 
568 {
569  return mDisplayingMethod;
570 }
571 
573 {
574  mDisplayingMethod = displayingMethod;
575 }
576 
578 {
579  return mArrowsSettings;
580 }
581 
583 {
584  mArrowsSettings = arrowSettings;
585 }
586 
588 {
589  return mStreamLinesSettings;
590 }
591 
593 {
594  mStreamLinesSettings = streamLinesSettings;
595 }
596 
597 QDomElement QgsMeshRendererVectorSettings::writeXml( QDomDocument &doc ) const
598 {
599  QDomElement elem = doc.createElement( QStringLiteral( "vector-settings" ) );
600  elem.setAttribute( QStringLiteral( "symbology" ), mDisplayingMethod );
601 
602  elem.setAttribute( QStringLiteral( "line-width" ), mLineWidth );
603  elem.setAttribute( QStringLiteral( "coloring-method" ), coloringMethod() );
604  elem.setAttribute( QStringLiteral( "color" ), QgsSymbolLayerUtils::encodeColor( mColor ) );
605  QDomElement elemShader = mColorRampShader.writeXml( doc );
606  elem.appendChild( elemShader );
607  elem.setAttribute( QStringLiteral( "filter-min" ), mFilterMin );
608  elem.setAttribute( QStringLiteral( "filter-max" ), mFilterMax );
609 
610  elem.setAttribute( QStringLiteral( "user-grid-enabled" ), mOnUserDefinedGrid ? QStringLiteral( "1" ) : QStringLiteral( "0" ) );
611  elem.setAttribute( QStringLiteral( "user-grid-width" ), mUserGridCellWidth );
612  elem.setAttribute( QStringLiteral( "user-grid-height" ), mUserGridCellHeight );
613 
614  elem.appendChild( mArrowsSettings.writeXml( doc ) );
615  elem.appendChild( mStreamLinesSettings.writeXml( doc ) );
616  elem.appendChild( mTracesSettings.writeXml( doc ) );
617 
618  return elem;
619 }
620 
621 void QgsMeshRendererVectorSettings::readXml( const QDomElement &elem )
622 {
623  mDisplayingMethod = static_cast<QgsMeshRendererVectorSettings::Symbology>(
624  elem.attribute( QStringLiteral( "symbology" ) ).toInt() );
625 
626  mLineWidth = elem.attribute( QStringLiteral( "line-width" ) ).toDouble();
627  mColoringMethod = static_cast<QgsInterpolatedLineColor::ColoringMethod>(
628  elem.attribute( QStringLiteral( "coloring-method" ) ).toInt() );
629  mColor = QgsSymbolLayerUtils::decodeColor( elem.attribute( QStringLiteral( "color" ) ) );
630  mColorRampShader.readXml( elem.firstChildElement( "colorrampshader" ) );
631  mFilterMin = elem.attribute( QStringLiteral( "filter-min" ) ).toDouble();
632  mFilterMax = elem.attribute( QStringLiteral( "filter-max" ) ).toDouble();
633 
634  mOnUserDefinedGrid = elem.attribute( QStringLiteral( "user-grid-enabled" ) ).toInt(); //bool
635  mUserGridCellWidth = elem.attribute( QStringLiteral( "user-grid-width" ) ).toInt();
636  mUserGridCellHeight = elem.attribute( QStringLiteral( "user-grid-height" ) ).toInt();
637 
638  QDomElement elemVector = elem.firstChildElement( QStringLiteral( "vector-arrow-settings" ) );
639  if ( ! elemVector.isNull() )
640  mArrowsSettings.readXml( elemVector );
641 
642  QDomElement elemStreamLine = elem.firstChildElement( QStringLiteral( "vector-streamline-settings" ) );
643  if ( ! elemStreamLine.isNull() )
644  mStreamLinesSettings.readXml( elemStreamLine );
645 
646  QDomElement elemTraces = elem.firstChildElement( QStringLiteral( "vector-traces-settings" ) );
647  if ( ! elemTraces.isNull() )
648  mTracesSettings.readXml( elemTraces );
649 }
650 
652 {
653  return mColoringMethod;
654 }
655 
657 {
658  mColoringMethod = coloringMethod;
659 }
660 
662 {
663  return mColorRampShader;
664 }
665 
667 {
668  mColorRampShader = colorRampShader;
669 }
670 
672 {
673  QgsInterpolatedLineColor strokeColoring;
674  switch ( mColoringMethod )
675  {
677  strokeColoring = QgsInterpolatedLineColor( mColor );
678  break;
680  strokeColoring = QgsInterpolatedLineColor( mColorRampShader );
681  break;
682  }
683 
684  return strokeColoring;
685 }
686 
688 {
689  return mTracesSettings;
690 }
691 
693 {
694  mTracesSettings = tracesSettings;
695 }
696 
697 void QgsMeshRendererVectorTracesSettings::readXml( const QDomElement &elem )
698 {
699  mMaximumTailLength = elem.attribute( QStringLiteral( "maximum-tail-length" ) ).toInt();
700  mMaximumTailLengthUnit = static_cast<QgsUnitTypes::RenderUnit>(
701  elem.attribute( QStringLiteral( "maximum-tail-length-unit" ) ).toInt() );
702  mParticlesCount = elem.attribute( QStringLiteral( "particles-count" ) ).toInt();
703 }
704 
705 QDomElement QgsMeshRendererVectorTracesSettings::writeXml( QDomDocument &doc ) const
706 {
707  QDomElement elem = doc.createElement( QStringLiteral( "vector-traces-settings" ) );
708  elem.setAttribute( QStringLiteral( "maximum-tail-length" ), mMaximumTailLength );
709  elem.setAttribute( QStringLiteral( "maximum-tail-length-unit" ), mMaximumTailLengthUnit );
710  elem.setAttribute( QStringLiteral( "particles-count" ), mParticlesCount );
711 
712  return elem;
713 }
714 
716 {
717  return mMaximumTailLengthUnit;
718 }
719 
721 {
722  mMaximumTailLengthUnit = maximumTailLengthUnit;
723 }
724 
726 {
727  return mMaximumTailLength;
728 }
729 
731 {
732  mMaximumTailLength = maximumTailLength;
733 }
734 
736 {
737  return mParticlesCount;
738 }
739 
741 {
742  mParticlesCount = value;
743 }
744 
QgsMeshRendererVectorSettings
Represents a renderer settings for vector datasets.
Definition: qgsmeshrenderersettings.h:411
QgsMeshRendererVectorStreamlineSettings::SeedingStartPointsMethod
SeedingStartPointsMethod
Method used to define start points that are used to draw streamlines.
Definition: qgsmeshrenderersettings.h:329
QgsInterpolatedLineWidth::readXml
void readXml(const QDomElement &elem, const QgsReadWriteContext &context)
Reads configuration from the given DOM element.
Definition: qgsinterpolatedlinerenderer.cpp:321
QgsMeshRendererScalarSettings::writeXml
QDomElement writeXml(QDomDocument &doc) const
Writes configuration to a new DOM element.
Definition: qgsmeshrenderersettings.cpp:115
QgsMeshRendererVectorSettings::symbology
Symbology symbology() const
Returns the displaying method used to render vector datasets.
Definition: qgsmeshrenderersettings.cpp:567
QgsSymbolLayerUtils::encodeColor
static QString encodeColor(const QColor &color)
Definition: qgssymbollayerutils.cpp:52
QgsMeshRendererScalarSettings::setClassificationMinimumMaximum
void setClassificationMinimumMaximum(double minimum, double maximum)
Sets min/max values used for creation of the color ramp shader.
Definition: qgsmeshrenderersettings.cpp:95
QgsMeshRendererVectorArrowSettings::Fixed
@ Fixed
Use fixed length fixedShaftLength() regardless of vector's magnitude.
Definition: qgsmeshrenderersettings.h:226
QgsMeshRendererScalarSettings::dataResamplingMethod
DataResamplingMethod dataResamplingMethod() const
Returns the type of interpolation to use to convert face defined datasets to values on vertices.
Definition: qgsmeshrenderersettings.cpp:105
QgsUnitTypes::RenderUnit
RenderUnit
Rendering size units.
Definition: qgsunittypes.h:167
QgsMeshRendererVectorArrowSettings::arrowHeadWidthRatio
double arrowHeadWidthRatio() const
Returns ratio of the head width of the arrow (range 0-1)
Definition: qgsmeshrenderersettings.cpp:313
QgsMeshRendererVectorSettings::arrowSettings
QgsMeshRendererVectorArrowSettings arrowSettings() const
Returns settings for vector rendered with arrows.
Definition: qgsmeshrenderersettings.cpp:577
QgsMeshRendererVectorSettings::setFilterMin
void setFilterMin(double filterMin)
Sets filter value for vector magnitudes.
Definition: qgsmeshrenderersettings.cpp:218
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition: qgsreadwritecontext.h:35
QgsMeshRendererSettings::setActiveVectorDatasetGroup
void setActiveVectorDatasetGroup(int activeVectorDatasetGroup)
Sets the active vector dataset group.
Definition: qgsmeshrenderersettings.cpp:524
QgsMeshRendererVectorArrowSettings::setArrowHeadLengthRatio
void setArrowHeadLengthRatio(double arrowHeadLengthRatio)
Sets ratio of the head length of the arrow (range 0-1)
Definition: qgsmeshrenderersettings.cpp:328
QgsInterpolatedLineColor::SingleColor
@ SingleColor
Render with a single color.
Definition: qgsinterpolatedlinerenderer.h:44
QgsMeshRendererMeshSettings::color
QColor color() const
Returns color used for rendering.
Definition: qgsmeshrenderersettings.cpp:42
QgsMeshRendererScalarSettings::classificationMinimum
double classificationMinimum() const
Returns min value used for creation of the color ramp shader.
Definition: qgsmeshrenderersettings.cpp:91
QgsMeshRendererVectorSettings::readXml
void readXml(const QDomElement &elem)
Reads configuration from the given DOM element.
Definition: qgsmeshrenderersettings.cpp:621
QgsColorRampShader::writeXml
QDomElement writeXml(QDomDocument &doc) const
Writes configuration to a new DOM element.
Definition: qgscolorrampshader.cpp:502
QgsMeshRendererSettings::setAveragingMethod
void setAveragingMethod(QgsMesh3dAveragingMethod *method)
Sets averaging method for conversion of 3d stacked mesh data to 2d data.
Definition: qgsmeshrenderersettings.cpp:401
QgsMeshRendererMeshSettings::lineWidthUnit
QgsUnitTypes::RenderUnit lineWidthUnit() const
Returns units of the width of the mesh frame.
Definition: qgsmeshrenderersettings.cpp:52
QgsMeshRendererMeshSettings::lineWidth
double lineWidth() const
Returns line width used for rendering (in millimeters)
Definition: qgsmeshrenderersettings.cpp:32
QgsMeshMultiLevelsAveragingMethod
Multi level averaging method specifies limits of vertical layers from the top layer down or reversed.
Definition: qgsmesh3daveraging.h:159
qgssymbollayerutils.h
QgsInterpolatedLineColor::ColoringMethod
ColoringMethod
Defines how the color is defined.
Definition: qgsinterpolatedlinerenderer.h:42
QgsMeshRendererMeshSettings::setColor
void setColor(const QColor &color)
Sets color used for rendering of the mesh.
Definition: qgsmeshrenderersettings.cpp:47
QgsMeshRendererVectorStreamlineSettings::setSeedingMethod
void setSeedingMethod(const SeedingStartPointsMethod &seedingMethod)
Sets the method used for seeding start points of strealines.
Definition: qgsmeshrenderersettings.cpp:534
QgsMeshRendererVectorArrowSettings::setShaftLengthMethod
void setShaftLengthMethod(ArrowScalingMethod shaftLengthMethod)
Sets method used for drawing arrows.
Definition: qgsmeshrenderersettings.cpp:268
QgsMeshRendererVectorSettings::setUserGridCellHeight
void setUserGridCellHeight(int height)
Sets height of user grid cell (in pixels)
Definition: qgsmeshrenderersettings.cpp:258
QgsMeshRendererVectorStreamlineSettings::writeXml
QDomElement writeXml(QDomDocument &doc) const
Writes configuration to a new DOM element.
Definition: qgsmeshrenderersettings.cpp:549
qgsunittypes.h
QgsMeshRendererVectorTracesSettings::readXml
void readXml(const QDomElement &elem)
Reads configuration from the given DOM element.
Definition: qgsmeshrenderersettings.cpp:697
QgsMeshRendererVectorArrowSettings::ArrowScalingMethod
ArrowScalingMethod
Algorithm how to transform vector magnitude to length of arrow on the device in pixels.
Definition: qgsmeshrenderersettings.h:211
QgsMeshRendererVectorSettings::tracesSettings
QgsMeshRendererVectorTracesSettings tracesSettings() const
Returns settings for vector rendered with traces.
Definition: qgsmeshrenderersettings.cpp:687
QgsMeshRendererVectorArrowSettings::setFixedShaftLength
void setFixedShaftLength(double fixedShaftLength)
Sets fixed length (in millimeters)
Definition: qgsmeshrenderersettings.cpp:308
QgsSymbolLayerUtils::decodeColor
static QColor decodeColor(const QString &str)
Definition: qgssymbollayerutils.cpp:57
QgsColorRampShader
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
Definition: qgscolorrampshader.h:40
QgsMeshRendererVectorStreamlineSettings::readXml
void readXml(const QDomElement &elem)
Reads configuration from the given DOM element.
Definition: qgsmeshrenderersettings.cpp:559
QgsMeshRendererScalarSettings::setEdgeStrokeWidth
void setEdgeStrokeWidth(const QgsInterpolatedLineWidth &strokeWidth)
Sets the stroke width used to render edges scalar dataset.
Definition: qgsmeshrenderersettings.cpp:176
QgsInterpolatedLineWidth::writeXml
QDomElement writeXml(QDomDocument &doc, const QgsReadWriteContext &context) const
Writes configuration to a new DOM element.
Definition: qgsinterpolatedlinerenderer.cpp:303
QgsMeshRendererVectorStreamlineSettings::setSeedingDensity
void setSeedingDensity(double seedingDensity)
Sets the density used for seeding start points.
Definition: qgsmeshrenderersettings.cpp:544
QgsUnitTypes::decodeRenderUnit
static Q_INVOKABLE QgsUnitTypes::RenderUnit decodeRenderUnit(const QString &string, bool *ok=nullptr)
Decodes a render unit from a string.
Definition: qgsunittypes.cpp:2900
QgsMeshRendererVectorSettings::vectorStrokeColoring
QgsInterpolatedLineColor vectorStrokeColoring() const
Returns the stroke coloring used to render vector datasets.
Definition: qgsmeshrenderersettings.cpp:671
QgsMeshRendererScalarSettings::NeighbourAverage
@ NeighbourAverage
Does a simple average of values defined for all surrounding faces/vertices.
Definition: qgsmeshrenderersettings.h:116
QgsMeshRendererMeshSettings::setLineWidth
void setLineWidth(double lineWidth)
Sets line width used for rendering (in millimeters)
Definition: qgsmeshrenderersettings.cpp:37
QgsMeshRendererVectorSettings::setColoringMethod
void setColoringMethod(const QgsInterpolatedLineColor::ColoringMethod &coloringMethod)
Sets the coloring method used to render vector datasets.
Definition: qgsmeshrenderersettings.cpp:656
QgsInterpolatedLineColor::ColorRamp
@ ColorRamp
Render with a color ramp.
Definition: qgsinterpolatedlinerenderer.h:46
QgsMeshRendererVectorSettings::filterMin
double filterMin() const
Returns filter value for vector magnitudes.
Definition: qgsmeshrenderersettings.cpp:213
QgsMeshRendererVectorTracesSettings::particlesCount
int particlesCount() const
Returns particles count.
Definition: qgsmeshrenderersettings.cpp:735
QgsMeshRendererScalarSettings::opacity
double opacity() const
Returns opacity.
Definition: qgsmeshrenderersettings.cpp:101
QgsMeshRendererSettings::activeScalarDatasetGroup
int activeScalarDatasetGroup() const
Returns the active scalar dataset group.
Definition: qgsmeshrenderersettings.cpp:509
QgsMeshRendererSettings::~QgsMeshRendererSettings
~QgsMeshRendererSettings()
Destructor.
QgsUnitTypes::encodeUnit
static Q_INVOKABLE QString encodeUnit(QgsUnitTypes::DistanceUnit unit)
Encodes a distance unit to a string.
Definition: qgsunittypes.cpp:122
QgsMeshRendererVectorSettings::setOnUserDefinedGrid
void setOnUserDefinedGrid(bool enabled)
Toggles drawing of vectors on user defined grid.
Definition: qgsmeshrenderersettings.cpp:238
QgsMeshRendererVectorSettings::setSymbology
void setSymbology(const Symbology &symbology)
Sets the displaying method used to render vector datasets.
Definition: qgsmeshrenderersettings.cpp:572
QgsMeshRendererSettings::scalarSettings
QgsMeshRendererScalarSettings scalarSettings(int groupIndex) const
Returns renderer settings.
Definition: qgsmeshrenderersettings.h:624
QgsInterpolatedLineWidth
Represents a width than can vary depending on values.
Definition: qgsinterpolatedlinerenderer.h:111
QgsMeshRendererScalarSettings::colorRampShader
QgsColorRampShader colorRampShader() const
Returns color ramp shader function.
Definition: qgsmeshrenderersettings.cpp:81
QgsMeshRendererSettings::activeVectorDatasetGroup
int activeVectorDatasetGroup() const
Returns the active vector dataset group.
Definition: qgsmeshrenderersettings.cpp:519
QgsMeshRendererVectorSettings::writeXml
QDomElement writeXml(QDomDocument &doc) const
Writes configuration to a new DOM element.
Definition: qgsmeshrenderersettings.cpp:597
QgsMeshRendererVectorArrowSettings::Scaled
@ Scaled
Scale vector magnitude by factor scaleFactor()
Definition: qgsmeshrenderersettings.h:221
QgsMeshRendererVectorSettings::setArrowsSettings
void setArrowsSettings(const QgsMeshRendererVectorArrowSettings &arrowSettings)
Sets settings for vector rendered with arrows.
Definition: qgsmeshrenderersettings.cpp:582
QgsMeshRendererVectorTracesSettings::setParticlesCount
void setParticlesCount(int value)
Sets particles count.
Definition: qgsmeshrenderersettings.cpp:740
QgsMeshRendererSettings::QgsMeshRendererSettings
QgsMeshRendererSettings()
Constructs renderer with default single layer averaging method.
Definition: qgsmeshrenderersettings.cpp:389
QgsMeshRendererVectorTracesSettings::maximumTailLength
double maximumTailLength() const
Returns the maximum tail length.
Definition: qgsmeshrenderersettings.cpp:725
QgsInterpolatedLineColor
Class defining color to render mesh datasets.
Definition: qgsinterpolatedlinerenderer.h:35
QgsMeshRendererVectorSettings::setColor
void setColor(const QColor &color)
Sets color used for drawing arrows.
Definition: qgsmeshrenderersettings.cpp:208
QgsMeshRendererScalarSettings::None
@ None
Does not use resampling.
Definition: qgsmeshrenderersettings.h:111
QgsMeshRendererVectorSettings::setStreamLinesSettings
void setStreamLinesSettings(const QgsMeshRendererVectorStreamlineSettings &streamLinesSettings)
Sets settings for vector rendered with streamlines.
Definition: qgsmeshrenderersettings.cpp:592
QgsMeshRendererVectorSettings::setLineWidth
void setLineWidth(double lineWidth)
Sets line width of the arrow in pixels (in millimeters)
Definition: qgsmeshrenderersettings.cpp:198
QgsMeshRendererScalarSettings::readXml
void readXml(const QDomElement &elem)
Reads configuration from the given DOM element.
Definition: qgsmeshrenderersettings.cpp:145
QgsMeshRendererVectorStreamlineSettings::seedingDensity
double seedingDensity() const
Returns the density used for seeding start points.
Definition: qgsmeshrenderersettings.cpp:539
QgsMeshRendererScalarSettings::DataResamplingMethod
DataResamplingMethod
Resampling of value from dataset.
Definition: qgsmeshrenderersettings.h:106
QgsMeshRendererVectorArrowSettings::setMaxShaftLength
void setMaxShaftLength(double maxShaftLength)
Sets maximum shaft length (in millimeters)
Definition: qgsmeshrenderersettings.cpp:288
QgsMeshRendererVectorArrowSettings::fixedShaftLength
double fixedShaftLength() const
Returns fixed arrow length (in millimeters)
Definition: qgsmeshrenderersettings.cpp:303
QgsColorRampShader::readXml
void readXml(const QDomElement &elem)
Reads configuration from the given DOM element.
Definition: qgscolorrampshader.cpp:533
QgsMeshRendererSettings::writeXml
QDomElement writeXml(QDomDocument &doc) const
Writes configuration to a new DOM element.
Definition: qgsmeshrenderersettings.cpp:409
QgsMeshRendererVectorArrowSettings::writeXml
QDomElement writeXml(QDomDocument &doc) const
Writes configuration to a new DOM element.
Definition: qgsmeshrenderersettings.cpp:333
QgsMeshRendererScalarSettings::setColorRampShader
void setColorRampShader(const QgsColorRampShader &shader)
Sets color ramp shader function.
Definition: qgsmeshrenderersettings.cpp:86
QgsMeshRendererVectorSettings::color
QColor color() const
Returns color used for drawing arrows.
Definition: qgsmeshrenderersettings.cpp:203
QgsMeshRendererVectorArrowSettings::setMinShaftLength
void setMinShaftLength(double minShaftLength)
Sets mininimum shaft length (in millimeters)
Definition: qgsmeshrenderersettings.cpp:278
QgsMeshRendererMeshSettings::setLineWidthUnit
void setLineWidthUnit(const QgsUnitTypes::RenderUnit &lineWidthUnit)
Sets units of the width of the mesh frame.
Definition: qgsmeshrenderersettings.cpp:57
QgsMesh3dAveragingMethod
Abstract class to interpolate 3d stacked mesh data to 2d data.
Definition: qgsmesh3daveraging.h:40
QgsMeshRendererScalarSettings::setOpacity
void setOpacity(double opacity)
Sets opacity.
Definition: qgsmeshrenderersettings.cpp:103
QgsMeshRendererVectorArrowSettings::shaftLengthMethod
QgsMeshRendererVectorArrowSettings::ArrowScalingMethod shaftLengthMethod() const
Returns method used for drawing arrows.
Definition: qgsmeshrenderersettings.cpp:263
qgsmeshrenderersettings.h
QgsMeshRendererScalarSettings::edgeStrokeWidthUnit
QgsUnitTypes::RenderUnit edgeStrokeWidthUnit() const
Returns the stroke width unit used to render edges scalar dataset.
Definition: qgsmeshrenderersettings.cpp:181
QgsMeshRendererVectorSettings::setTracesSettings
void setTracesSettings(const QgsMeshRendererVectorTracesSettings &tracesSettings)
Sets settings for vector rendered with traces.
Definition: qgsmeshrenderersettings.cpp:692
QgsMeshRendererVectorSettings::filterMax
double filterMax() const
Returns filter value for vector magnitudes.
Definition: qgsmeshrenderersettings.cpp:223
QgsMeshRendererVectorSettings::userGridCellHeight
int userGridCellHeight() const
Returns height in pixels of user grid cell.
Definition: qgsmeshrenderersettings.cpp:253
QgsMeshRendererVectorTracesSettings::maximumTailLengthUnit
QgsUnitTypes::RenderUnit maximumTailLengthUnit() const
Returns the maximum tail length unit.
Definition: qgsmeshrenderersettings.cpp:715
QgsMeshRendererScalarSettings
Represents a mesh renderer settings for scalar datasets.
Definition: qgsmeshrenderersettings.h:95
QgsMeshRendererSettings::vectorSettings
QgsMeshRendererVectorSettings vectorSettings(int groupIndex) const
Returns renderer settings.
Definition: qgsmeshrenderersettings.h:629
QgsMeshRendererVectorSettings::setColorRampShader
void setColorRampShader(const QgsColorRampShader &colorRampShader)
Returns the color ramp shader used to render vector datasets.
Definition: qgsmeshrenderersettings.cpp:666
QgsMeshRendererMeshSettings::readXml
void readXml(const QDomElement &elem)
Reads configuration from the given DOM element.
Definition: qgsmeshrenderersettings.cpp:72
QgsMeshRendererVectorSettings::coloringMethod
QgsInterpolatedLineColor::ColoringMethod coloringMethod() const
Returns the coloring method used to render vector datasets.
Definition: qgsmeshrenderersettings.cpp:651
QgsMeshRendererVectorSettings::Symbology
Symbology
Defines the symbology of vector rendering.
Definition: qgsmeshrenderersettings.h:419
QgsMeshRendererScalarSettings::setDataResamplingMethod
void setDataResamplingMethod(const DataResamplingMethod &dataResamplingMethod)
Sets data interpolation method.
Definition: qgsmeshrenderersettings.cpp:110
QgsMeshRendererVectorArrowSettings
Represents a mesh renderer settings for vector datasets displayed with arrows.
Definition: qgsmeshrenderersettings.h:206
QgsMeshRendererMeshSettings::isEnabled
bool isEnabled() const
Returns whether mesh structure rendering is enabled.
Definition: qgsmeshrenderersettings.cpp:22
QgsMeshRendererVectorArrowSettings::maxShaftLength
double maxShaftLength() const
Returns maximum shaft length (in millimeters)
Definition: qgsmeshrenderersettings.cpp:283
QgsMeshRendererVectorArrowSettings::MinMax
@ MinMax
Scale vector magnitude linearly to fit in range of vectorFilterMin() and vectorFilterMax()
Definition: qgsmeshrenderersettings.h:216
QgsMeshRendererMeshSettings::writeXml
QDomElement writeXml(QDomDocument &doc) const
Writes configuration to a new DOM element.
Definition: qgsmeshrenderersettings.cpp:62
QgsMeshRendererVectorStreamlineSettings
Represents a streamline renderer settings for vector datasets displayed by streamlines.
Definition: qgsmeshrenderersettings.h:325
QgsMeshRendererMeshSettings::setEnabled
void setEnabled(bool enabled)
Sets whether mesh structure rendering is enabled.
Definition: qgsmeshrenderersettings.cpp:27
QgsMeshRendererSettings::averagingMethod
QgsMesh3dAveragingMethod * averagingMethod() const
Returns averaging method for conversion of 3d stacked mesh data to 2d data.
Definition: qgsmeshrenderersettings.cpp:396
QgsMeshRendererVectorArrowSettings::setScaleFactor
void setScaleFactor(double scaleFactor)
Sets scale factor.
Definition: qgsmeshrenderersettings.cpp:298
QgsMeshRendererVectorArrowSettings::scaleFactor
double scaleFactor() const
Returns scale factor.
Definition: qgsmeshrenderersettings.cpp:293
QgsMeshRendererVectorSettings::colorRampShader
QgsColorRampShader colorRampShader() const
Sets the color ramp shader used to render vector datasets.
Definition: qgsmeshrenderersettings.cpp:661
QgsMeshRendererVectorTracesSettings::setMaximumTailLengthUnit
void setMaximumTailLengthUnit(const QgsUnitTypes::RenderUnit &maximumTailLengthUnit)
Sets the maximum tail length unit.
Definition: qgsmeshrenderersettings.cpp:720
QgsMeshRendererVectorTracesSettings::setMaximumTailLength
void setMaximumTailLength(double maximumTailLength)
Sets the maximums tail length.
Definition: qgsmeshrenderersettings.cpp:730
QgsMeshRendererVectorTracesSettings::writeXml
QDomElement writeXml(QDomDocument &doc) const
Writes configuration to a new DOM element.
Definition: qgsmeshrenderersettings.cpp:705
QgsMeshRendererVectorSettings::userGridCellWidth
int userGridCellWidth() const
Returns width in pixels of user grid cell.
Definition: qgsmeshrenderersettings.cpp:243
QgsMeshRendererVectorSettings::isOnUserDefinedGrid
bool isOnUserDefinedGrid() const
Returns whether vectors are drawn on user-defined grid.
Definition: qgsmeshrenderersettings.cpp:233
QgsMeshRendererVectorArrowSettings::arrowHeadLengthRatio
double arrowHeadLengthRatio() const
Returns ratio of the head length of the arrow (range 0-1)
Definition: qgsmeshrenderersettings.cpp:323
QgsMeshRendererVectorStreamlineSettings::seedingMethod
SeedingStartPointsMethod seedingMethod() const
Returns the method used for seeding start points of strealines.
Definition: qgsmeshrenderersettings.cpp:529
QgsMeshRendererVectorArrowSettings::minShaftLength
double minShaftLength() const
Returns mininimum shaft length (in millimeters)
Definition: qgsmeshrenderersettings.cpp:273
QgsMeshRendererScalarSettings::edgeStrokeWidth
QgsInterpolatedLineWidth edgeStrokeWidth() const
Returns the stroke width used to render edges scalar dataset.
Definition: qgsmeshrenderersettings.cpp:171
QgsMeshRendererVectorSettings::streamLinesSettings
QgsMeshRendererVectorStreamlineSettings streamLinesSettings() const
Returns settings for vector rendered with streamlines.
Definition: qgsmeshrenderersettings.cpp:587
QgsMeshRendererScalarSettings::classificationMaximum
double classificationMaximum() const
Returns max value used for creation of the color ramp shader.
Definition: qgsmeshrenderersettings.cpp:93
QgsMeshRendererVectorArrowSettings::setArrowHeadWidthRatio
void setArrowHeadWidthRatio(double arrowHeadWidthRatio)
Sets ratio of the head width of the arrow (range 0-1)
Definition: qgsmeshrenderersettings.cpp:318
QgsMesh3dAveragingMethod::createFromXml
static QgsMesh3dAveragingMethod * createFromXml(const QDomElement &elem)
Creates the instance from XML by calling readXml of derived classes.
Definition: qgsmesh3daveraging.cpp:32
QgsMeshRendererVectorSettings::lineWidth
double lineWidth() const
Returns line width of the arrow (in millimeters)
Definition: qgsmeshrenderersettings.cpp:193
QgsMeshRendererVectorSettings::setFilterMax
void setFilterMax(double filterMax)
Sets filter value for vector magnitudes.
Definition: qgsmeshrenderersettings.cpp:228
QgsMeshRendererVectorArrowSettings::readXml
void readXml(const QDomElement &elem)
Reads configuration from the given DOM element.
Definition: qgsmeshrenderersettings.cpp:362
QgsMeshRendererVectorTracesSettings
Represents a trace renderer settings for vector datasets displayed by particle traces.
Definition: qgsmeshrenderersettings.h:371
QgsMesh3dAveragingMethod::clone
virtual QgsMesh3dAveragingMethod * clone() const =0
Clone the instance.
QgsMeshRendererSettings::setActiveScalarDatasetGroup
void setActiveScalarDatasetGroup(int activeScalarDatasetGroup)
Sets the active scalar dataset group.
Definition: qgsmeshrenderersettings.cpp:514
QgsMeshRendererVectorSettings::setUserGridCellWidth
void setUserGridCellWidth(int width)
Sets width of user grid cell (in pixels)
Definition: qgsmeshrenderersettings.cpp:248
QgsMeshRendererSettings::readXml
void readXml(const QDomElement &elem)
Reads configuration from the given DOM element.
Definition: qgsmeshrenderersettings.cpp:458
QgsMeshRendererScalarSettings::setEdgeStrokeWidthUnit
void setEdgeStrokeWidthUnit(const QgsUnitTypes::RenderUnit &edgeStrokeWidthUnit)
Sets the stroke width unit used to render edges scalar dataset.
Definition: qgsmeshrenderersettings.cpp:186