Skip to content

Commit

Permalink
create new mesh layer (#43873)
Browse files Browse the repository at this point in the history
[mesh] [feature] adds a option to create blank/scratch mesh frame (vertices/faces)
  • Loading branch information
vcloarec committed Jul 13, 2021
1 parent 1ae9dbf commit 494735a
Show file tree
Hide file tree
Showing 13 changed files with 904 additions and 10 deletions.
1 change: 1 addition & 0 deletions images/images.qrc
Expand Up @@ -921,6 +921,7 @@
<file>themes/default/mIconFolderLinkParams.svg</file>
<file>themes/default/mIconFolderHomeParams.svg</file>
<file>themes/default/mActionMeasureBearing.svg</file>
<file>themes/default/mActionNewMeshLayer.svg</file>
</qresource>
<qresource prefix="/images/tips">
<file alias="symbol_levels.png">qgis_tips/symbol_levels.png</file>
Expand Down
287 changes: 287 additions & 0 deletions images/themes/default/mActionNewMeshLayer.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 28 additions & 1 deletion python/core/auto_generated/providers/qgsprovidermetadata.sip.in
Expand Up @@ -46,17 +46,37 @@ Holds metadata about mesh driver
Constructs default metadata without any capabilities
%End

QgsMeshDriverMetadata( const QString &name,
const QString &description,
const MeshDriverCapabilities &capabilities,
const QString &writeDatasetOnFileSuffix ) /Deprecated/;
%Docstring
Constructs driver metadata with selected capabilities

:param name: name/key of the driver
:param description: short description of the driver
:param capabilities: driver's capabilities
:param writeDatasetOnFileSuffix: suffix used to write datasets on file

.. deprecated::
QGIS 3.22
%End

QgsMeshDriverMetadata( const QString &name,
const QString &description,
const MeshDriverCapabilities &capabilities,
const QString &writeDatasetOnFileSuffix );
const QString &writeDatasetOnFileSuffix,
const QString &writeMeshFrameOnFileSuffix );
%Docstring
Constructs driver metadata with selected capabilities

:param name: name/key of the driver
:param description: short description of the driver
:param capabilities: driver's capabilities
:param writeDatasetOnFileSuffix: suffix used to write datasets on file
:param writeMeshFrameOnFileSuffix: suffix used to write mesh frame on file

.. versionadded:: 3.22
%End

MeshDriverCapabilities capabilities() const;
Expand All @@ -77,6 +97,13 @@ Returns the description for this driver.
QString writeDatasetOnFileSuffix() const;
%Docstring
Returns the suffix used to write datasets on file
%End

QString writeMeshFrameOnFileSuffix() const;
%Docstring
Returns the suffix used to write mesh on file

.. versionadded:: 3.22
%End

};
Expand Down
1 change: 1 addition & 0 deletions src/app/CMakeLists.txt
Expand Up @@ -245,6 +245,7 @@ set(QGIS_APP_SRCS
qgscrashhandler.cpp

mesh/qgsmeshcalculatordialog.cpp
mesh/qgsnewmeshlayerdialog.cpp
)

if (WITH_SPATIALITE)
Expand Down

0 comments on commit 494735a

Please sign in to comment.