QGIS API Documentation
4.3.0-Master (c8cdfe19d7b)
Toggle main menu visibility
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
bool
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
36
void
QgsVectorFieldValueSource::setSamplingWindow
(
double
width,
double
height )
37
{
38
Q_UNUSED( width )
39
Q_UNUSED( height )
40
}
41
42
std::unique_ptr<QgsRasterInterface>
QgsVectorFieldValueSource::magnitudeSource
(
const
QgsRenderContext
&context, QSize size )
const
43
{
44
Q_UNUSED( context )
45
Q_UNUSED( size )
46
return
nullptr
;
47
}
QgsPointXY
Represents a 2D point.
Definition
qgspointxy.h:62
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::setSamplingWindow
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,...
Definition
qgsvectorfieldvaluesource.cpp:36
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:42
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
QgsVectorFieldValueSource::nativeLayout
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,...
Definition
qgsvectorfieldvaluesource.cpp:28
qgsrasterinterface.h
qgsvectorfieldvaluesource.h
Generated on
for QGIS API Documentation by
1.17.0