QGIS API Documentation
4.3.0-Master (c0a40176c6f)
Loading...
Searching...
No Matches
src
core
vectorfield
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
16
#include "
qgsvectorfieldvaluesource.h
"
17
18
#include "
qgsrasterinterface.h
"
19
20
QgsVectorFieldValueSource::~QgsVectorFieldValueSource
() =
default
;
21
22
QVector<QgsPointXY>
QgsVectorFieldValueSource::seedPoints
(
const
QgsRectangle
&
extent
)
const
23
{
24
Q_UNUSED(
extent
)
25
return
{};
26
}
27
28
std::unique_ptr<QgsRasterInterface>
QgsVectorFieldValueSource::magnitudeSource
(
const
QgsRenderContext
&context, QSize size )
const
29
{
30
Q_UNUSED( context )
31
Q_UNUSED( size )
32
return
nullptr
;
33
}
QgsRectangle
A rectangle specified with double values.
Definition
qgsrectangle.h:47
QgsRenderContext
Contains information about the context of a rendering operation.
Definition
qgsrendercontext.h:63
QgsVectorFieldValueSource::extent
virtual QgsRectangle extent() const =0
Returns the extent of the data, in map coordinates.
QgsVectorFieldValueSource::magnitudeSource
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,...
Definition
qgsvectorfieldvaluesource.cpp:28
QgsVectorFieldValueSource::~QgsVectorFieldValueSource
virtual ~QgsVectorFieldValueSource()
QgsVectorFieldValueSource::seedPoints
virtual QVector< QgsPointXY > seedPoints(const QgsRectangle &extent) const
Returns the natural seeding positions of the data within extent, in map coordinates.
Definition
qgsvectorfieldvaluesource.cpp:22
qgsrasterinterface.h
qgsvectorfieldvaluesource.h
Generated on
for QGIS API Documentation by
1.15.0