Isis 3 Programmer Reference
MosaicAreaTool.h
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 
QRectF calcLatLonRange(QPointF centerLatLon, Distance size)
Given a distance and a center lat,lon this will return the bounding lat,lon rect. ...
This widget encompasses the entire mosaic scene.
Base class for the MosaicTools.
Definition: MosaicTool.h:37
This displays a box with a given distance from a point.
Distance measurement, usually in meters.
Definition: Distance.h:47
MosaicAreaTool(MosaicSceneWidget *)
MosaicAreaTool constructor.
void addToMenu(QMenu *menu)
Adds the pan action to the given menu.
QAction * getPrimaryAction()
Adds the action to the toolpad.
QWidget * getToolBarWidget()
This method returns a widget that will be put in a tool bar when the tool is activated.
QWidget * createToolBarWidget()
Creates the widget to add to the tool bar.
QLineEdit * m_areaLineEdit
Input for latitude.
QLineEdit * m_lonLineEdit
Input for longitude.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:74
QLineEdit * m_latLineEdit
Input for latitude.