Isis Developer Reference
NewControlPointDialog.h
Go to the documentation of this file.
1 #ifndef NewControlPointDialog_h
2 #define NewControlPointDialog_h
3 
4 #include <QDialog>
5 
6 class QComboBox;
7 class QHBoxLayout;
8 class QLabel;
9 class QLineEdit;
10 class QListWidget;
11 class QPushButton;
12 class QRadioButton;
13 class QString;
14 class QStringList;
15 
16 namespace Isis {
17  class ControlNet;
18  class SerialNumberList;
19 
49  class NewControlPointDialog : public QDialog {
50 
51  Q_OBJECT
52 
53  public:
55  SerialNumberList *serialNumberList,
56  QString defaultPointId,
57  QWidget *parent = 0,
58  bool pointType = false,
59  bool groundSource = false,
60  bool subpixelRegisterMeasures = false);
61 
62  QString pointId() const;
63  int pointType() const;
64  void setGroundSource(QStringList groundFiles, int numberShapesWithPoint);
65  void setRadiusSource(QStringList radiusFiles);
66  QString groundSource() const;
67  QString radiusSource() const;
68  QStringList selectedFiles() const;
69  void setFiles(QStringList pointFiles);
70  bool subpixelRegisterPoint();
71 
72  private slots:
73  void pointTypeChanged(QString pointType);
74  void enableOkButton(const QString &text);
75 
76  private:
77  ControlNet *m_controlNet;
78  SerialNumberList *m_serialNumberList;
79 
80  QLabel *m_ptIdLabel;
81  QComboBox *m_pointTypeCombo;
82  QComboBox *m_groundSourceCombo;
83  QComboBox *m_radiusSourceCombo;
84  QRadioButton *m_subpixelRegisterButton;
85  QPushButton *m_okButton;
86  QLineEdit *m_ptIdEdit;
87  QListWidget *m_fileList;
88  QStringList *m_pointFiles;
89 
90  };
91 };
92 
93 #endif
Isis::NewControlPointDialog::subpixelRegisterPoint
bool subpixelRegisterPoint()
Definition: NewControlPointDialog.cpp:189
Isis::NewControlPointDialog::setGroundSource
void setGroundSource(QStringList groundFiles, int numberShapesWithPoint)
Definition: NewControlPointDialog.cpp:212
QWidget
Isis::ControlPoint::PointTypeToString
static QString PointTypeToString(PointType type)
Obtain a string representation of a given PointType.
Definition: ControlPoint.cpp:1333
Isis::SerialNumberList::size
int size() const
How many serial number / filename combos are in the list.
Definition: SerialNumberList.cpp:384
Isis::NewControlPointDialog::radiusSource
QString radiusSource() const
Definition: NewControlPointDialog.cpp:199
Isis::ControlPoint::PointType
PointType
These are the valid 'types' of point.
Definition: ControlPoint.h:364
Isis::NewControlPointDialog::NewControlPointDialog
NewControlPointDialog(ControlNet *controlNet, SerialNumberList *serialNumberList, QString defaultPointId, QWidget *parent=0, bool pointType=false, bool groundSource=false, bool subpixelRegisterMeasures=false)
@description Create dialog for creating a new Control Point
Definition: NewControlPointDialog.cpp:44
Isis::NewControlPointDialog::groundSource
QString groundSource() const
Definition: NewControlPointDialog.cpp:194
Isis::NewControlPointDialog::selectedFiles
QStringList selectedFiles() const
Definition: NewControlPointDialog.cpp:178
QStringList
Isis::SerialNumberList
Serial Number list generator.
Definition: SerialNumberList.h:64
IString.h
QComboBox
Isis::ControlPoint::Fixed
@ Fixed
A Fixed point is a Control Point whose lat/lon is well established and should not be changed.
Definition: ControlPoint.h:371
ControlNet.h
NewControlPointDialog.h
Isis::ControlPoint::PointTypeCount
static const int PointTypeCount
Definition: ControlPoint.h:386
Isis::ControlPoint::Constrained
@ Constrained
A Constrained point is a Control Point whose lat/lon/radius is somewhat established and should not be...
Definition: ControlPoint.h:376
SerialNumberList.h
ControlPoint.h
Isis::NewControlPointDialog::pointId
QString pointId() const
Definition: NewControlPointDialog.cpp:161
Isis::ControlNet
a control network
Definition: ControlNet.h:257
Isis::NewControlPointDialog
Definition: NewControlPointDialog.h:49
Isis::ControlNet::ContainsPoint
bool ContainsPoint(QString pointId) const
Definition: ControlNet.cpp:951
Isis::NewControlPointDialog::pointType
int pointType() const
Definition: NewControlPointDialog.cpp:166
Isis::NewControlPointDialog::setFiles
void setFiles(QStringList pointFiles)
Definition: NewControlPointDialog.cpp:252
Isis::ControlPoint::Free
@ Free
A Free point is a Control Point that identifies common measurements between two or more cubes.
Definition: ControlPoint.h:384
QDialog
Isis::SerialNumberList::fileName
QString fileName(const QString &sn)
Return a filename given a serial number.
Definition: SerialNumberList.cpp:399
Isis::NewControlPointDialog::setRadiusSource
void setRadiusSource(QStringList radiusFiles)
Definition: NewControlPointDialog.cpp:235
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16