QGIS API Documentation: QgisInterface Class Reference

QgisInterface Abstract base class defining interfaces exposed by QgisApp and made available to plugins. More... QgisInterface Abstract base class defining interfaces exposed by QgisApp and made available to plugins. Only functionality exposed by QgisInterface can be used in plugins. This interface has to be implemented with application specific details. QGIS implements it in QgisAppInterface class, 3rd party applications could provide their own implementation to be able to use plugins. Get access to the native run action feature action. Call trigger() on it to set the default run feature action map tool. Get access to the native identify action. Call trigger() on it to set the default identify map tool. Get access to the native measure area action. Call trigger() on it to set the default measure area map tool. Get access to the native pan to selected action. Call trigger() on it to pan the map canvas to the selection. Get access to the native select freehand action. Call trigger() on it to set the default select freehand map tool. Get access to the native select polygon action. Call trigger() on it to set the default select polygon map tool. Get access to the native select radius action. Call trigger() on it to set the default select radius map tool. Get access to the native select rectangle action. Call trigger() on it to set the default select rectangle map tool. Get access to the native zoom resolution (100%) action. Call trigger() on it to zoom to actual size. Get access to the native zoom out action. Call trigger() on it to set the default zoom out map tool. Get access to the native zoom to selected action. Call trigger() on it to zoom to the current selection. The action title is the window title and the action should raise, unminimize and activate the window. By default the QGIS doc directory is used as the base for the URL. To open a URL that is not relative to the installed QGIS documentation, set useQgisDocDirectory to false. This method is only needed when using a UI form with a custom widget plugin and calling openFeatureForm or getFeatureForm from Python (PyQt4) and you havn't used the info tool first. This method uses a QTimer to call QUiLoader in order to load the form via C++ you only need to call this once after that you can call openFeatureForm/getFeatureForm like normal Set the active layer (layer gets selected in the legend) returns true if the layer exists, false otherwise. With the help of this you can access methods like addFeature, startEditing or stopEditing while giving the user the appropriate dialogs. Source.


Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: April 23, 2016 @ 7:05 am