File: qgsmeshdataset.sip.in

package info (click to toggle)
qgis 3.40.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,183,800 kB
  • sloc: cpp: 1,595,841; python: 372,637; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,257; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 154
file content (1060 lines) | stat: -rw-r--r-- 24,494 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/mesh/qgsmeshdataset.h                                       *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/








class QgsMeshDatasetIndex
{
%Docstring(signature="appended")
:py:class:`QgsMeshDatasetIndex` is index that identifies the dataset
group (e.g. wind speed) and a dataset in this group (e.g. magnitude of
wind speed in particular time)

.. note::

   The API is considered EXPERIMENTAL and can be changed without a notice

.. versionadded:: 3.4
%End

%TypeHeaderCode
#include "qgsmeshdataset.h"
%End
  public:
    QgsMeshDatasetIndex( int group = -1, int dataset = -1 );
%Docstring
Creates an index. -1 represents invalid group/dataset
%End
    int group() const;
%Docstring
Returns a group index
%End
    int dataset() const;
%Docstring
Returns a dataset index within :py:func:`~QgsMeshDatasetIndex.group`
%End
    bool isValid() const;
%Docstring
Returns whether index is valid, ie at least groups is set
%End

    bool operator == ( QgsMeshDatasetIndex other ) const;
    bool operator != ( QgsMeshDatasetIndex other ) const;
};

class QgsMeshDatasetValue
{
%Docstring(signature="appended")
:py:class:`QgsMeshDatasetValue` represents single dataset value.

Values may be scalar or vector. Nodata values are represented by NaNs.

.. note::

   The API is considered EXPERIMENTAL and can be changed without a notice

.. versionadded:: 3.2
%End

%TypeHeaderCode
#include "qgsmeshdataset.h"
%End
  public:
    QgsMeshDatasetValue( double x,
                         double y );
%Docstring
Constructor for vector value
%End

    QgsMeshDatasetValue( double scalar );
%Docstring
Constructor for scalar value
%End

    QgsMeshDatasetValue();
%Docstring
Default Ctor, initialize to NaN
%End

    ~QgsMeshDatasetValue();

    void set( double scalar );
%Docstring
Sets scalar value
%End

    void setX( double x );
%Docstring
Sets X value
%End

    void setY( double y );
%Docstring
Sets Y value
%End

    double scalar() const;
%Docstring
Returns magnitude of vector for vector data or scalar value for scalar
data
%End

    double x() const;
%Docstring
Returns x value
%End

    double y() const;
%Docstring
Returns y value
%End

    bool operator==( QgsMeshDatasetValue other ) const;

};

class QgsMeshDataBlock
{
%Docstring(signature="appended")
:py:class:`QgsMeshDataBlock` is a block of integers/doubles that can be
used to retrieve: active flags (e.g. face's active integer flag) scalars
(e.g. scalar dataset double values) vectors (e.g. vector dataset doubles
x,y values)

data are implicitly shared, so the class can be quickly copied
std.numeric_limits<double>.quiet_NaN() represents NODATA value

Data can be accessed all at once with :py:func:`~values` (faster) or
value by value (slower) with :py:func:`~active` or :py:func:`~value`

.. versionadded:: 3.6
%End

%TypeHeaderCode
#include "qgsmeshdataset.h"
%End
  public:
    enum DataType /BaseType=IntEnum/
    {
      ActiveFlagInteger,
      ScalarDouble,
      Vector2DDouble,
    };

    QgsMeshDataBlock();
%Docstring
Constructs an invalid block
%End

    QgsMeshDataBlock( DataType type, int count );
%Docstring
Constructs a new block
%End

    DataType type() const;
%Docstring
Type of data stored in the block
%End

    int count() const;
%Docstring
Number of items stored in the block
%End

    bool isValid() const;
%Docstring
Whether the block is valid
%End

    QgsMeshDatasetValue value( int index ) const;
%Docstring
Returns a value represented by the index For active flag the behavior is
undefined
%End

    bool active( int index ) const;
%Docstring
Returns a value for active flag by the index For scalar and vector 2d
the behavior is undefined
%End

    void setActive( const QVector<int> &vals );
%Docstring
Sets active flag values.

If the data provider/datasets does not have active flag capability (==
all values are valid), just set block validity by setValid( ``True`` )

:param vals: value vector with size :py:func:`~QgsMeshDataBlock.count`

For scalar and vector 2d the behavior is undefined

.. versionadded:: 3.12
%End

    QVector<int> active() const;
%Docstring
Returns active flag array

Even for active flag valid dataset, the returned array could be empty.
This means that the data provider/dataset does not support active flag
capability, so all faces are active by default.

For scalar and vector 2d the behavior is undefined

.. versionadded:: 3.12
%End

    QVector<double> values() const;
%Docstring
Returns buffer to the array with values For vector it is pairs (x1, y1,
x2, y2, ... )

.. versionadded:: 3.12
%End

    void setValues( const QVector<double> &vals );
%Docstring
Sets values

For scalar datasets, it must have size
:py:func:`~QgsMeshDataBlock.count` For vector datasets, it must have
size 2 * :py:func:`~QgsMeshDataBlock.count` For active flag the behavior
is undefined

.. versionadded:: 3.12
%End

    void setValid( bool valid );
%Docstring
Sets block validity
%End

};

class QgsMesh3DDataBlock
{
%Docstring(signature="appended")
:py:class:`QgsMesh3DDataBlock` is a block of 3d stacked mesh data
related N faces defined on base mesh frame.

Data are implicitly shared, so the class can be quickly copied
std.numeric_limits<double>.quiet_NaN() represents NODATA value

.. note::

   The API is considered EXPERIMENTAL and can be changed without a notice

.. note::

   In QGIS 3.34 this class was renamed from :py:class:`QgsMesh3dDataBlock` to :py:class:`QgsMesh3DDataBlock`. The old :py:class:`QgsMesh3dDataBlock` name
   remains available in PyQGIS for compatibility.

.. versionadded:: 3.12
%End

%TypeHeaderCode
#include "qgsmeshdataset.h"
%End
  public:
    QgsMesh3DDataBlock();
%Docstring
Constructs an invalid block
%End
    ~QgsMesh3DDataBlock();

    QgsMesh3DDataBlock( int count, bool isVector );
%Docstring
Constructs a new block for count faces
%End

    void setValid( bool valid );
%Docstring
Sets block validity
%End

    bool isValid() const;
%Docstring
Whether the block is valid
%End

    bool isVector() const;
%Docstring
Whether we store vector values
%End

    int count() const;
%Docstring
Number of 2d faces for which the volume data is stored in the block
%End

    int firstVolumeIndex() const;
%Docstring
Index of the first volume stored in the buffer (absolute)
%End

    int lastVolumeIndex() const;
%Docstring
Index of the last volume stored in the buffer (absolute)
%End

    int volumesCount() const;
%Docstring
Returns number of volumes stored in the buffer
%End

    QVector<int> verticalLevelsCount() const;
%Docstring
Returns number of vertical level above 2d faces
%End

    void setVerticalLevelsCount( const QVector<int> &verticalLevelsCount );
%Docstring
Sets the vertical level counts
%End

    QVector<double> verticalLevels() const;
%Docstring
Returns the vertical levels height
%End

    void setVerticalLevels( const QVector<double> &verticalLevels );
%Docstring
Sets the vertical levels height
%End

    QVector<int> faceToVolumeIndex() const;
%Docstring
Returns the indexing between faces and volumes
%End

    void setFaceToVolumeIndex( const QVector<int> &faceToVolumeIndex );
%Docstring
Sets the indexing between faces and volumes
%End

    QVector<double> values() const;
%Docstring
Returns the values at volume centers

For vector datasets the number of values is doubled (x1, y1, x2, y2, ...
)
%End

    QgsMeshDatasetValue value( int volumeIndex ) const;
%Docstring
Returns the value at volume centers

:param volumeIndex: volume index relative to
                    :py:func:`~QgsMesh3DDataBlock.firstVolumeIndex`

:return: value (scalar or vector)
%End

    void setValues( const QVector<double> &doubleBuffer );
%Docstring
Sets the values at volume centers

For vector datasets the number of values is doubled (x1, y1, x2, y2, ...
)
%End

};

class QgsMeshDatasetGroupMetadata
{
%Docstring(signature="appended")
:py:class:`QgsMeshDatasetGroupMetadata` is a collection of dataset group
metadata such as whether the data is vector or scalar, name

.. note::

   The API is considered EXPERIMENTAL and can be changed without a notice

.. versionadded:: 3.4
%End

%TypeHeaderCode
#include "qgsmeshdataset.h"
%End
  public:

    enum DataType /BaseType=IntEnum/
    {
      DataOnFaces,
      DataOnVertices,
      DataOnVolumes,
      DataOnEdges
    };

    QgsMeshDatasetGroupMetadata();
%Docstring
Constructs an empty metadata object
%End

    QgsMeshDatasetGroupMetadata( const QString &name,
                                 const QString uri,
                                 bool isScalar,
                                 DataType dataType,
                                 double minimum,
                                 double maximum,
                                 int maximumVerticalLevels,
                                 const QDateTime &referenceTime,
                                 bool isTemporal,
                                 const QMap<QString, QString> &extraOptions );
%Docstring
Constructs a valid metadata object

:param name: name of the dataset group
:param isScalar: dataset contains scalar data, specifically the y-value
                 of :py:class:`QgsMeshDatasetValue` is NaN
:param dataType: where the data are defined on (vertices, faces or
                 volumes)
:param minimum: minimum value (magnitude for vectors) present among all
                group's dataset values
:param maximum: maximum value (magnitude for vectors) present among all
                group's dataset values
:param maximumVerticalLevels: maximum number of vertical levels for 3d
                              stacked meshes, 0 for 2d meshes
:param referenceTime: reference time of the dataset group
:param isTemporal: weither the dataset group is temporal (contains
                   time-related dataset)
:param extraOptions: dataset's extra options stored by the provider.
                     Usually contains the name, time value, time units,
                     data file vendor, ...
:param uri: The uri of the dataset
%End

    QString name() const;
%Docstring
Returns name of the dataset group
%End

    QString parentQuantityName() const;
%Docstring
Returns the name of the dataset's parent quantity, if available.

The quantity can be used to collect dataset groups which represent a
single quantity but at different values (e.g. groups which represent
different elevations).

.. versionadded:: 3.38
%End

    QString uri() const;
%Docstring
Returns the uri of the source

.. versionadded:: 3.16
%End

    QMap<QString, QString> extraOptions() const;
%Docstring
Returns extra metadata options, for example description
%End

    bool isVector() const;
%Docstring
Returns whether dataset group has vector data
%End

    bool isScalar() const;
%Docstring
Returns whether dataset group has scalar data
%End

    bool isTemporal() const;
%Docstring
Returns whether the dataset group is temporal (contains time-related
dataset)
%End

    DataType dataType() const;
%Docstring
Returns whether dataset group data is defined on vertices or faces or
volumes

.. versionadded:: 3.12
%End

    double minimum() const;
%Docstring
Returns minimum scalar value/vector magnitude present for whole dataset
group
%End

    double maximum() const;
%Docstring
Returns maximum scalar value/vector magnitude present for whole dataset
group
%End

    int maximumVerticalLevelsCount() const;
%Docstring
Returns maximum number of vertical levels for 3d stacked meshes

.. versionadded:: 3.12
%End

    QDateTime referenceTime() const;
%Docstring
Returns the reference time

.. versionadded:: 3.12
%End

};

class QgsMeshDatasetMetadata
{
%Docstring(signature="appended")
:py:class:`QgsMeshDatasetMetadata` is a collection of mesh dataset
metadata such as whether the data is valid or associated time for the
dataset

.. note::

   The API is considered EXPERIMENTAL and can be changed without a notice

.. versionadded:: 3.2
%End

%TypeHeaderCode
#include "qgsmeshdataset.h"
%End
  public:
    QgsMeshDatasetMetadata();
%Docstring
Constructs an empty metadata object
%End

    QgsMeshDatasetMetadata( double time,
                            bool isValid,
                            double minimum,
                            double maximum,
                            int maximumVerticalLevels
                          );
%Docstring
Constructs a valid metadata object

:param time: a time which this dataset represents in the dataset group
:param isValid: dataset is loadad and valid for fetching the data
:param minimum: minimum value (magnitude for vectors) present among
                dataset values
:param maximum: maximum value (magnitude for vectors) present among
                dataset values
:param maximumVerticalLevels: maximum number of vertical levels for 3d
                              stacked meshes, 0 for 2d meshes
%End

    double time() const;
%Docstring
Returns the time value for this dataset
%End

    bool isValid() const;
%Docstring
Returns whether dataset is valid
%End

    double minimum() const;
%Docstring
Returns minimum scalar value/vector magnitude present for the dataset
%End

    double maximum() const;
%Docstring
Returns maximum scalar value/vector magnitude present for the dataset
%End

    int maximumVerticalLevelsCount() const;
%Docstring
Returns maximum number of vertical levels for 3d stacked meshes

.. versionadded:: 3.12
%End

};


class QgsMeshDataset
{
%Docstring(signature="appended")
Abstract class that represents a dataset

.. versionadded:: 3.16
%End

%TypeHeaderCode
#include "qgsmeshdataset.h"
%End
  public:

    QgsMeshDataset();

    virtual ~QgsMeshDataset();

    virtual QgsMeshDatasetValue datasetValue( int valueIndex ) const = 0;
%Docstring
Returns the value with index ``valueIndex``
%End

    virtual QgsMeshDataBlock datasetValues( bool isScalar, int valueIndex, int count ) const = 0;
%Docstring
Returns ``count`` values from ``valueIndex``
%End

    virtual QgsMeshDataBlock areFacesActive( int faceIndex, int count ) const = 0;
%Docstring
Returns whether faces are active
%End

    virtual bool isActive( int faceIndex ) const = 0;
%Docstring
Returns whether the face is active
%End

    virtual QgsMeshDatasetMetadata metadata() const = 0;
%Docstring
Returns the metadata of the dataset
%End

    virtual int valuesCount() const = 0;
%Docstring
Returns the values count
%End
};

class QgsMeshDatasetGroup
{
%Docstring(signature="appended")
Abstract class that represents a dataset group

.. versionadded:: 3.16
%End

%TypeHeaderCode
#include "qgsmeshdataset.h"
%End
  public:

    enum Type /BaseType=IntEnum/
    {
      Unknown,
      Persistent,
      Memory,
      Virtual,
    };

    QgsMeshDatasetGroup();
    virtual ~QgsMeshDatasetGroup();

    QgsMeshDatasetGroup( const QString &name );
%Docstring
Constructor with the ``name`` of the dataset group
%End

    QgsMeshDatasetGroup( const QString &name, QgsMeshDatasetGroupMetadata::DataType dataType );
%Docstring
Constructor with the ``name`` of the dataset group and the ``dataTYpe``
%End

    virtual void initialize() = 0;
%Docstring
Initialize the dataset group
%End

    QgsMeshDatasetGroupMetadata groupMetadata() const;
%Docstring
Returns the metadata of the dataset group
%End

    virtual QgsMeshDatasetMetadata datasetMetadata( int datasetIndex ) const = 0;
%Docstring
Returns the metadata of the dataset with index ``datasetIndex``
%End

    virtual int datasetCount() const = 0;
%Docstring
Returns the count of datasets in the group
%End

    virtual QgsMeshDataset *dataset( int index ) const = 0;
%Docstring
Returns the dataset with ``index``
%End

    virtual QgsMeshDatasetGroup::Type type() const = 0;
%Docstring
Returns the type of dataset group
%End

    double minimum() const;
%Docstring
Returns the minimum value of the whole dataset group
%End

    double maximum() const;
%Docstring
Returns the maximum value of the whole dataset group
%End

    void setMinimumMaximum( double min, double max ) const;
%Docstring
Overrides the minimum and the maximum value of the whole dataset group
%End

    QString name() const;
%Docstring
Returns the name of the dataset group
%End

    void setName( const QString &name );
%Docstring
Sets the name of the dataset group
%End

    QgsMeshDatasetGroupMetadata::DataType dataType() const;
%Docstring
Returns the data type of the dataset group
%End

    void setDataType( const QgsMeshDatasetGroupMetadata::DataType &dataType );
%Docstring
Sets the data type of the dataset group
%End

    void addExtraMetadata( QString key, QString value );
%Docstring
Adds extra metadata to the group
%End
    QMap<QString, QString> extraMetadata() const;
%Docstring
Returns all the extra metadata of the group
%End

    bool isScalar() const;
%Docstring
Returns whether the group contain scalar values
%End

    void setIsScalar( bool isScalar );
%Docstring
Sets whether the group contain scalar values
%End

    bool checkValueCountPerDataset( int count ) const;
%Docstring
Returns whether all the datasets contain ``count`` values
%End

    void calculateStatistic() const;
%Docstring
Calculates the statistics (minimum and maximum)
%End

    void setStatisticObsolete() const;
%Docstring
Sets statistic obsolete, that means statistic will be recalculated when
requested
%End

    virtual QStringList datasetGroupNamesDependentOn() const;
%Docstring
Returns the dataset group variable name which this dataset group depends
on
%End

    virtual QDomElement writeXml( QDomDocument &doc, const QgsReadWriteContext &context ) const = 0;
%Docstring
Write dataset group information in a DOM element
%End

    virtual QString description() const;
%Docstring
Returns some information about the dataset group
%End

    void setReferenceTime( const QDateTime &referenceTime );
%Docstring
Sets the reference time of the dataset group
%End

  protected:


};



class QgsMeshDatasetGroupTreeItem
{
%Docstring(signature="appended")
Tree item for display of the mesh dataset groups. Dataset group is set
of datasets with the same name, but different control variable (e.g.
time)

Support for multiple levels, because groups can have subgroups, for
example

::

     + Groups:
       + Depth
         + Minimum
         + Maximum
       + Velocity
       + Wind speed
          + Minimum
          + Maximum

Tree items handle also the dependencies between dataset groups
represented by these items.

.. versionadded:: 3.14
%End

%TypeHeaderCode
#include "qgsmeshdataset.h"
%End
  public:

    QgsMeshDatasetGroupTreeItem();
%Docstring
Constructor for an empty dataset group tree item
%End

    QgsMeshDatasetGroupTreeItem( const QString &defaultName,
                                 const QString &sourceName,
                                 bool isVector,
                                 int index );
%Docstring
Constructor

:param defaultName: the name that will be used to display the item if
                    iot not overrides (:py:func:`setName`)
:param sourceName: the name used by the source (provider, dataset group
                   store,...)
:param isVector: whether the dataset group is a vector dataset group
:param index: index of the dataset group
%End

    QgsMeshDatasetGroupTreeItem( const QDomElement &itemElement, const QgsReadWriteContext &context );
%Docstring
Constructor from a DOM element, constructs also the children

:param itemElement: the DOM element
:param context: writing context (e.g. for conversion between relative
                and absolute paths)
%End

    ~QgsMeshDatasetGroupTreeItem();

    QgsMeshDatasetGroupTreeItem *clone() const /Factory/;
%Docstring
Clones the item

:return: the cloned item
%End

    void appendChild( QgsMeshDatasetGroupTreeItem *item /Transfer/ );
%Docstring
Appends a child ``item``.

.. note::

   takes ownership of item
%End

    void removeChild( QgsMeshDatasetGroupTreeItem *item /Transfer/ );
%Docstring
Removes and destroy a item child if exists

:param item: the item to append

.. versionadded:: 3.16
%End

    QgsMeshDatasetGroupTreeItem *child( int row ) const;
%Docstring
Returns a child

:param row: the position of the child

:return: the item at the position ``row``
%End

    QgsMeshDatasetGroupTreeItem *childFromDatasetGroupIndex( int index );
%Docstring
Returns the child with dataset group ``index`` Searches as depper as
needed on the child hierarchy

:param index: the index of the dataset group index

:return: the item with index as dataset group index, None if no item is
         found
%End

    int childCount() const;
%Docstring
Returns the count of children

:return: the children's count
%End

    int totalChildCount() const;
%Docstring
Returns the total count of children, that is included deeper children
and disabled items

:return: the total children's count
%End

    QList<int> enabledDatasetGroupIndexes() const;
%Docstring
Returns a list of enabled dataset group indexes, included deeper
children

:return: the list of dataset group indexes

.. versionadded:: 3.16.3
%End

    QgsMeshDatasetGroupTreeItem *parentItem() const;
%Docstring
Returns the parent item, None if it is root item

:return: the parent item
%End

    int row() const;
%Docstring
Returns the position of the item in the parent

:return: tow position of the item
%End

    QString name() const;
%Docstring
Returns the name of the item This name is the default name if the name
has not been overridden (:py:func:`setName`)

:return: the name to display
%End

    void setName( const QString &name );
%Docstring
Overrides the default name with the name to display. The default name is
still stored in the item but will not be displayed anymore except if the
empty string is set.

:param name: to display
%End

    QString providerName() const;
%Docstring
Returns the name used by the provider to identify the dataset

:return: the provider name

.. versionadded:: 3.16
%End

    bool isVector() const;
%Docstring
:return: whether the dataset group is vector
%End

    int datasetGroupIndex() const;
%Docstring
:return: the dataset group index
%End

    bool isEnabled() const;
%Docstring
:return: whether the item is enabled, that is if it is displayed in view
%End

    void setIsEnabled( bool isEnabled );
%Docstring
Sets whether the item is enabled, that is if it is displayed in view

:param isEnabled: whether the item is enabled
%End

    QString defaultName() const;
%Docstring
:return: the default name
%End

    QgsMeshDatasetGroup::Type datasetGroupType() const;
%Docstring
:return: the dataset group type

.. versionadded:: 3.16
%End

    QList<int> groupIndexDependencies() const;
%Docstring
Returns a list of group index corresponding to dataset group that
depends on the dataset group represented by this item

:return: list of group index
%End

    QString description() const;
%Docstring
Returns description about the dataset group (URI, formula,...)

.. versionadded:: 3.16
%End

    void setDatasetGroup( QgsMeshDatasetGroup *datasetGroup );
%Docstring
Set parameters of the item in accordance with the dataset group

:param datasetGroup: pointer to the dataset group to accord with

.. versionadded:: 3.16
%End

    void setPersistentDatasetGroup( const QString &uri );
%Docstring
Set parameters of the item in accordance with the persistent dataset
group with ``uri``

:param uri: uri of the persistent dataset group

.. versionadded:: 3.16
%End

    QDomElement writeXml( QDomDocument &doc, const QgsReadWriteContext &context );
%Docstring
Writes the item and its children in a DOM document

:param doc: the DOM document
:param context: writing context (e.g. for conversion between relative
                and absolute paths)

:return: the dom element where the item is written
%End

};

/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/mesh/qgsmeshdataset.h                                       *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/