QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
inputcontroller
qgsabstractinputcontroller.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsabstractinputcontroller.h
3
---------------------
4
begin : March 2023
5
copyright : (C) 2023 by Nyall Dawson
6
email : nyall dot dawson 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 QGSABSTRACTINPUTCONTROLLER_H
17
#define QGSABSTRACTINPUTCONTROLLER_H
18
19
#include "
qgis.h
"
20
#include "qgis_gui.h"
21
#include "
qgis_sip.h
"
22
23
#include <QObject>
24
32
class
GUI_EXPORT
QgsAbstractInputController
:
public
QObject
33
{
34
#ifdef SIP_RUN
35
#include "
qgs2dmapcontroller.h
"
36
#include "
qgs3dmapcontroller.h
"
37
#endif
38
39
#ifdef SIP_RUN
40
SIP_CONVERT_TO_SUBCLASS_CODE
41
if
( qobject_cast<QgsAbstract2DMapController *>( sipCpp ) )
42
sipType = sipType_QgsAbstract2DMapController;
43
else
if
( qobject_cast<QgsAbstract3DMapController *>( sipCpp ) )
44
sipType = sipType_QgsAbstract3DMapController;
45
else
46
sipType =
nullptr
;
47
SIP_END
48
#endif
49
50
Q_OBJECT
51
52
public
:
56
QgsAbstractInputController
( QObject *parent
SIP_TRANSFERTHIS
=
nullptr
);
57
61
virtual
QgsAbstractInputController
*
clone
()
const
= 0
SIP_FACTORY
;
62
66
virtual
QString
deviceId
()
const
= 0;
67
71
virtual
Qgis::InputControllerType
type
()
const
= 0;
72
};
73
74
75
#endif
// QGSABSTRACTINPUTCONTROLLER_H
Qgis::InputControllerType
InputControllerType
Input controller types.
Definition
qgis.h:6177
QgsAbstractInputController::clone
virtual QgsAbstractInputController * clone() const =0
Returns a new copy of the controller.
QgsAbstractInputController::deviceId
virtual QString deviceId() const =0
Returns a string uniquely identifying the device.
QgsAbstractInputController::QgsAbstractInputController
QgsAbstractInputController(QObject *parent=nullptr)
Constructor for QgsAbstractInputController, with the specified parent object.
Definition
qgsabstractinputcontroller.cpp:20
QgsAbstractInputController::type
virtual Qgis::InputControllerType type() const =0
Returns the input controller type.
qgis.h
qgis_sip.h
SIP_CONVERT_TO_SUBCLASS_CODE
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Definition
qgis_sip.h:203
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
SIP_END
#define SIP_END
Definition
qgis_sip.h:220
qgs2dmapcontroller.h
qgs3dmapcontroller.h
Generated on
for QGIS API Documentation by
1.17.0