Isis Developer Reference
ChipViewportsWidget.h
Go to the documentation of this file.
1 #ifndef ChipViewportsWidget_h
2 #define ChipViewportsWidget_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include "ControlPoint.h"
13 
14 #include <QWidget>
15 #include <QPointer>
16 
17 class QAction;
18 class QGridLayout;
19 class QLabel;
20 class QMouseEvent;
21 
22 namespace Isis {
23  class ChipViewport;
24  class ControlMeasure;
25  class ControlNet;
26  class ControlPoint;
27  class Cube;
28  class CubeViewport;
29  class MdiCubeViewport;
30  class SerialNumberList;
31  class Stretch;
32  class UniversalGroundMap;
33 
43  class ChipViewportsWidget : public QWidget {
44  Q_OBJECT
45 
46  public:
48  virtual ~ChipViewportsWidget();
49 
50  bool eventFilter(QObject *object, QEvent *event);
51 
52  signals:
53  void controlPointChanged(QString pointId);
54  void netChanged();
59 
60  public slots:
62  void setControlNet(ControlNet *cnet, QString cnetFilename);
63  void setPoint(ControlPoint *controlPoint);
64 
65 // ChipViewport *referenceChipViewport();
66 
67 // void savePoint();
68 // void colorizeSavePointButton();
69 
70 // void refresh();
71 
72  protected:
73 
74  private slots:
75  void showPoints(bool showPoints);
76  void geomChips(bool geomChips);
77  void clearPoint();
78 // void enterWhatsThisMode();
79 
80  private:
81  void createChipViewports(QWidget *parent);
82  void createActions();
83 
84  void loadPoint();
85 
86  void mousePressEvent(QObject *object, QMouseEvent *event);
87 
88  private:
89 
90  QPointer<QWidget> m_parent;
91 // bool m_addMeasuresButton;
92 
93  QString m_cnetFileName;
94  QPointer<QLabel> m_cnetFileNameLabel;
95  bool m_netChanged;
96 
97  QPointer<QAction> m_closeChipViewportWidget;
98 
99  QPointer<QAction> m_saveChips;
100 
101 
102  QPointer<QLabel> m_ptIdValue;
103 
104  QPointer<ControlPoint> m_controlPoint;
105  SerialNumberList *m_serialNumberList;
106  QPointer<ControlNet> m_controlNet;
107 
108  QPointer<QGridLayout> m_chipViewportsLayout;
109  QList<ChipViewport *> m_chipViewports;
110 // QMap<Cube *, ControlMeasureEditWidget *> m_cubeMeasureEditMap;
111 // QPointer<ControlMeasureEditWidget> m_referenceMeasureEditor;
112  };
113 };
114 #endif
FileName.h
QWidget
Cube.h
Isis::VIEWSIZE
const int VIEWSIZE
Constant representing the length and width of the chip viewports.
Definition: ChipViewportsWidget.cpp:48
MdiCubeViewport.h
Isis::ChipViewportsWidget::ChipViewportsWidget
ChipViewportsWidget(QWidget *parent)
Consructs the ChipViewportsWidget widget.
Definition: ChipViewportsWidget.cpp:56
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
ViewportMainWindow.h
Isis::ChipViewportsWidget::setSerialNumberList
void setSerialNumberList(SerialNumberList *snList)
Definition: ChipViewportsWidget.cpp:150
Isis::ChipViewportsWidget::saveControlNet
void saveControlNet()
SpecialPixel.h
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::ChipViewportsWidget::netChanged
void netChanged()
MainWindow.h
Isis::Chip::TackCube
void TackCube(const double cubeSample, const double cubeLine)
This sets which cube position will be located at the chip tack position.
Definition: Chip.cpp:182
Isis::Stretch
Pixel value mapper.
Definition: Stretch.h:58
QMenu
Longitude.h
Isis::ChipViewportsWidget::eventFilter
bool eventFilter(QObject *object, QEvent *event)
Definition: ChipViewportsWidget.cpp:346
ToolPad.h
Isis::SerialNumberList
Serial Number list generator.
Definition: SerialNumberList.h:64
Isis::Chip::Load
void Load(Cube &cube, const double rotation=0.0, const double scale=1.0, const int band=1)
Load cube data into the Chip.
Definition: Chip.cpp:203
Isis::ChipViewport::setControlNet
void setControlNet(ControlNet *newControlNet)
sets the ControlNet to be used for drawing measure locations
Definition: ChipViewport.h:167
Isis::ControlMeasure::GetCubeSerialNumber
QString GetCubeSerialNumber() const
Return the serial number of the cube containing the coordinate.
Definition: ControlMeasure.cpp:557
Isis::ControlPoint
A single control point.
Definition: ControlPoint.h:354
Isis::ChipViewportsWidget::stretchChipViewport
void stretchChipViewport(Stretch *, CubeViewport *)
ControlNet.h
Latitude.h
Isis::ChipViewportsWidget::setPoint
void setPoint(ControlPoint *controlPoint)
Definition: ChipViewportsWidget.cpp:180
Pvl.h
ControlMeasureEditWidget.h
SerialNumberList.h
Application.h
PvlEditDialog.h
Workspace.h
Isis::ControlMeasure::GetSample
double GetSample() const
Definition: ControlMeasure.cpp:723
ControlPoint.h
Isis::ControlNet
a control network
Definition: ControlNet.h:257
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::CubeViewport
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:122
Isis::ChipViewportsWidget
Scrolled widget for display ChipViewports.
Definition: ChipViewportsWidget.h:43
Camera.h
Isis::ChipViewport
Viewport for Isis Chips.
Definition: ChipViewport.h:71
ChipViewportsWidget.h
Isis::ChipViewportsWidget::newControlNetwork
void newControlNetwork(ControlNet *)
Isis::ChipViewportsWidget::~ChipViewportsWidget
virtual ~ChipViewportsWidget()
Definition: ChipViewportsWidget.cpp:76
Isis::ChipViewport::setChip
void setChip(Chip *chip, Cube *chipCube)
Set chip.
Definition: ChipViewport.cpp:110
IException.h
std
Namespace for the standard library.
Isis::ChipViewportsWidget::measureChanged
void measureChanged()
Isis::Chip
A small chip of data used for pattern matching.
Definition: Chip.h:86
Isis::ControlMeasure::GetLine
double GetLine() const
Definition: ControlMeasure.cpp:690
Isis::ChipViewportsWidget::controlPointChanged
void controlPointChanged(QString pointId)
Isis::ChipViewport::setPoints
void setPoints(bool checked)
Slot to set whether control points are drawn.
Definition: ChipViewport.cpp:556
Isis::SerialNumberList::fileName
QString fileName(const QString &sn)
Return a filename given a serial number.
Definition: SerialNumberList.cpp:399
QObject
ChipViewport.h
ControlMeasureLogData.h
IsisDebug.h
SerialNumber.h
QAction
Isis::ChipViewportsWidget::setControlNet
void setControlNet(ControlNet *cnet, QString cnetFilename)
New control network being edited.
Definition: ChipViewportsWidget.cpp:167
ControlMeasure.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::ControlMeasure
a control measurement
Definition: ControlMeasure.h:175