QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
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 | |
default constructor | |
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 |
Returns true if objects are not equal. | |
bool | operator== (Qgs3DAxisSettings const &rhs) const |
Returns true if both objects are equal. | |
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 |
default constructor
|
inline |
Returns the default axis viewport size in millimeters.
Definition at line 64 of file qgs3daxissettings.h.
|
inline |
Returns the horizontal position for the 3d axis.
Definition at line 84 of file qgs3daxissettings.h.
|
inline |
Returns the maximal axis viewport ratio (see Qt3DRender::QViewport::normalizedRect())
Definition at line 74 of file qgs3daxissettings.h.
|
inline |
Returns the minimal axis viewport ratio (see Qt3DRender::QViewport::normalizedRect())
Definition at line 69 of file qgs3daxissettings.h.
|
inline |
Returns the type of the 3daxis.
Definition at line 79 of file qgs3daxissettings.h.
bool Qgs3DAxisSettings::operator!= | ( | Qgs3DAxisSettings const & | rhs | ) | const |
Returns true if objects are not equal.
Definition at line 33 of file qgs3daxissettings.cpp.
bool Qgs3DAxisSettings::operator== | ( | Qgs3DAxisSettings const & | rhs | ) | const |
Returns true if both objects are equal.
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 66 of file qgs3daxissettings.h.
|
inline |
Sets the horizontal position for the 3d axis.
Definition at line 86 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 81 of file qgs3daxissettings.h.
|
inline |
Sets the vertical position for the 3d axis.
Definition at line 91 of file qgs3daxissettings.h.
|
inline |
Returns the vertical position for the 3d axis.
Definition at line 89 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.