QGIS API Documentation 3.39.0-Master (47f7b3a4989)
Loading...
Searching...
No Matches
qgsfeature3dhandler_p.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgsfeature3dhandler_p.cpp
3 --------------------------------------
4 Date : January 2019
5 Copyright : (C) 2019 by Martin Dobias
6 Email : wonder dot sk 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
18
19#include "qgsfeaturerequest.h"
20#include "qgsvectorlayer.h"
21
22#include "qgs3dmapsettings.h"
23#include "qgs3dutils.h"
24
26
27void QgsFeature3DHandler::updateZRangeFromPositions( const QVector<QVector3D> &positions )
28{
29 for ( const QVector3D &pos : positions )
30 {
31 if ( pos.y() < mZMin )
32 mZMin = pos.y();
33 if ( pos.y() > mZMax )
34 mZMax = pos.y();
35 }
36}
37