|
Isis 3.0 Developer's Reference (API) |
Home |
00001 #ifndef MosaicAreaTool_h 00002 #define MosaicAreaTool_h 00003 00004 #include "MosaicTool.h" 00005 00006 class QAction; 00007 class QGraphicsPolygonItem; 00008 class QLineEdit; 00009 00010 namespace Isis { 00011 class Distance; 00012 class PvlObject; 00013 00027 class MosaicAreaTool : public MosaicTool { 00028 Q_OBJECT 00029 00030 public: 00031 MosaicAreaTool(MosaicSceneWidget *); 00032 void addToMenu(QMenu *menu); 00033 00034 PvlObject toPvl() const; 00035 void fromPvl(const PvlObject &obj); 00036 QString projectPvlObjectName() const; 00037 00038 protected: 00039 QAction *getPrimaryAction(); 00040 QWidget *getToolBarWidget(); 00041 QWidget *createToolBarWidget(); 00042 void mouseButtonRelease(QPointF, Qt::MouseButton); 00043 00044 public slots: 00045 void userChangedBox(); 00046 void clearBox(); 00047 00048 private: 00049 QRectF calcLatLonRange(QPointF centerLatLon, Distance size); 00050 00051 QAction *m_drawBox; 00052 QLineEdit *m_lonLineEdit; 00053 QLineEdit *m_latLineEdit; 00054 QLineEdit *m_areaLineEdit; 00055 QGraphicsPolygonItem *m_box; 00056 QAction *m_action; 00057 }; 00058 }; 00059 00060 #endif 00061