QGIS API Documentation
4.3.0-Master (16649ce5cc6)
Loading...
Searching...
No Matches
src
core
vectorfield
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
31
class
QgsRasterInterface
;
32
class
QgsRenderContext
;
33
47
class
CORE_EXPORT
QgsVectorFieldValueSource
48
{
49
public
:
50
QgsVectorFieldValueSource
() =
default
;
51
virtual
~QgsVectorFieldValueSource
();
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
QgsPointXY
Represents a 2D point.
Definition
qgspointxy.h:62
QgsRasterInterface
Base class for processing filters like renderers, reprojector, resampler etc.
Definition
qgsrasterinterface.h:140
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::QgsVectorFieldValueSource
QgsVectorFieldValueSource()=default
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
QgsVectorFieldValueSource::maximumMagnitude
virtual double maximumMagnitude() const =0
Returns the maximum magnitude over the whole data.
QgsVectorFieldValueSource::vectorValue
virtual QgsVector vectorValue(const QgsPointXY &point) const =0
Returns the vector value at point, expressed in map coordinates.
QgsVectorFieldValueSource::clone
virtual QgsVectorFieldValueSource * clone() const =0
Returns a copy of this source.
QgsVector
Represent a 2-dimensional vector.
Definition
qgsvector.h:34
qgspointxy.h
qgsrectangle.h
qgsvector.h
Generated on
for QGIS API Documentation by
1.15.0