QGIS API Documentation 4.3.0-Master (2b7e6c9893e)
Loading...
Searching...
No Matches
qgsvectorfieldtracessettings.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsvectorfieldtracessettings.h
3 ---------------------
4 begin : September 2026
5 copyright : (C) 2026 by Stefanos Natsis
6 email : uclaros at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSVECTORFIELDTRACESSETTINGS_H
17#define QGSVECTORFIELDTRACESSETTINGS_H
18
19#include "qgis.h"
20#include "qgis_core.h"
21
22#include <QDomElement>
23
32{
33 public:
35 double maximumTailLength() const;
39 int particlesCount() const;
41 void setParticlesCount( int value );
46
48 void readXml( const QDomElement &elem );
50 QDomElement writeXml( QDomDocument &doc ) const;
51
52 private:
53 int mParticlesCount = 1000;
54 double mMaximumTailLength = 100;
55 Qgis::RenderUnit mMaximumTailLengthUnit = Qgis::RenderUnit::Millimeters;
56};
57
58#endif // QGSVECTORFIELDTRACESSETTINGS_H
RenderUnit
Rendering size units.
Definition qgis.h:5704
@ Millimeters
Millimeters.
Definition qgis.h:5705
Represents a trace renderer settings for vector datasets displayed by particle traces.
Qgis::RenderUnit maximumTailLengthUnit() const
Returns the maximum tail length unit.
int particlesCount() const
Returns particles count.
QDomElement writeXml(QDomDocument &doc) const
Writes configuration to a new DOM element.
void readXml(const QDomElement &elem)
Reads configuration from the given DOM element.
void setMaximumTailLengthUnit(Qgis::RenderUnit maximumTailLengthUnit)
Sets the maximum tail length unit.
double maximumTailLength() const
Returns the maximum tail length.
void setParticlesCount(int value)
Sets particles count.
void setMaximumTailLength(double maximumTailLength)
Sets the maximums tail length.