Isis 3 Programmer Reference
Isis::NewControlPointDialog Class Reference

#include <NewControlPointDialog.h>

Inheritance diagram for Isis::NewControlPointDialog:
Inheritance graph
Collaboration diagram for Isis::NewControlPointDialog:
Collaboration graph

Public Member Functions

 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
 
QString pointId () const
 
int pointType () const
 
void setGroundSource (QStringList groundFiles, int numberShapesWithPoint)
 
void setRadiusSource (QStringList radiusFiles)
 
QString groundSource () const
 
QString radiusSource () const
 
QStringList selectedFiles () const
 
void setFiles (QStringList pointFiles)
 
bool subpixelRegisterPoint ()
 

Private Slots

void pointTypeChanged (QString pointType)
 
void enableOkButton (const QString &text)
 

Private Attributes

ControlNetm_controlNet
 
SerialNumberListm_serialNumberList
 
QLabel * m_ptIdLabel
 
QComboBoxm_pointTypeCombo
 
QComboBoxm_groundSourceCombo
 
QComboBoxm_radiusSourceCombo
 
QRadioButton * m_subpixelRegisterButton
 
QPushButton * m_okButton
 
QLineEdit * m_ptIdEdit
 
QListWidget * m_fileList
 
QStringListm_pointFiles
 

Detailed Description

Author
????-??-?? Tracie Sucharski
History

2008-11-26 Jeannie Walldren - Added functionality to show the last Point ID entered into a new point dialog box.

2010-06-03 Jeannie Walldren - Initialized pointers in constructor. Removed "std::" in header and .cpp files.

2010-12-03 Eric Hyer - Selected points now go to the top!

2016-09-16 Tracie Sucharski - Renamed to NewControlPointDialog in anticipation of creating a parent class that QnetNewPointDialog and MatchToolNewPointDialog can inherit.

2016-10-18 Tracie Sucharski - Added method to return value of the subpixelRegister radio button. If set, all measures in the control point created will be subpixel registered.

2017-07-04 Christopher Combs - Combined functionality of dialogs from qnet, qview and ipce applications by adding bools to toggle on specific elements of the dialog to remove similar classes like QnetNewPointDialog. Fixes #4383.

2018-05-02 Tracie Sucharski - If no shapes available remove option to change point type to "Constrained" or "Fixed". Because pointType combo dependent on having all 3 types to use ControlPoint's enum, change comparisons to check text instead of int values. Add tool tip explaining why point type cannot be changed. Set tool tip on Ok button explaining why it is not enabled. Fixes #5087.

2018-10-05 Tracie Sucharski - Add radius source combo for choosing the radius source. References #5504.

Definition at line 49 of file NewControlPointDialog.h.

Constructor & Destructor Documentation

◆ NewControlPointDialog()

Isis::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

Parameters
controlNetThe control net the new control point will be contained in
serialNumberListThe serial number list corresponding to the controlNet
defaultPointIdThe default pointID, usually empty string
parentParent widget
pointTypeShow the Point Type combo box, default = false
groundSourceShow the Ground Source list, default = false
subpixelRegisterMeasuresShow the check box for sub-pixel registration option, default = false
History

2008-11-26 Jeannie Walldren - Set lastPointIdValue

2010-06-03 Jeannie Walldren - Initialized pointers to null.

2011-03-08 Tracie Sucharski - If there is a saved ID and there is no point in the network with that id, do not disable "ok" button. This allows user to use the same id from a previous point creation if the point was never saved.

Definition at line 44 of file NewControlPointDialog.cpp.

References enableOkButton(), and Isis::ControlPoint::PointTypeToString().

Member Function Documentation

◆ enableOkButton

void Isis::NewControlPointDialog::enableOkButton ( const QString & text)
privateslot
History
2008-11-26 Jeannie Walldren - Set lastPointIdValue to the ptIdValue

Definition at line 283 of file NewControlPointDialog.cpp.

References Isis::ControlNet::ContainsPoint().

Referenced by NewControlPointDialog().

◆ groundSource()

QString Isis::NewControlPointDialog::groundSource ( ) const

Definition at line 194 of file NewControlPointDialog.cpp.

◆ pointId()

QString Isis::NewControlPointDialog::pointId ( ) const

Definition at line 161 of file NewControlPointDialog.cpp.

◆ pointType()

int Isis::NewControlPointDialog::pointType ( ) const

Definition at line 166 of file NewControlPointDialog.cpp.

◆ pointTypeChanged

void Isis::NewControlPointDialog::pointTypeChanged ( QString pointType)
privateslot

Definition at line 204 of file NewControlPointDialog.cpp.

◆ radiusSource()

QString Isis::NewControlPointDialog::radiusSource ( ) const

Definition at line 199 of file NewControlPointDialog.cpp.

◆ selectedFiles()

QStringList Isis::NewControlPointDialog::selectedFiles ( ) const

Definition at line 178 of file NewControlPointDialog.cpp.

◆ setFiles()

void Isis::NewControlPointDialog::setFiles ( QStringList pointFiles)
History

2010-06-03 Jeannie Walldren - Removed "std::" since "using namespace std"

2010-10-29 Tracie Sucharski - Changed std::vector<std::string> to QSringList

Definition at line 252 of file NewControlPointDialog.cpp.

References Isis::SerialNumberList::fileName(), and Isis::SerialNumberList::size().

◆ setGroundSource()

void Isis::NewControlPointDialog::setGroundSource ( QStringList groundFiles,
int numberShapesWithPoint )

Definition at line 212 of file NewControlPointDialog.cpp.

◆ setRadiusSource()

void Isis::NewControlPointDialog::setRadiusSource ( QStringList radiusFiles)

Definition at line 235 of file NewControlPointDialog.cpp.

◆ subpixelRegisterPoint()

bool Isis::NewControlPointDialog::subpixelRegisterPoint ( )

Definition at line 189 of file NewControlPointDialog.cpp.

Member Data Documentation

◆ m_controlNet

ControlNet* Isis::NewControlPointDialog::m_controlNet
private

Definition at line 77 of file NewControlPointDialog.h.

◆ m_fileList

QListWidget* Isis::NewControlPointDialog::m_fileList
private

Definition at line 87 of file NewControlPointDialog.h.

◆ m_groundSourceCombo

QComboBox* Isis::NewControlPointDialog::m_groundSourceCombo
private

Definition at line 82 of file NewControlPointDialog.h.

◆ m_okButton

QPushButton* Isis::NewControlPointDialog::m_okButton
private

Definition at line 85 of file NewControlPointDialog.h.

◆ m_pointFiles

QStringList* Isis::NewControlPointDialog::m_pointFiles
private

Definition at line 88 of file NewControlPointDialog.h.

◆ m_pointTypeCombo

QComboBox* Isis::NewControlPointDialog::m_pointTypeCombo
private

Definition at line 81 of file NewControlPointDialog.h.

◆ m_ptIdEdit

QLineEdit* Isis::NewControlPointDialog::m_ptIdEdit
private

Definition at line 86 of file NewControlPointDialog.h.

◆ m_ptIdLabel

QLabel* Isis::NewControlPointDialog::m_ptIdLabel
private

Definition at line 80 of file NewControlPointDialog.h.

◆ m_radiusSourceCombo

QComboBox* Isis::NewControlPointDialog::m_radiusSourceCombo
private

Definition at line 83 of file NewControlPointDialog.h.

◆ m_serialNumberList

SerialNumberList* Isis::NewControlPointDialog::m_serialNumberList
private

Definition at line 78 of file NewControlPointDialog.h.

◆ m_subpixelRegisterButton

QRadioButton* Isis::NewControlPointDialog::m_subpixelRegisterButton
private

Definition at line 84 of file NewControlPointDialog.h.


The documentation for this class was generated from the following files: