QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
A dialog allowing users to enter a scale visibility range. More...
#include <qgsscalevisibilitydialog.h>
Public Slots | |
void | setMaximumScale (double scale) |
Set the maximum scale, or 0 to indicate the minimum is not set. | |
void | setMinimumScale (double scale) |
Set the minimum scale, or 0 to indicate the minimum is not set. | |
void | setScaleVisibility (bool hasScaleVisibility) |
Set whether scale based visibility is enabled. | |
Q_DECL_DEPRECATED void | setScaleVisiblity (bool hasScaleVisibility) |
Set whether scale based visibility is enabled. | |
Public Member Functions | |
QgsScaleVisibilityDialog (QWidget *parent=nullptr, const QString &title=QString(), QgsMapCanvas *mapCanvas=nullptr) | |
Constructor for QgsScaleVisibilityDialog, with specified dialog title. | |
bool | hasScaleVisibility () const |
Returns true if scale based visibility is enabled. | |
double | maximumScale () const |
Returns the selected maximum scale, or 0 if maximum scale is not set. | |
double | minimumScale () const |
Returns the selected minimum scale, or 0 if minimum scale is not set. | |
Properties | |
bool | hasScaleVisibility |
double | maximumScale |
double | minimumScale |
A dialog allowing users to enter a scale visibility range.
Definition at line 32 of file qgsscalevisibilitydialog.h.
|
explicit |
Constructor for QgsScaleVisibilityDialog, with specified dialog title.
The mapCanvas argument can be used to associate the dialog with a map canvas, allowing use of the current map scale within the dialog.
Definition at line 25 of file qgsscalevisibilitydialog.cpp.
bool QgsScaleVisibilityDialog::hasScaleVisibility | ( | ) | const |
Returns true
if scale based visibility is enabled.
Definition at line 63 of file qgsscalevisibilitydialog.cpp.
double QgsScaleVisibilityDialog::maximumScale | ( | ) | const |
Returns the selected maximum scale, or 0 if maximum scale is not set.
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
Definition at line 83 of file qgsscalevisibilitydialog.cpp.
double QgsScaleVisibilityDialog::minimumScale | ( | ) | const |
Returns the selected minimum scale, or 0 if minimum scale is not set.
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
Definition at line 73 of file qgsscalevisibilitydialog.cpp.
|
slot |
Set the maximum scale, or 0 to indicate the minimum is not set.
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
Definition at line 78 of file qgsscalevisibilitydialog.cpp.
|
slot |
Set the minimum scale, or 0 to indicate the minimum is not set.
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
Definition at line 68 of file qgsscalevisibilitydialog.cpp.
|
slot |
Set whether scale based visibility is enabled.
Definition at line 58 of file qgsscalevisibilitydialog.cpp.
|
inlineslot |
Set whether scale based visibility is enabled.
Definition at line 75 of file qgsscalevisibilitydialog.h.
|
readwrite |
Definition at line 35 of file qgsscalevisibilitydialog.h.
|
readwrite |
Definition at line 37 of file qgsscalevisibilitydialog.h.
|
readwrite |
Definition at line 36 of file qgsscalevisibilitydialog.h.