qgspointdialog.h

来自「一个非常好的GIS开源新版本」· C头文件 代码 · 共 96 行

H
96
字号
/*************************************************************************** *   Copyright (C) 2003 by Tim Sutton                                      * *   tim@linfiniti.com                                                     * *                                                                         * *   This is a plugin generated from the QGIS plugin template              * *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * ***************************************************************************/#ifndef QGSPOINTDIALOG_H#define QGSPOINTDIALOG_H#include <vector>#include <QDialog>#include <QString>#include <qgsmapcanvas.h>#include <qgsrasterlayer.h>#include <ui_qgspointdialogbase.h>class QAction;class QActionGroup;class QgsGeorefDataPoint;class QgsMapTool;class QgisInterface;class QgsPointDialog : public QDialog, private Ui::QgsPointDialogBase{Q_OBJECTpublic:  QgsPointDialog(QString layerPath, QgisInterface* theQgisInterface,                 QWidget* parent = 0, Qt::WFlags fl = 0);  QgsPointDialog(QgisInterface* theQgisInterface, QWidget* parent = 0, Qt::WFlags fl = 0);  ~QgsPointDialog();  /**Opens a new image file in mCanvas*/  void openImageFile(QString layerPath);  void showCoordDialog(QgsPoint& pixelCoords);  void deleteDataPoint(QgsPoint& pixelCoords);public slots:    void addPoint(const QgsPoint& pixelCoords, const QgsPoint& mapCoords);  void on_pbnGenerateWorldFile_clicked();  void on_pbnGenerateAndLoad_clicked();  void on_pbnSelectWorldFile_clicked();  void on_pbnSelectModifiedRaster_clicked();  void on_cmbTransformType_currentIndexChanged(const QString&);  void zoomIn();  void zoomOut();  void zoomToLayer();  void pan();  void addPoint();  void deletePoint();  void enableRelevantControls(void);   private:  void initialize();  bool generateWorldFile();  QString guessWorldFileName(const QString& raster);  void enableModifiedRasterControls(bool state);    QActionGroup* mMapToolGroup;  QAction* mActionZoomIn;  QAction* mActionZoomOut;  QAction* mActionZoomToLayer;  QAction* mActionPan;  QAction* mActionAddPoint;  QAction* mActionDeletePoint;    QgsMapCanvas* mCanvas;  QgsRasterLayer* mLayer;    QgsMapTool* mToolZoomIn;  QgsMapTool* mToolZoomOut;  QgsMapTool* mToolPan;  QgsMapTool* mToolAddPoint;  QgsMapTool* mToolDeletePoint;    //  std::vector<QgsPoint> mPixelCoords, mMapCoords;//  std::vector<QString> mAcetateIDs;  std::vector<QgsGeorefDataPoint*> mPoints;  QgisInterface* mIface;  int mAcetateCounter;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?