QGIS API Documentation 4.3.0-Master (16649ce5cc6)
Loading...
Searching...
No Matches
qgsvectorfieldvaluesource.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsvectorfieldvaluesource.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 QGSVECTORFIELDVALUESOURCE_H
17#define QGSVECTORFIELDVALUESOURCE_H
18
19#include <memory>
20
21#include "qgis_core.h"
22#include "qgspointxy.h"
23#include "qgsrectangle.h"
24#include "qgsvector.h"
25
26#include <QSize>
27#include <QVector>
28
29#define SIP_NO_FILE
30
33
48{
49 public:
52
54 virtual QgsVectorFieldValueSource *clone() const = 0;
55
62 virtual QgsVector vectorValue( const QgsPointXY &point ) const = 0;
63
65 virtual QgsRectangle extent() const = 0;
66
73 virtual double maximumMagnitude() const = 0;
74
82 virtual QVector<QgsPointXY> seedPoints( const QgsRectangle &extent ) const;
83
92 virtual std::unique_ptr<QgsRasterInterface> magnitudeSource( const QgsRenderContext &context, QSize size ) const;
93};
94
95#endif // QGSVECTORFIELDVALUESOURCE_H
Represents a 2D point.
Definition qgspointxy.h:62
Base class for processing filters like renderers, reprojector, resampler etc.
A rectangle specified with double values.
Contains information about the context of a rendering operation.
QgsVectorFieldValueSource()=default
virtual QgsRectangle extent() const =0
Returns the extent of the data, in map coordinates.
virtual std::unique_ptr< QgsRasterInterface > magnitudeSource(const QgsRenderContext &context, QSize size) const
Returns a raster interface exposing the magnitude of the vector field as a single band,...
virtual ~QgsVectorFieldValueSource()
virtual QVector< QgsPointXY > seedPoints(const QgsRectangle &extent) const
Returns the natural seeding positions of the data within extent, in map coordinates.
virtual double maximumMagnitude() const =0
Returns the maximum magnitude over the whole data.
virtual QgsVector vectorValue(const QgsPointXY &point) const =0
Returns the vector value at point, expressed in map coordinates.
virtual QgsVectorFieldValueSource * clone() const =0
Returns a copy of this source.
Represent a 2-dimensional vector.
Definition qgsvector.h:34