File failed to load: https://isis.astrogeology.usgs.gov/6.0.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
MosaicGridTool.h
1 #ifndef MosaicGridTool_h
2 #define MosaicGridTool_h
3 
4 #include "MosaicTool.h"
5 
6 #include <QPointer>
7 
8 #include "Angle.h"
9 #include "Latitude.h"
10 #include "Longitude.h"
11 
12 class QAction;
13 class QCheckBox;
14 class QDialog;
15 class QGraphicsItem;
16 class GridGraphicsItem;
17 class QLabel;
18 class Projection;
19 class QPushButton;
20 class QToolButton;
21 
22 namespace Isis {
53  class MosaicGridTool : public MosaicTool {
54  Q_OBJECT
55 
56  public:
61  Map,
70  Manual
71  };
72 
74  void addToMenu(QMenu *menu);
75 
76  //Accessors
77  bool autoGridCheckBox();
78  Latitude baseLat();
80  int density();
81  Angle latInc();
83  QString latType();
84  QString lonDomain();
86  Angle lonInc();
87  Latitude maxLat();
88  Longitude maxLon();
89  Latitude minLat();
90  Longitude minLon();
92  bool showGrid();
93 
94  //Mutators
95  void setAutoGridCheckBox(bool checked);
98  void setDensity(int density);
100  void setLatInc(Angle latInc);
102  void setLonInc(Angle lonInc);
103  void setShowGrid(bool show);
104 
105  //Processors
106  void fromPvl(const PvlObject &obj);
107  QString projectPvlObjectName() const;
108  PvlObject toPvl() const;
109 
110  Longitude domainMinLon();
111  Longitude domainMaxLon();
112 
113  signals:
114  void boundingRectChanged();
115 
116 
117  public slots:
118  void autoGrid(bool draw);
119  void clearGrid();
120  void configure();
121  void drawGrid();
122  void drawGrid(bool draw);
123  void onCubesChanged();
124  void onToolOpen(bool check);
125  void onProjectionChanged();
126 
127  protected:
131 
132  private:
133  QPointer<QLabel> m_autoGridLabel;
134  QPointer<QCheckBox> m_autoGridCheckBox;
135  QPointer<QCheckBox> m_drawGridCheckBox;
137 
140 
143 
147 
151 
152  int m_density;
153 
154  QAction *m_action;
155  QGraphicsItem *m_gridItem;
157  };
158 };
159 
160 #endif
161 
Isis::MosaicGridTool::setBaseLon
void setBaseLon(Longitude baseLon)
Modify the base longitude.
Definition: MosaicGridTool.cpp:281
Isis::MosaicGridTool::density
int density()
The density or resolution of the grid.
Definition: MosaicGridTool.cpp:113
Isis::MosaicGridTool::m_drawGridCheckBox
QPointer< QCheckBox > m_drawGridCheckBox
True if grid properties come from the open cubes.
Definition: MosaicGridTool.h:135
QWidget
Isis::MosaicGridTool::maxLon
Longitude maxLon()
The maximum longitude used to determine the grid's extents and increments.
Definition: MosaicGridTool.cpp:211
Isis::MosaicGridTool::addToMenu
void addToMenu(QMenu *menu)
Adds the pan action to the given menu.
Definition: MosaicGridTool.cpp:73
Isis::PvlObject
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
Isis::MosaicGridTool::m_minLon
Longitude m_minLon
Minimum longitude of the grid.
Definition: MosaicGridTool.h:150
Isis::MosaicGridTool::latExtents
GridExtentSource latExtents()
The extent type (Map, Cubes, Manual) for the latitude.
Definition: MosaicGridTool.cpp:133
Isis::MosaicGridTool::setBaseLat
void setBaseLat(Latitude baseLat)
Modify the base latitude.
Definition: MosaicGridTool.cpp:271
Isis::MosaicGridTool::m_autoGridLabel
QPointer< QLabel > m_autoGridLabel
Enabled and diabled with the autoGrid checkbox.
Definition: MosaicGridTool.h:133
Isis::Latitude
This class is designed to encapsulate the concept of a Latitude.
Definition: Latitude.h:51
Isis::MosaicGridTool
This controls the 'Grid' abilities in the MosaicSceneWidget.
Definition: MosaicGridTool.h:53
Isis::MosaicGridTool::clearGrid
void clearGrid()
Clears the grid from the scene.
Definition: MosaicGridTool.cpp:781
Isis::MosaicGridTool::Manual
@ Manual
The grid will be drawn using the extents that the user specifies.
Definition: MosaicGridTool.h:70
Isis::MosaicGridTool::drawGrid
void drawGrid()
Creates the GridGraphicsItem that will draw the grid.
Definition: MosaicGridTool.cpp:835
QMenu
Isis::MosaicGridTool::fromPvl
void fromPvl(const PvlObject &obj)
Read the tool information form a pvl object.
Definition: MosaicGridTool.cpp:559
Isis::MosaicGridTool::m_autoGridCheckBox
QPointer< QCheckBox > m_autoGridCheckBox
True if grid properties come from the open cubes.
Definition: MosaicGridTool.h:134
Isis::MosaicGridTool::GridExtentSource
GridExtentSource
Definition: MosaicGridTool.h:57
Isis::MosaicSceneWidget
This widget encompasses the entire mosaic scene.
Definition: MosaicSceneWidget.h:153
Isis::MosaicGridTool::autoGrid
void autoGrid(bool draw)
Calculates the lat/lon increments from the bounding rectangle of the open cubes.
Definition: MosaicGridTool.cpp:715
Isis::MosaicGridTool::setDensity
void setDensity(int density)
Modify the density.
Definition: MosaicGridTool.cpp:291
Isis::MosaicGridTool::showGrid
bool showGrid()
True if grid is displayed.
Definition: MosaicGridTool.cpp:251
Isis::MosaicTool
Base class for the MosaicTools.
Definition: MosaicTool.h:37
Isis::MosaicGridTool::setLatInc
void setLatInc(Angle latInc)
Modify the latitude increment.
Definition: MosaicGridTool.cpp:413
Isis::MosaicGridTool::toPvl
PvlObject toPvl() const
Store the tool information in a pvl object.
Definition: MosaicGridTool.cpp:647
Isis::Longitude
This class is designed to encapsulate the concept of a Longitude.
Definition: Longitude.h:40
Isis::MosaicGridTool::onCubesChanged
void onCubesChanged()
Determines whether or not the bounding rectangle was changed by the addition or removal of cubes.
Definition: MosaicGridTool.cpp:897
Isis::MosaicGridTool::getToolBarWidget
QWidget * getToolBarWidget()
Creates the Grid Toolbar Widget.
Definition: MosaicGridTool.cpp:981
Isis::MosaicGridTool::setLatExtents
void setLatExtents(GridExtentSource source, Latitude minLat, Latitude maxLat)
Set the maximum and minimum latitude of the grid.
Definition: MosaicGridTool.cpp:303
Isis::MosaicGridTool::m_density
int m_density
Grid density for drawing the grid.
Definition: MosaicGridTool.h:152
Isis::MosaicGridTool::setShowGrid
void setShowGrid(bool show)
Modify the check state of the checkbox.
Definition: MosaicGridTool.cpp:549
Isis::MosaicGridTool::m_latInc
Angle m_latInc
Latitude increment for drawing the grid.
Definition: MosaicGridTool.h:141
Isis::MosaicGridTool::setLonExtents
void setLonExtents(GridExtentSource source, Longitude minLon, Longitude maxLon)
Set the maximum and minimum longitude of the grid.
Definition: MosaicGridTool.cpp:427
Isis::MosaicGridTool::Map
@ Map
The grid will be drawn using the extents from the map projection.
Definition: MosaicGridTool.h:61
Isis::MosaicGridTool::latInc
Angle latInc()
The angle of the latitude increment.
Definition: MosaicGridTool.cpp:123
Isis::MosaicGridTool::m_lonInc
Angle m_lonInc
Longitude increment for drawing the grid.
Definition: MosaicGridTool.h:142
Isis::MosaicGridTool::lonDomain
QString lonDomain()
The longitude domain of the projection of the scene.
Definition: MosaicGridTool.cpp:162
Isis::MosaicGridTool::projectPvlObjectName
QString projectPvlObjectName() const
An accessor for the name of the Pvl object that the tool's information is stored in.
Definition: MosaicGridTool.cpp:637
Isis::MosaicGridTool::baseLat
Latitude baseLat()
The base latitude.
Definition: MosaicGridTool.cpp:92
Isis::MosaicGridTool::createToolBarWidget
QWidget * createToolBarWidget()
Creates the widget to add to the tool bar.
Definition: MosaicGridTool.cpp:947
Isis::MosaicGridTool::maxLat
Latitude maxLat()
The maximum latitude used to determine the grid's extents and increments.
Definition: MosaicGridTool.cpp:201
Isis::Angle
Defines an angle and provides unit conversions.
Definition: Angle.h:45
Isis::MosaicGridTool::m_latExtents
GridExtentSource m_latExtents
Used for the state of the options dialog.
Definition: MosaicGridTool.h:144
Isis::MosaicGridTool::autoGridCheckBox
bool autoGridCheckBox()
True if checked.
Definition: MosaicGridTool.cpp:82
Isis::MosaicGridTool::minLat
Latitude minLat()
The minimum latitude used to determine the grid's extents and increments.
Definition: MosaicGridTool.cpp:221
Isis::MosaicGridTool::getPrimaryAction
QAction * getPrimaryAction()
Adds the action to the toolpad.
Definition: MosaicGridTool.cpp:960
Isis::MosaicGridTool::setAutoGridCheckBox
void setAutoGridCheckBox(bool checked)
Modify the check state of the checkbox.
Definition: MosaicGridTool.cpp:261
Isis::MosaicGridTool::m_lonExtents
GridExtentSource m_lonExtents
Used for the state of the options dialog.
Definition: MosaicGridTool.h:148
Isis::MosaicGridTool::configure
void configure()
Give a configuration dialog for the options available in this tool.
Definition: MosaicGridTool.cpp:797
Isis::MosaicGridTool::setLonInc
void setLonInc(Angle lonInc)
Modify the longitude increment.
Definition: MosaicGridTool.cpp:534
Isis::MosaicGridTool::m_maxLon
Longitude m_maxLon
Maximum longitude of the grid.
Definition: MosaicGridTool.h:149
Isis::MosaicGridTool::onToolOpen
void onToolOpen(bool check)
Checks both checkboxes when the tool is first opened.
Definition: MosaicGridTool.cpp:915
Isis::MosaicGridTool::m_baseLon
Longitude m_baseLon
Base longitude for drawing the grid.
Definition: MosaicGridTool.h:139
QDialog
Isis::MosaicGridTool::Cubes
@ Cubes
The grid will be drawn using the extents from the bounding rectangle of the open cubes.
Definition: MosaicGridTool.h:66
Isis::MosaicGridTool::latType
QString latType()
The latitude type (planetocentric/planetographic) of the projection of the scene.
Definition: MosaicGridTool.cpp:143
Isis::MosaicGridTool::m_shouldCheckBoxes
bool m_shouldCheckBoxes
True when the tool is first opened to check the checkboxes.
Definition: MosaicGridTool.h:136
Isis::MosaicGridTool::minLon
Longitude minLon()
The minimum longitude used to determine the grid's extents and increments.
Definition: MosaicGridTool.cpp:231
Isis::MosaicGridTool::lonExtents
GridExtentSource lonExtents()
The extent type (Map, Cubes, Manual) for the longitude.
Definition: MosaicGridTool.cpp:181
QAction
Isis::MosaicGridTool::m_baseLat
Latitude m_baseLat
Base latitude for drawing the grid.
Definition: MosaicGridTool.h:138
Isis::MosaicGridTool::MosaicGridTool
MosaicGridTool(MosaicSceneWidget *)
MosaicGridTool constructor.
Definition: MosaicGridTool.cpp:38
QGraphicsItem
Isis::MosaicGridTool::lonInc
Angle lonInc()
The angle of the longitude increment.
Definition: MosaicGridTool.cpp:191
Isis::MosaicGridTool::m_maxLat
Latitude m_maxLat
Maximum latitude of the grid.
Definition: MosaicGridTool.h:145
Isis::MosaicGridTool::sceneWidget
MosaicSceneWidget * sceneWidget()
Definition: MosaicGridTool.cpp:241
Isis::MosaicGridTool::m_minLat
Latitude m_minLat
Minimum latitude of the grid.
Definition: MosaicGridTool.h:146
Isis::MosaicGridTool::m_previousBoundingRect
QRectF m_previousBoundingRect
The bounding rectangle of the previous set of open cubes.
Definition: MosaicGridTool.h:156
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::MosaicGridTool::baseLon
Longitude baseLon()
The base longitude.
Definition: MosaicGridTool.cpp:102

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