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 
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 
Isis::Angle::Degrees
@ Degrees
Degrees are generally considered more human readable, 0-360 is one circle, however most math does not...
Definition: Angle.h:56
Isis::IString::ToDouble
double ToDouble() const
Returns the floating point value the IString represents.
Definition: IString.cpp:799
Isis::TProjection::LocalRadius
double LocalRadius(double lat) const
This method returns the local radius in meters at the specified latitude position.
Definition: TProjection.cpp:326
Isis::MosaicSceneWidget::getView
MosaicGraphicsView * getView() const
Definition: MosaicSceneWidget.h:162
QWidget
Isis::PvlObject
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
Isis::MosaicTool::getIcon
QPixmap getIcon(QString iconName) const
returns the path to the icon directory.
Definition: MosaicTool.cpp:115
Isis::MosaicSceneWidget::getProjection
Projection * getProjection() const
Definition: MosaicSceneWidget.h:170
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
MosaicSceneWidget.h
Isis::MosaicAreaTool::projectPvlObjectName
QString projectPvlObjectName() const
Definition: MosaicAreaTool.cpp:324
Isis::TProjection::SetCoordinate
virtual bool SetCoordinate(const double x, const double y)
This method is used to set the projection x/y.
Definition: TProjection.cpp:789
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::MosaicTool::getWidget
MosaicSceneWidget * getWidget()
Definition: MosaicTool.h:96
Isis::MosaicAreaTool::userChangedBox
void userChangedBox()
Definition: MosaicAreaTool.cpp:52
Isis::TProjection::Longitude
virtual double Longitude() const
This returns a longitude with correct longitude direction and domain as specified in the label object...
Definition: TProjection.cpp:823
Isis::Projection::projectionType
ProjectionType projectionType() const
Returns an enum value for the projection type.
Definition: Projection.cpp:198
Isis::MosaicSceneWidget
This widget encompasses the entire mosaic scene.
Definition: MosaicSceneWidget.h:153
Isis::MosaicAreaTool::fromPvl
void fromPvl(const PvlObject &obj)
Definition: MosaicAreaTool.cpp:306
Isis::MosaicTool
Base class for the MosaicTools.
Definition: MosaicTool.h:37
Isis::TProjection::Has360Domain
bool Has360Domain() const
This indicates if the longitude domain is 0 to 360 (as opposed to -180 to 180).
Definition: TProjection.cpp:643
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
IString.h
Isis::Distance
Distance measurement, usually in meters.
Definition: Distance.h:34
Isis::MosaicSceneWidget::getScene
QGraphicsScene * getScene() const
Definition: MosaicSceneWidget.h:166
Isis::MosaicAreaTool::mouseButtonRelease
void mouseButtonRelease(QPointF, Qt::MouseButton)
Definition: MosaicAreaTool.cpp:343
Isis::Distance::Meters
@ Meters
The distance is being specified in meters.
Definition: Distance.h:43
Isis::TProjection::Latitude
virtual double Latitude() const
This returns a latitude with correct latitude type as specified in the label object.
Definition: TProjection.cpp:811
Isis::MosaicAreaTool
This displays a box with a given distance from a point.
Definition: MosaicAreaTool.h:28
Isis::TProjection
Base class for Map TProjections.
Definition: TProjection.h:166
Isis::PvlObject::hasKeyword
bool hasKeyword(const QString &kname, FindOptions opts) const
See if a keyword is in the current PvlObject, or deeper inside other PvlObjects and Pvlgroups within ...
Definition: PvlObject.cpp:236
Isis::MosaicAreaTool::addToMenu
void addToMenu(QMenu *menu)
Adds the pan action to the given menu.
Definition: MosaicAreaTool.cpp:287
MosaicGraphicsView.h
MosaicAreaTool.h
Isis::Angle
Defines an angle and provides unit conversions.
Definition: Angle.h:45
Isis::MosaicAreaTool::clearBox
void clearBox()
Definition: MosaicAreaTool.cpp:370
TProjection.h
Isis::MosaicTool::isActive
bool isActive() const
Returns the activeness of this toool.
Definition: MosaicTool.h:50
Isis::TProjection::SetGround
virtual bool SetGround(const double lat, const double lon)
This method is used to set the latitude/longitude (assumed to be of the correct LatitudeType,...
Definition: TProjection.cpp:760
Isis::MosaicAreaTool::toPvl
PvlObject toPvl() const
Definition: MosaicAreaTool.cpp:292
Isis::toBool
bool toBool(const QString &string)
Global function to convert from a string to a boolean.
Definition: IString.cpp:38
PvlKeyword.h
Angle.h
PvlObject.h
Projection.h
Isis::Projection::Triaxial
@ Triaxial
These projections are used to map triaxial and irregular-shaped bodies.
Definition: Projection.h:166
Isis::IString
Adds specific functionality to C++ strings.
Definition: IString.h:165
Isis::MosaicAreaTool::getPrimaryAction
QAction * getPrimaryAction()
Adds the action to the toolpad.
Definition: MosaicAreaTool.cpp:220
FindSpotGraphicsItem.h
Distance.h
Isis::Projection::YCoord
double YCoord() const
This returns the projection Y provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:400
MosaicTool.h
Isis::Projection
Base class for Map Projections.
Definition: Projection.h:155
QAction
Isis::Projection::ProjectionType
ProjectionType
This enum defines the subclasses of Projection supported in Isis.
Definition: Projection.h:166
Isis::Projection::XCoord
double XCoord() const
This returns the projection X provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:387
Isis::Angle::Radians
@ Radians
Radians are generally used in mathematical equations, 0-2*PI is one circle, however these are more di...
Definition: Angle.h:63
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16