Loading [MathJax]/jax/output/NativeMML/config.js
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 
QWidget
Isis::PvlObject
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
Isis::MosaicAreaTool::MosaicAreaTool
MosaicAreaTool(MosaicSceneWidget *)
MosaicAreaTool constructor.
Definition: MosaicAreaTool.cpp:35
Isis::MosaicAreaTool::getToolBarWidget
QWidget * getToolBarWidget()
This method returns a widget that will be put in a tool bar when the tool is activated.
Definition: MosaicAreaTool.cpp:238
QMenu
Isis::MosaicAreaTool::createToolBarWidget
QWidget * createToolBarWidget()
Creates the widget to add to the tool bar.
Definition: MosaicAreaTool.cpp:337
Isis::MosaicSceneWidget
This widget encompasses the entire mosaic scene.
Definition: MosaicSceneWidget.h:153
Isis::MosaicTool
Base class for the MosaicTools.
Definition: MosaicTool.h:37
Isis::Distance
Distance measurement, usually in meters.
Definition: Distance.h:34
Isis::MosaicAreaTool::m_areaLineEdit
QLineEdit * m_areaLineEdit
Input for latitude.
Definition: MosaicAreaTool.h:55
Isis::MosaicAreaTool::calcLatLonRange
QRectF calcLatLonRange(QPointF centerLatLon, Distance size)
Given a distance and a center lat,lon this will return the bounding lat,lon rect.
Definition: MosaicAreaTool.cpp:387
Isis::MosaicAreaTool
This displays a box with a given distance from a point.
Definition: MosaicAreaTool.h:28
Isis::MosaicAreaTool::m_lonLineEdit
QLineEdit * m_lonLineEdit
Input for longitude.
Definition: MosaicAreaTool.h:53
Isis::MosaicAreaTool::addToMenu
void addToMenu(QMenu *menu)
Adds the pan action to the given menu.
Definition: MosaicAreaTool.cpp:287
Isis::MosaicAreaTool::m_latLineEdit
QLineEdit * m_latLineEdit
Input for latitude.
Definition: MosaicAreaTool.h:54
Isis::MosaicAreaTool::getPrimaryAction
QAction * getPrimaryAction()
Adds the action to the toolpad.
Definition: MosaicAreaTool.cpp:220
QAction
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/13/2023 15:16:53