Isis 3 Developer Reference
ChipViewportsWidget.h
Go to the documentation of this file.
1 #ifndef ChipViewportsWidget_h
2 #define ChipViewportsWidget_h
3 
4 #include "ControlPoint.h"
5 
6 #include <QWidget>
7 #include <QPointer>
8 
9 class QAction;
10 class QGridLayout;
11 class QLabel;
12 class QMouseEvent;
13 
14 namespace Isis {
15  class ChipViewport;
16  class ControlMeasure;
17  class ControlNet;
18  class ControlPoint;
19  class Cube;
20  class CubeViewport;
21  class MdiCubeViewport;
22  class SerialNumberList;
23  class Stretch;
24  class UniversalGroundMap;
25 
35  class ChipViewportsWidget : public QWidget {
36  Q_OBJECT
37 
38  public:
40  virtual ~ChipViewportsWidget();
41 
42  bool eventFilter(QObject *object, QEvent *event);
43 
44  signals:
45  void controlPointChanged(QString pointId);
46  void netChanged();
49  void measureChanged();
50  void saveControlNet();
51 
52  public slots:
54  void setControlNet(ControlNet *cnet, QString cnetFilename);
55  void setPoint(ControlPoint *controlPoint);
56 
57 // ChipViewport *referenceChipViewport();
58 
59 // void savePoint();
60 // void colorizeSavePointButton();
61 
62 // void refresh();
63 
64  protected:
65 
66  private slots:
67  void showPoints(bool showPoints);
68  void geomChips(bool geomChips);
69  void clearPoint();
70 // void enterWhatsThisMode();
71 
72  private:
73  void createChipViewports(QWidget *parent);
74  void createActions();
75 
76  void loadPoint();
77 
78  void mousePressEvent(QObject *object, QMouseEvent *event);
79 
80  private:
81 
82  QPointer<QWidget> m_parent;
83 // bool m_addMeasuresButton;
84 
85  QString m_cnetFileName;
86  QPointer<QLabel> m_cnetFileNameLabel;
87  bool m_netChanged;
88 
89  QPointer<QAction> m_closeChipViewportWidget;
90 
91  QPointer<QAction> m_saveChips;
92 
93 
94  QPointer<QLabel> m_ptIdValue;
95 
96  QPointer<ControlPoint> m_controlPoint;
97  SerialNumberList *m_serialNumberList;
98  QPointer<ControlNet> m_controlNet;
99 
100  QPointer<QGridLayout> m_chipViewportsLayout;
101  QList<ChipViewport *> m_chipViewports;
102 // QMap<Cube *, ControlMeasureEditWidget *> m_cubeMeasureEditMap;
103 // QPointer<ControlMeasureEditWidget> m_referenceMeasureEditor;
104  };
105 };
106 #endif
void newControlNetwork(ControlNet *)
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:132
ChipViewportsWidget(QWidget *parent)
Consructs the ChipViewportsWidget widget.
Definition: ChipViewportsWidget.cpp:48
void controlPointChanged(QString pointId)
a control network
Definition: ControlNet.h:271
Pixel value mapper.
Definition: Stretch.h:72
void setSerialNumberList(SerialNumberList *snList)
Definition: ChipViewportsWidget.cpp:142
A single control point.
Definition: ControlPoint.h:369
void setPoint(ControlPoint *controlPoint)
Definition: ChipViewportsWidget.cpp:172
virtual ~ChipViewportsWidget()
Definition: ChipViewportsWidget.cpp:68
void stretchChipViewport(Stretch *, CubeViewport *)
void setControlNet(ControlNet *cnet, QString cnetFilename)
New control network being edited.
Definition: ChipViewportsWidget.cpp:159
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Scrolled widget for display ChipViewports.
Definition: ChipViewportsWidget.h:35
Serial Number list generator.
Definition: SerialNumberList.h:80
bool eventFilter(QObject *object, QEvent *event)
Definition: ChipViewportsWidget.cpp:338