QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Contains the configuration of a 3d axis. More...
#include <qgs3daxissettings.h>
Public Types | |
enum class | Mode { Off = 1 , Crs = 2 , Cube = 3 } |
Axis representation enum. More... | |
Public Member Functions | |
Qgs3DAxisSettings ()=default | |
int | defaultViewportSize () const |
Returns the default axis viewport size in millimeters. | |
Qt::AnchorPoint | horizontalPosition () const |
Returns the horizontal position for the 3d axis. | |
double | maxViewportRatio () const |
Returns the maximal axis viewport ratio (see Qt3DRender::QViewport::normalizedRect()) | |
double | minViewportRatio () const |
Returns the minimal axis viewport ratio (see Qt3DRender::QViewport::normalizedRect()) | |
Qgs3DAxisSettings::Mode | mode () const |
Returns the type of the 3daxis. | |
bool | operator!= (Qgs3DAxisSettings const &rhs) const |
bool | operator== (Qgs3DAxisSettings const &rhs) const |
void | readXml (const QDomElement &element, const QgsReadWriteContext &context) |
Reads settings from a DOM element. | |
void | setDefaultViewportSize (int size) |
Sets the defaultl axis viewport size in millimeters. | |
void | setHorizontalPosition (Qt::AnchorPoint position) |
Sets the horizontal position for the 3d axis. | |
void | setMaxViewportRatio (double ratio) |
Sets the maximal axis viewport ratio between 0-1. | |
void | setMinViewportRatio (double ratio) |
Sets the minimal axis viewport ratio between 0-1. | |
void | setMode (Qgs3DAxisSettings::Mode type) |
Sets the type of the 3daxis. | |
void | setVerticalPosition (Qt::AnchorPoint position) |
Sets the vertical position for the 3d axis. | |
Qt::AnchorPoint | verticalPosition () const |
Returns the vertical position for the 3d axis. | |
void | writeXml (QDomElement &element, const QgsReadWriteContext &context) const |
Writes settings to a DOM element. | |
Contains the configuration of a 3d axis.
3
Definition at line 35 of file qgs3daxissettings.h.
|
strong |
Axis representation enum.
Enumerator | |
---|---|
Off | Hide 3d axis. |
Crs | Respect CRS directions. |
Cube | Abstract cube mode. |
Definition at line 42 of file qgs3daxissettings.h.
|
default |
|
inline |
Returns the default axis viewport size in millimeters.
Definition at line 60 of file qgs3daxissettings.h.
|
inline |
Returns the horizontal position for the 3d axis.
Definition at line 80 of file qgs3daxissettings.h.
|
inline |
Returns the maximal axis viewport ratio (see Qt3DRender::QViewport::normalizedRect())
Definition at line 70 of file qgs3daxissettings.h.
|
inline |
Returns the minimal axis viewport ratio (see Qt3DRender::QViewport::normalizedRect())
Definition at line 65 of file qgs3daxissettings.h.
|
inline |
Returns the type of the 3daxis.
Definition at line 75 of file qgs3daxissettings.h.
bool Qgs3DAxisSettings::operator!= | ( | Qgs3DAxisSettings const & | rhs | ) | const |
Definition at line 33 of file qgs3daxissettings.cpp.
bool Qgs3DAxisSettings::operator== | ( | Qgs3DAxisSettings const & | rhs | ) | const |
Definition at line 21 of file qgs3daxissettings.cpp.
void Qgs3DAxisSettings::readXml | ( | const QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) |
Reads settings from a DOM element.
Definition at line 38 of file qgs3daxissettings.cpp.
|
inline |
Sets the defaultl axis viewport size in millimeters.
Definition at line 62 of file qgs3daxissettings.h.
|
inline |
Sets the horizontal position for the 3d axis.
Definition at line 82 of file qgs3daxissettings.h.
void Qgs3DAxisSettings::setMaxViewportRatio | ( | double | ratio | ) |
Sets the maximal axis viewport ratio between 0-1.
Definition at line 146 of file qgs3daxissettings.cpp.
void Qgs3DAxisSettings::setMinViewportRatio | ( | double | ratio | ) |
Sets the minimal axis viewport ratio between 0-1.
Definition at line 138 of file qgs3daxissettings.cpp.
|
inline |
Sets the type of the 3daxis.
Definition at line 77 of file qgs3daxissettings.h.
|
inline |
Sets the vertical position for the 3d axis.
Definition at line 87 of file qgs3daxissettings.h.
|
inline |
Returns the vertical position for the 3d axis.
Definition at line 85 of file qgs3daxissettings.h.
void Qgs3DAxisSettings::writeXml | ( | QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) | const |
Writes settings to a DOM element.
Definition at line 77 of file qgs3daxissettings.cpp.