20using namespace Qt::StringLiterals;
24 return mSeedingMethod;
34 return mSeedingDensity;
44 QDomElement elem = doc.createElement( u
"vector-streamline-settings"_s );
46 elem.setAttribute( u
"seeding-method"_s,
static_cast< int >( mSeedingMethod ) );
47 elem.setAttribute( u
"seeding-density"_s, mSeedingDensity );
55 mSeedingDensity = elem.attribute( u
"seeding-density"_s ).toDouble();
VectorFieldSeedingMethod
Method used to define start points that are used to draw streamlines.
void setSeedingMethod(const Qgis::VectorFieldSeedingMethod &seedingMethod)
Sets the method used for seeding start points of strealines.
void readXml(const QDomElement &elem)
Reads configuration from the given DOM element.
Qgis::VectorFieldSeedingMethod seedingMethod() const
Returns the method used for seeding start points of strealines.
double seedingDensity() const
Returns the density used for seeding start points.
void setSeedingDensity(double seedingDensity)
Sets the density used for seeding start points.
QDomElement writeXml(QDomDocument &doc) const
Writes configuration to a new DOM element.