QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
Public Member Functions | Static Public Member Functions | List of all members
QgsNewMemoryLayerDialog Class Reference

#include <qgsnewmemorylayerdialog.h>

Inheritance diagram for QgsNewMemoryLayerDialog:
Inheritance graph
[legend]

Public Member Functions

 QgsNewMemoryLayerDialog (QWidget *parent SIP_TRANSFERTHIS=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
 New dialog constructor. More...
 
QgsCoordinateReferenceSystem crs () const
 Returns the selected CRS for the new layer. More...
 
QString layerName () const
 Returns the layer name. More...
 
QgsWkbTypes::Type selectedType () const
 Returns the selected geometry type. More...
 
void setCrs (const QgsCoordinateReferenceSystem &crs)
 Sets the crs value for the new layer in the dialog. More...
 

Static Public Member Functions

static QgsVectorLayerrunAndCreateLayer (QWidget *parent=nullptr, const QgsCoordinateReferenceSystem &defaultCrs=QgsCoordinateReferenceSystem())
 Runs the dialog and creates a new memory layer. More...
 

Detailed Description

Definition at line 32 of file qgsnewmemorylayerdialog.h.

Constructor & Destructor Documentation

◆ QgsNewMemoryLayerDialog()

QgsNewMemoryLayerDialog::QgsNewMemoryLayerDialog ( QWidget *parent  SIP_TRANSFERTHIS = nullptr,
Qt::WindowFlags  fl = QgsGuiUtils::ModalDialogFlags 
)

New dialog constructor.

Definition at line 49 of file qgsnewmemorylayerdialog.cpp.

Member Function Documentation

◆ crs()

QgsCoordinateReferenceSystem QgsNewMemoryLayerDialog::crs ( ) const

Returns the selected CRS for the new layer.

See also
setCrs()

Definition at line 106 of file qgsnewmemorylayerdialog.cpp.

◆ layerName()

QString QgsNewMemoryLayerDialog::layerName ( ) const

Returns the layer name.

Definition at line 111 of file qgsnewmemorylayerdialog.cpp.

◆ runAndCreateLayer()

QgsVectorLayer * QgsNewMemoryLayerDialog::runAndCreateLayer ( QWidget *  parent = nullptr,
const QgsCoordinateReferenceSystem defaultCrs = QgsCoordinateReferenceSystem() 
)
static

Runs the dialog and creates a new memory layer.

Parameters
parentparent widget
defaultCrsdefault layer CRS to show in dialog
Returns
new memory layer

Definition at line 34 of file qgsnewmemorylayerdialog.cpp.

◆ selectedType()

QgsWkbTypes::Type QgsNewMemoryLayerDialog::selectedType ( ) const

Returns the selected geometry type.

Definition at line 73 of file qgsnewmemorylayerdialog.cpp.

◆ setCrs()

void QgsNewMemoryLayerDialog::setCrs ( const QgsCoordinateReferenceSystem crs)

Sets the crs value for the new layer in the dialog.

See also
crs()
Since
QGIS 3.0

Definition at line 101 of file qgsnewmemorylayerdialog.cpp.


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