QGIS API Documentation
3.20.0-Odense (decaadbb31)
src
3d
qgs3dmapscenepickhandler.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgs3dmapscenepickhandler.h
3
--------------------------------------
4
Date : Sep 2018
5
Copyright : (C) 2018 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
#ifndef QGS3DMAPSCENEPICKHANDLER_H
17
#define QGS3DMAPSCENEPICKHANDLER_H
18
19
#include "
qgsfeatureid.h
"
20
#include <Qt3DRender/QPickEvent>
21
22
class
QVector3D;
23
class
QgsVectorLayer
;
24
36
class
Qgs3DMapScenePickHandler
37
{
38
public
:
39
virtual
~Qgs3DMapScenePickHandler
() =
default
;
40
42
virtual
void
handlePickOnVectorLayer
(
QgsVectorLayer
*vlayer,
QgsFeatureId
id
,
const
QVector3D &worldIntersection, Qt3DRender::QPickEvent *event ) = 0;
43
};
44
45
#endif
// QGS3DMAPSCENEPICKHANDLER_H
Qgs3DMapScenePickHandler
3
Definition:
qgs3dmapscenepickhandler.h:37
Qgs3DMapScenePickHandler::handlePickOnVectorLayer
virtual void handlePickOnVectorLayer(QgsVectorLayer *vlayer, QgsFeatureId id, const QVector3D &worldIntersection, Qt3DRender::QPickEvent *event)=0
Called when user clicked a 3D entity belonging to a feature of a vector layer.
Qgs3DMapScenePickHandler::~Qgs3DMapScenePickHandler
virtual ~Qgs3DMapScenePickHandler()=default
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition:
qgsvectorlayer.h:393
qgsfeatureid.h
QgsFeatureId
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
Definition:
qgsfeatureid.h:28
Generated on Sun Jun 20 2021 10:45:59 for QGIS API Documentation by
1.9.1