QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
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 More... | |
Qgs3DAxisSettings (const Qgs3DAxisSettings &other) | |
copy constructor More... | |
int | defaultViewportSize () const |
Returns the default axis viewport size in millimeters. More... | |
Qt::AnchorPoint | horizontalPosition () const |
Returns the horizontal position for the 3d axis. More... | |
double | maxViewportRatio () const |
Returns the maximal axis viewport ratio (see Qt3DRender::QViewport::normalizedRect()) More... | |
double | minViewportRatio () const |
Returns the minimal axis viewport ratio (see Qt3DRender::QViewport::normalizedRect()) More... | |
Qgs3DAxisSettings::Mode | mode () const |
Returns the type of the 3daxis. More... | |
bool | operator!= (Qgs3DAxisSettings const &rhs) const |
Returns true if objects are not equal. More... | |
Qgs3DAxisSettings & | operator= (Qgs3DAxisSettings const &rhs) |
delete assignment operator More... | |
bool | operator== (Qgs3DAxisSettings const &rhs) const |
Returns true if both objects are equal. More... | |
void | readXml (const QDomElement &element, const QgsReadWriteContext &context) |
Reads settings from a DOM element. More... | |
void | setDefaultViewportSize (int size) |
Sets the defaultl axis viewport size in millimeters. More... | |
void | setHorizontalPosition (Qt::AnchorPoint position) |
Sets the horizontal position for the 3d axis. More... | |
void | setMaxViewportRatio (double ratio) |
Sets the maximal axis viewport ratio between 0-1. More... | |
void | setMinViewportRatio (double ratio) |
Sets the minimal axis viewport ratio between 0-1. More... | |
void | setMode (Qgs3DAxisSettings::Mode type) |
Sets the type of the 3daxis. More... | |
void | setVerticalPosition (Qt::AnchorPoint position) |
Sets the vertical position for the 3d axis. More... | |
Qt::AnchorPoint | verticalPosition () const |
Returns the vertical position for the 3d axis. More... | |
void | writeXml (QDomElement &element, const QgsReadWriteContext &context) const |
Writes settings to a DOM element. More... | |
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
Qgs3DAxisSettings::Qgs3DAxisSettings | ( | const Qgs3DAxisSettings & | other | ) |
copy constructor
Definition at line 23 of file qgs3daxissettings.cpp.
|
inline |
Returns the default axis viewport size in millimeters.
Definition at line 68 of file qgs3daxissettings.h.
|
inline |
Returns the horizontal position for the 3d axis.
Definition at line 88 of file qgs3daxissettings.h.
|
inline |
Returns the maximal axis viewport ratio (see Qt3DRender::QViewport::normalizedRect())
Definition at line 78 of file qgs3daxissettings.h.
|
inline |
Returns the minimal axis viewport ratio (see Qt3DRender::QViewport::normalizedRect())
Definition at line 73 of file qgs3daxissettings.h.
|
inline |
Returns the type of the 3daxis.
Definition at line 83 of file qgs3daxissettings.h.
bool Qgs3DAxisSettings::operator!= | ( | Qgs3DAxisSettings const & | rhs | ) | const |
Returns true if objects are not equal.
Definition at line 48 of file qgs3daxissettings.cpp.
Qgs3DAxisSettings & Qgs3DAxisSettings::operator= | ( | Qgs3DAxisSettings const & | rhs | ) |
delete assignment operator
Definition at line 31 of file qgs3daxissettings.cpp.
bool Qgs3DAxisSettings::operator== | ( | Qgs3DAxisSettings const & | rhs | ) | const |
Returns true if both objects are equal.
Definition at line 39 of file qgs3daxissettings.cpp.
void Qgs3DAxisSettings::readXml | ( | const QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) |
Reads settings from a DOM element.
Definition at line 53 of file qgs3daxissettings.cpp.
|
inline |
Sets the defaultl axis viewport size in millimeters.
Definition at line 70 of file qgs3daxissettings.h.
|
inline |
Sets the horizontal position for the 3d axis.
Definition at line 90 of file qgs3daxissettings.h.
void Qgs3DAxisSettings::setMaxViewportRatio | ( | double | ratio | ) |
Sets the maximal axis viewport ratio between 0-1.
Definition at line 161 of file qgs3daxissettings.cpp.
void Qgs3DAxisSettings::setMinViewportRatio | ( | double | ratio | ) |
Sets the minimal axis viewport ratio between 0-1.
Definition at line 153 of file qgs3daxissettings.cpp.
|
inline |
Sets the type of the 3daxis.
Definition at line 85 of file qgs3daxissettings.h.
|
inline |
Sets the vertical position for the 3d axis.
Definition at line 95 of file qgs3daxissettings.h.
|
inline |
Returns the vertical position for the 3d axis.
Definition at line 93 of file qgs3daxissettings.h.
void Qgs3DAxisSettings::writeXml | ( | QDomElement & | element, |
const QgsReadWriteContext & | context | ||
) | const |
Writes settings to a DOM element.
Definition at line 92 of file qgs3daxissettings.cpp.