QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
3d
qgs3daxissettings.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgs3daxissettings.h
3
--------------------------------------
4
Date : April 2022
5
copyright : (C) 2021 B. De Mezzo
6
email : benoit dot de dot mezzo at oslandia 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 QGS3DAXISSETTINGS_H
17
#define QGS3DAXISSETTINGS_H
18
19
#include <QString>
20
#include <QMap>
21
22
#include "
qgs3daxis.h
"
23
24
class
QgsReadWriteContext
;
25
class
QDomElement;
26
27
#define SIP_NO_FILE
28
35
class
_3D_EXPORT
Qgs3DAxisSettings
36
{
37
public
:
39
Qgs3DAxisSettings
() =
default
;
41
Qgs3DAxisSettings
(
const
Qgs3DAxisSettings
&other );
43
Qgs3DAxisSettings
&operator=(
Qgs3DAxisSettings
const
&rhs );
44
46
bool
operator==
(
Qgs3DAxisSettings
const
&rhs )
const
;
47
49
bool
operator!=
(
Qgs3DAxisSettings
const
&rhs )
const
;
50
52
void
readXml(
const
QDomElement &element,
const
QgsReadWriteContext
&context );
54
void
writeXml( QDomElement &element,
const
QgsReadWriteContext
&context )
const
;
55
57
Qgs3DAxis::Mode
mode
()
const
{
return
mMode; }
59
void
setMode
(
Qgs3DAxis::Mode
type ) { mMode = type; }
60
62
Qt::AnchorPoint
horizontalPosition
()
const
{
return
mHorizontalPosition; }
64
void
setHorizontalPosition
( Qt::AnchorPoint position ) { mHorizontalPosition = position; }
65
67
Qt::AnchorPoint
verticalPosition
()
const
{
return
mVerticalPosition; }
69
void
setVerticalPosition
( Qt::AnchorPoint position ) { mVerticalPosition = position; }
70
71
private
:
72
Qgs3DAxis::Mode
mMode =
Qgs3DAxis::Mode::Crs
;
73
Qt::AnchorPoint mHorizontalPosition = Qt::AnchorPoint::AnchorRight;
74
Qt::AnchorPoint mVerticalPosition = Qt::AnchorPoint::AnchorTop;
75
76
};
77
78
#endif // QGS3DAXISSETTINGS_H
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects.
Definition:
qgsreadwritecontext.h:34
operator==
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition:
qgsfeatureiterator.h:425
Qgs3DAxisSettings::setVerticalPosition
void setVerticalPosition(Qt::AnchorPoint position)
Sets the vertical position for the 3d axis.
Definition:
qgs3daxissettings.h:69
operator!=
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition:
qgsfeatureiterator.h:430
Qgs3DAxisSettings::verticalPosition
Qt::AnchorPoint verticalPosition() const
Returns the vertical position for the 3d axis.
Definition:
qgs3daxissettings.h:67
Qgs3DAxisSettings::mode
Qgs3DAxis::Mode mode() const
Returns the type of the 3daxis.
Definition:
qgs3daxissettings.h:57
Qgs3DAxisSettings
Contains the configuration of a 3d axis.
Definition:
qgs3daxissettings.h:35
Qgs3DAxisSettings::setHorizontalPosition
void setHorizontalPosition(Qt::AnchorPoint position)
Sets the horizontal position for the 3d axis.
Definition:
qgs3daxissettings.h:64
Qgs3DAxisSettings::setMode
void setMode(Qgs3DAxis::Mode type)
Sets the type of the 3daxis.
Definition:
qgs3daxissettings.h:59
Qgs3DAxis::Mode::Crs
@ Crs
Respect CRS directions.
Qgs3DAxis::Mode
Mode
The Mode enum.
Definition:
qgs3daxis.h:76
Qgs3DAxisSettings::horizontalPosition
Qt::AnchorPoint horizontalPosition() const
Returns the horizontal position for the 3d axis.
Definition:
qgs3daxissettings.h:62
qgs3daxis.h
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17