Isis 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
6class QAction;
7class QGraphicsPolygonItem;
8class QLineEdit;
9
10namespace 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
Distance measurement, usually in meters.
Definition Distance.h:34
This displays a box with a given distance from a point.
Definition MosaicAreaTool.h:28
void clearBox()
Definition MosaicAreaTool.cpp:370
void addToMenu(QMenu *menu)
Adds the pan action to the given menu.
Definition MosaicAreaTool.cpp:287
QString projectPvlObjectName() const
Definition MosaicAreaTool.cpp:324
PvlObject toPvl() const
Definition MosaicAreaTool.cpp:292
QWidget * getToolBarWidget()
This method returns a widget that will be put in a tool bar when the tool is activated.
Definition MosaicAreaTool.cpp:238
void mouseButtonRelease(QPointF, Qt::MouseButton)
Definition MosaicAreaTool.cpp:343
MosaicAreaTool(MosaicSceneWidget *)
MosaicAreaTool constructor.
Definition MosaicAreaTool.cpp:35
QAction * getPrimaryAction()
Adds the action to the toolpad.
Definition MosaicAreaTool.cpp:220
QWidget * createToolBarWidget()
Creates the widget to add to the tool bar.
Definition MosaicAreaTool.cpp:337
void fromPvl(const PvlObject &obj)
Definition MosaicAreaTool.cpp:306
void userChangedBox()
Definition MosaicAreaTool.cpp:52
This widget encompasses the entire mosaic scene.
Definition MosaicSceneWidget.h:153
Base class for the MosaicTools.
Definition MosaicTool.h:37
Contains Pvl Groups and Pvl Objects.
Definition PvlObject.h:61
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16