QGIS API Documentation 4.3.0-Master (c8cdfe19d7b)
Loading...
Searching...
No Matches
qgsvectorfieldvaluesource.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgsvectorfieldvaluesource.cpp
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
17
18#include "qgsrasterinterface.h"
19
21
23{
24 Q_UNUSED( extent )
25 return {};
26}
27
28bool QgsVectorFieldValueSource::nativeLayout( QgsPointXY &origin, double &spacingX, double &spacingY ) const
29{
30 Q_UNUSED( origin )
31 Q_UNUSED( spacingX )
32 Q_UNUSED( spacingY )
33 return false;
34}
35
36void QgsVectorFieldValueSource::setSamplingWindow( double width, double height )
37{
38 Q_UNUSED( width )
39 Q_UNUSED( height )
40}
41
42std::unique_ptr<QgsRasterInterface> QgsVectorFieldValueSource::magnitudeSource( const QgsRenderContext &context, QSize size ) const
43{
44 Q_UNUSED( context )
45 Q_UNUSED( size )
46 return nullptr;
47}
Represents a 2D point.
Definition qgspointxy.h:62
A rectangle specified with double values.
Contains information about the context of a rendering operation.
virtual void setSamplingWindow(double width, double height)
Tells the source that each value it is asked for stands for a cell of width by height map units,...
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 bool nativeLayout(QgsPointXY &origin, double &spacingX, double &spacingY) const
Returns the grid on which the data itself is sampled through origin, spacingX and spacingY,...