QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Qgs3DAxisSettings Class Reference

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.
 

Detailed Description

Contains the configuration of a 3d axis.

3

Since
QGIS 3.26

Definition at line 35 of file qgs3daxissettings.h.

Member Enumeration Documentation

◆ Mode

enum class Qgs3DAxisSettings::Mode
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.

Constructor & Destructor Documentation

◆ Qgs3DAxisSettings()

Qgs3DAxisSettings::Qgs3DAxisSettings ( )
default

default constructor

Member Function Documentation

◆ defaultViewportSize()

int Qgs3DAxisSettings::defaultViewportSize ( ) const
inline

Returns the default axis viewport size in millimeters.

Definition at line 64 of file qgs3daxissettings.h.

◆ horizontalPosition()

Qt::AnchorPoint Qgs3DAxisSettings::horizontalPosition ( ) const
inline

Returns the horizontal position for the 3d axis.

Definition at line 84 of file qgs3daxissettings.h.

◆ maxViewportRatio()

double Qgs3DAxisSettings::maxViewportRatio ( ) const
inline

Returns the maximal axis viewport ratio (see Qt3DRender::QViewport::normalizedRect())

Definition at line 74 of file qgs3daxissettings.h.

◆ minViewportRatio()

double Qgs3DAxisSettings::minViewportRatio ( ) const
inline

Returns the minimal axis viewport ratio (see Qt3DRender::QViewport::normalizedRect())

Definition at line 69 of file qgs3daxissettings.h.

◆ mode()

Qgs3DAxisSettings::Mode Qgs3DAxisSettings::mode ( ) const
inline

Returns the type of the 3daxis.

Definition at line 79 of file qgs3daxissettings.h.

◆ operator!=()

bool Qgs3DAxisSettings::operator!= ( Qgs3DAxisSettings const &  rhs) const

Returns true if objects are not equal.

Definition at line 33 of file qgs3daxissettings.cpp.

◆ operator==()

bool Qgs3DAxisSettings::operator== ( Qgs3DAxisSettings const &  rhs) const

Returns true if both objects are equal.

Definition at line 21 of file qgs3daxissettings.cpp.

◆ readXml()

void Qgs3DAxisSettings::readXml ( const QDomElement &  element,
const QgsReadWriteContext context 
)

Reads settings from a DOM element.

Definition at line 38 of file qgs3daxissettings.cpp.

◆ setDefaultViewportSize()

void Qgs3DAxisSettings::setDefaultViewportSize ( int  size)
inline

Sets the defaultl axis viewport size in millimeters.

Definition at line 66 of file qgs3daxissettings.h.

◆ setHorizontalPosition()

void Qgs3DAxisSettings::setHorizontalPosition ( Qt::AnchorPoint  position)
inline

Sets the horizontal position for the 3d axis.

Definition at line 86 of file qgs3daxissettings.h.

◆ setMaxViewportRatio()

void Qgs3DAxisSettings::setMaxViewportRatio ( double  ratio)

Sets the maximal axis viewport ratio between 0-1.

Definition at line 146 of file qgs3daxissettings.cpp.

◆ setMinViewportRatio()

void Qgs3DAxisSettings::setMinViewportRatio ( double  ratio)

Sets the minimal axis viewport ratio between 0-1.

Definition at line 138 of file qgs3daxissettings.cpp.

◆ setMode()

void Qgs3DAxisSettings::setMode ( Qgs3DAxisSettings::Mode  type)
inline

Sets the type of the 3daxis.

Definition at line 81 of file qgs3daxissettings.h.

◆ setVerticalPosition()

void Qgs3DAxisSettings::setVerticalPosition ( Qt::AnchorPoint  position)
inline

Sets the vertical position for the 3d axis.

Definition at line 91 of file qgs3daxissettings.h.

◆ verticalPosition()

Qt::AnchorPoint Qgs3DAxisSettings::verticalPosition ( ) const
inline

Returns the vertical position for the 3d axis.

Definition at line 89 of file qgs3daxissettings.h.

◆ writeXml()

void Qgs3DAxisSettings::writeXml ( QDomElement &  element,
const QgsReadWriteContext context 
) const

Writes settings to a DOM element.

Definition at line 77 of file qgs3daxissettings.cpp.


The documentation for this class was generated from the following files: