Loading [MathJax]/jax/output/NativeMML/config.js
Isis Developer Reference
MosaicFindTool.h
Go to the documentation of this file.
1 #ifndef MosaicFindTool_h
2 #define MosaicFindTool_h
3 
4 #include "MosaicTool.h"
5 
6 class QAction;
7 class QDialog;
9 class QLineEdit;
10 class QToolButton;
11 
12 namespace Isis {
13  class PvlObject;
29  class MosaicFindTool : public MosaicTool {
30  Q_OBJECT
31 
32  public:
34  void addToMenu(QMenu *menu);
35 
36  PvlObject toPvl() const;
37  void fromPvl(const PvlObject &obj);
38  QString projectPvlObjectName() const;
39 
40  protected slots:
41  void updateTool();
42 
43  protected:
47  void mouseButtonRelease(QPointF, Qt::MouseButton);
48 
49  public slots:
50  void getUserGroundPoint();
51  void clearPoint();
52 
53  private:
54  QAction *p_findPoint;
55  QToolButton *p_findPtButton;
56  QLineEdit *p_status;
57  bool p_released;
58  bool p_pressed;
59  bool p_paint;
60  QLineEdit *p_lonLineEdit;
61  QLineEdit *p_latLineEdit;
62  QGraphicsEllipseItem *p_findSpot;
63  QAction *p_action;
64  };
65 };
66 
67 #endif
68 
Isis::IString::ToDouble
double ToDouble() const
Returns the floating point value the IString represents.
Definition: IString.cpp:799
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::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
QMenu
Isis::MosaicTool::getWidget
MosaicSceneWidget * getWidget()
Definition: MosaicTool.h:96
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
QGraphicsEllipseItem
Isis::MosaicFindTool
This controls the 'Find' abilities in the MosaicSceneWidget.
Definition: MosaicFindTool.h:29
Isis::MosaicFindTool::toPvl
PvlObject toPvl() const
Definition: MosaicFindTool.cpp:170
Isis::MosaicTool
Base class for the MosaicTools.
Definition: MosaicTool.h:37
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
IString.h
Isis::MosaicSceneWidget::getScene
QGraphicsScene * getScene() const
Definition: MosaicSceneWidget.h:166
Isis::MosaicFindTool::updateTool
void updateTool()
This method sets the QGraphicsView to allow the user to select mosaic items by dragging a rubber band...
Definition: MosaicFindTool.cpp:257
Isis::MosaicFindTool::getToolBarWidget
QWidget * getToolBarWidget()
This method returns a widget that will be put in a tool bar when the tool is activated.
Definition: MosaicFindTool.cpp:124
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::TProjection
Base class for Map TProjections.
Definition: TProjection.h:166
Isis::MosaicFindTool::MosaicFindTool
MosaicFindTool(MosaicSceneWidget *)
MosaicFindTool constructor.
Definition: MosaicFindTool.cpp:30
Isis::MosaicFindTool::fromPvl
void fromPvl(const PvlObject &obj)
Definition: MosaicFindTool.cpp:181
MosaicGraphicsView.h
Isis::MosaicFindTool::createToolBarWidget
QWidget * createToolBarWidget()
Creates the widget to add to the tool bar.
Definition: MosaicFindTool.cpp:203
Isis::MosaicFindTool::mouseButtonRelease
void mouseButtonRelease(QPointF, Qt::MouseButton)
Definition: MosaicFindTool.cpp:209
TProjection.h
MosaicFindTool.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::MosaicFindTool::clearPoint
void clearPoint()
Definition: MosaicFindTool.cpp:242
Isis::toBool
bool toBool(const QString &string)
Global function to convert from a string to a boolean.
Definition: IString.cpp:38
PvlKeyword.h
Isis::MosaicFindTool::projectPvlObjectName
QString projectPvlObjectName() const
Definition: MosaicFindTool.cpp:190
Isis::MosaicFindTool::getUserGroundPoint
void getUserGroundPoint()
Definition: MosaicFindTool.cpp:40
PvlObject.h
Projection.h
Isis::Projection::Triaxial
@ Triaxial
These projections are used to map triaxial and irregular-shaped bodies.
Definition: Projection.h:166
QDialog
Isis::MosaicFindTool::getPrimaryAction
QAction * getPrimaryAction()
Adds the action to the toolpad.
Definition: MosaicFindTool.cpp:105
Isis::IString
Adds specific functionality to C++ strings.
Definition: IString.h:165
FindSpotGraphicsItem.h
Isis::FindSpotGraphicsItem
The visual display of the find point.
Definition: FindSpotGraphicsItem.h:19
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
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::MosaicFindTool::addToMenu
void addToMenu(QMenu *menu)
Adds the pan action to the given menu.
Definition: MosaicFindTool.cpp:165

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:11:50