QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | List of all members
QgsMeshRendererMeshSettings Class Reference

Represents a mesh renderer settings for mesh object. More...

#include <qgsmeshrenderersettings.h>

Public Member Functions

QColor color () const
 Returns color used for rendering. More...
 
bool isEnabled () const
 Returns whether mesh structure rendering is enabled. More...
 
double lineWidth () const
 Returns line width used for rendering (in millimeters) More...
 
QgsUnitTypes::RenderUnit lineWidthUnit () const
 Returns units of the width of the mesh frame. More...
 
void readXml (const QDomElement &elem)
 Reads configuration from the given DOM element. More...
 
void setColor (const QColor &color)
 Sets color used for rendering of the mesh. More...
 
void setEnabled (bool enabled)
 Sets whether mesh structure rendering is enabled. More...
 
void setLineWidth (double lineWidth)
 Sets line width used for rendering (in millimeters) More...
 
void setLineWidthUnit (const QgsUnitTypes::RenderUnit &lineWidthUnit)
 Sets units of the width of the mesh frame. More...
 
QDomElement writeXml (QDomDocument &doc) const
 Writes configuration to a new DOM element. More...
 

Detailed Description

Represents a mesh renderer settings for mesh object.

Note
The API is considered EXPERIMENTAL and can be changed without a notice
Since
QGIS 3.2

Definition at line 41 of file qgsmeshrenderersettings.h.

Member Function Documentation

◆ color()

QColor QgsMeshRendererMeshSettings::color ( ) const

Returns color used for rendering.

Definition at line 42 of file qgsmeshrenderersettings.cpp.

◆ isEnabled()

bool QgsMeshRendererMeshSettings::isEnabled ( ) const

Returns whether mesh structure rendering is enabled.

Definition at line 22 of file qgsmeshrenderersettings.cpp.

◆ lineWidth()

double QgsMeshRendererMeshSettings::lineWidth ( ) const

Returns line width used for rendering (in millimeters)

Definition at line 32 of file qgsmeshrenderersettings.cpp.

◆ lineWidthUnit()

QgsUnitTypes::RenderUnit QgsMeshRendererMeshSettings::lineWidthUnit ( ) const

Returns units of the width of the mesh frame.

Since
QGIS 3.14

Definition at line 52 of file qgsmeshrenderersettings.cpp.

◆ readXml()

void QgsMeshRendererMeshSettings::readXml ( const QDomElement &  elem)

Reads configuration from the given DOM element.

Definition at line 72 of file qgsmeshrenderersettings.cpp.

◆ setColor()

void QgsMeshRendererMeshSettings::setColor ( const QColor &  color)

Sets color used for rendering of the mesh.

Definition at line 47 of file qgsmeshrenderersettings.cpp.

◆ setEnabled()

void QgsMeshRendererMeshSettings::setEnabled ( bool  enabled)

Sets whether mesh structure rendering is enabled.

Definition at line 27 of file qgsmeshrenderersettings.cpp.

◆ setLineWidth()

void QgsMeshRendererMeshSettings::setLineWidth ( double  lineWidth)

Sets line width used for rendering (in millimeters)

Definition at line 37 of file qgsmeshrenderersettings.cpp.

◆ setLineWidthUnit()

void QgsMeshRendererMeshSettings::setLineWidthUnit ( const QgsUnitTypes::RenderUnit lineWidthUnit)

Sets units of the width of the mesh frame.

Since
QGIS 3.14

Definition at line 57 of file qgsmeshrenderersettings.cpp.

◆ writeXml()

QDomElement QgsMeshRendererMeshSettings::writeXml ( QDomDocument &  doc) const

Writes configuration to a new DOM element.

Definition at line 62 of file qgsmeshrenderersettings.cpp.


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