Isis 3 Developer Reference
MosaicAreaTool.h
Go to the documentation of this file.
1 #ifndef MosaicAreaTool_h
2 #define MosaicAreaTool_h
3 
4 #include "MosaicTool.h"
5 
6 class QAction;
7 class QGraphicsPolygonItem;
8 class QLineEdit;
9 
10 namespace Isis {
11  class Distance;
12  class PvlObject;
13 
28  class MosaicAreaTool : public MosaicTool {
29  Q_OBJECT
30 
31  public:
33  void addToMenu(QMenu *menu);
34 
35  PvlObject toPvl() const;
36  void fromPvl(const PvlObject &obj);
37  QString projectPvlObjectName() const;
38 
39  protected:
43  void mouseButtonRelease(QPointF, Qt::MouseButton);
44 
45  public slots:
46  void userChangedBox();
47  void clearBox();
48 
49  private:
50  QRectF calcLatLonRange(QPointF centerLatLon, Distance size);
51 
52  QAction *m_drawBox;
53  QLineEdit *m_lonLineEdit;
54  QLineEdit *m_latLineEdit;
55  QLineEdit *m_areaLineEdit;
56  QGraphicsPolygonItem *m_box;
57  QAction *m_action;
58  };
59 };
60 
61 #endif
62 
This widget encompasses the entire mosaic scene.
Definition: MosaicSceneWidget.h:153
Base class for the MosaicTools.
Definition: MosaicTool.h:37
This displays a box with a given distance from a point.
Definition: MosaicAreaTool.h:28
PvlObject toPvl() const
Definition: MosaicAreaTool.cpp:292
Distance measurement, usually in meters.
Definition: Distance.h:47
MosaicAreaTool(MosaicSceneWidget *)
MosaicAreaTool constructor.
Definition: MosaicAreaTool.cpp:35
void addToMenu(QMenu *menu)
Adds the pan action to the given menu.
Definition: MosaicAreaTool.cpp:287
QAction * getPrimaryAction()
Adds the action to the toolpad.
Definition: MosaicAreaTool.cpp:220
void clearBox()
Definition: MosaicAreaTool.cpp:370
QWidget * getToolBarWidget()
This method returns a widget that will be put in a tool bar when the tool is activated.
Definition: MosaicAreaTool.cpp:238
QWidget * createToolBarWidget()
Creates the widget to add to the tool bar.
Definition: MosaicAreaTool.cpp:337
void mouseButtonRelease(QPointF, Qt::MouseButton)
Definition: MosaicAreaTool.cpp:343
QString projectPvlObjectName() const
Definition: MosaicAreaTool.cpp:324
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void fromPvl(const PvlObject &obj)
Definition: MosaicAreaTool.cpp:306
void userChangedBox()
Definition: MosaicAreaTool.cpp:52
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:74