Isis 3.0
Home
Isis::ControlPointEditWidget Class Reference

Gui for editing ControlPoint. More...

#include <ControlPointEditWidget.h>

Inherits QWidget.

Public Types

enum  MeasureColumns {
  FILENAME, CUBESN, SAMPLE, LINE,
  APRIORISAMPLE, APRIORILINE, SAMPLERESIDUAL, LINERESIDUAL,
  RESIDUALMAGNITUDE, SAMPLESHIFT, LINESHIFT, PIXELSHIFT,
  GOODNESSOFFIT, IGNORED, EDITLOCK, TYPE
}
 Measure column values for the measure table. More...
 

Public Slots

void setSerialNumberList (SerialNumberList *snList)
 Set the serial number list. More...
 
void setControl (Control *control)
 New control network being edited. More...
 
void setEditPoint (ControlPoint *controlPoint)
 Slot called by Directory to set the control point for editing. More...
 
void deletePoint (ControlPoint *controlPoint)
 
void createControlPoint (double latitude, double longitude, Cube *cube=0, bool isGroundSource=false)
 
void updatePointInfo (ControlPoint &updatedPoint)
 Update the current editPoint information in the Point Editor labels. More...
 

Signals

void controlPointChanged (QString pointId)
 
void controlPointAdded (QString pointId)
 
void ignorePointChanged ()
 
void ignoreLeftChanged ()
 
void ignoreRightChanged ()
 
void netChanged ()
 
void newControlNetwork (ControlNet *)
 
void stretchChipViewport (Stretch *, CubeViewport *)
 
void measureChanged ()
 
void saveControlNet ()
 

Public Member Functions

 ControlPointEditWidget (Directory *directory, QWidget *parent, bool addMeasures=false)
 Consructs the ControlPointEditWidget widget. More...
 
virtual ~ControlPointEditWidget ()
 
QString measureColumnToString (MeasureColumns column)
 Gets a string representation of a measure column. More...
 

Static Public Attributes

static const int NUMCOLUMNS = 16
 Number of entries (columns) in the measure table. More...
 

Protected Member Functions

bool eventFilter (QObject *o, QEvent *e)
 Event filter for ControlPointEditWidget. More...
 

Detailed Description

Gui for editing ControlPoint.

Author
2014-06-25 Tracie Sucharski

Member Enumeration Documentation

Measure column values for the measure table.

Enumerator
FILENAME 
CUBESN 
SAMPLE 
LINE 
APRIORISAMPLE 
APRIORILINE 
SAMPLERESIDUAL 
LINERESIDUAL 
RESIDUALMAGNITUDE 
SAMPLESHIFT 
LINESHIFT 
PIXELSHIFT 
GOODNESSOFFIT 
IGNORED 
EDITLOCK 
TYPE 

Constructor & Destructor Documentation

Isis::ControlPointEditWidget::ControlPointEditWidget ( Directory directory,
QWidget parent,
bool  addMeasures = false 
)

Consructs the ControlPointEditWidget widget.

Parameters
parentPointer to the parent widget for the ControlPointEditWidget
addMeasuresWhether or not to add the Add Measure to Point button

References newControlNetwork().

Isis::ControlPointEditWidget::~ControlPointEditWidget ( )
virtual

Member Function Documentation

void Isis::ControlPointEditWidget::controlPointAdded ( QString  pointId)
signal

Referenced by createControlPoint().

void Isis::ControlPointEditWidget::controlPointChanged ( QString  pointId)
signal

Referenced by deletePoint().

void Isis::ControlPointEditWidget::createControlPoint ( double  latitude,
double  longitude,
Cube cube = 0,
bool  isGroundSource = false 
)
slot

References Isis::ControlPoint::Add(), Isis::Shape::Basemap, Isis::ControlPoint::SurfacePointSource::Basemap, controlPointAdded(), Isis::Shape::cube(), Isis::Shape::Dem, Isis::DisplayProperties::displayName(), Isis::Shape::displayProperties(), Isis::SerialNumberList::fileName(), Isis::Shape::fileName(), Isis::SerialNumberList::fileNameIndex(), Isis::ControlPoint::Free, Isis::ControlPoint::GetId(), Isis::NewControlPointDialog::groundSource(), Isis::Camera::Line(), Isis::ControlMeasure::Manual, Isis::NewControlPointDialog::pointId(), Isis::NewControlPointDialog::pointType(), Isis::Directory::project(), Isis::Camera::Sample(), Isis::NewControlPointDialog::selectedFiles(), Isis::SerialNumberList::serialNumber(), Isis::ControlMeasure::SetAprioriLine(), Isis::ControlMeasure::SetAprioriSample(), Isis::ControlPoint::SetAprioriSurfacePointSource(), Isis::ControlPoint::SetAprioriSurfacePointSourceFile(), Isis::ControlMeasure::SetCamera(), Isis::ControlMeasure::SetChooserName(), Isis::ControlPoint::SetChooserName(), Isis::ControlMeasure::SetCoordinate(), Isis::ControlMeasure::SetCubeSerialNumber(), setEditPoint(), Isis::NewControlPointDialog::setFiles(), Isis::NewControlPointDialog::setGroundSource(), Isis::ControlMeasure::SetType(), Isis::ControlPoint::SetType(), Isis::UniversalGroundMap::SetUniversalGround(), Isis::Camera::SetUniversalGround(), Isis::Project::shapes(), Isis::Shape::shapeType(), Isis::SerialNumberList::size(), Isis::Shape::Unprojected, and Isis::Application::UserName().

Referenced by Isis::Directory::createControlPoint().

bool Isis::ControlPointEditWidget::eventFilter ( QObject o,
QEvent *  e 
)
protected

Event filter for ControlPointEditWidget.

Determines whether to update left or right measure info.

Parameters
oPointer to QObject
ePointer to QEvent
Returns
bool Indicates whether the event type is "Leave".
void Isis::ControlPointEditWidget::ignoreLeftChanged ( )
signal
void Isis::ControlPointEditWidget::ignorePointChanged ( )
signal
void Isis::ControlPointEditWidget::ignoreRightChanged ( )
signal
void Isis::ControlPointEditWidget::measureChanged ( )
signal
QString Isis::ControlPointEditWidget::measureColumnToString ( ControlPointEditWidget::MeasureColumns  column)

Gets a string representation of a measure column.

Parameters
columnMeasureColumn to get the string representation of
Exceptions
IException::Programmer"Invalid measure column passed to measureColumnToString"
Returns
QString String representation of the passed measure column

References _FILEINFO_, APRIORILINE, APRIORISAMPLE, CUBESN, EDITLOCK, FILENAME, GOODNESSOFFIT, IGNORED, LINE, LINERESIDUAL, LINESHIFT, PIXELSHIFT, Isis::IException::Programmer, RESIDUALMAGNITUDE, SAMPLE, SAMPLERESIDUAL, SAMPLESHIFT, and TYPE.

void Isis::ControlPointEditWidget::netChanged ( )
signal

Referenced by deletePoint().

void Isis::ControlPointEditWidget::newControlNetwork ( ControlNet _t1)
signal
void Isis::ControlPointEditWidget::saveControlNet ( )
signal
void Isis::ControlPointEditWidget::setControl ( Control control)
slot

New control network being edited.

Parameters
cnet(ControlNet *) The control network to edit
filename(Qstring) Need filename to write to widget label. ControlNet doesn't contain a filename.

References Isis::Control::controlNet(), Isis::Control::fileName(), and newControlNetwork().

Referenced by Isis::Directory::addControlPointEditView().

void Isis::ControlPointEditWidget::setEditPoint ( ControlPoint controlPoint)
slot

Slot called by Directory to set the control point for editing.

Parameters
controlPointPointer to the ControlPoint to edit

Referenced by createControlPoint(), and Isis::Directory::modifyControlPoint().

void Isis::ControlPointEditWidget::setSerialNumberList ( SerialNumberList snList)
slot

Set the serial number list.

Parameters
snListPointer to the SerialNumberList

Referenced by Isis::Directory::addControlPointEditView().

void Isis::ControlPointEditWidget::stretchChipViewport ( Stretch _t1,
CubeViewport _t2 
)
signal
void Isis::ControlPointEditWidget::updatePointInfo ( ControlPoint updatedPoint)
slot

Update the current editPoint information in the Point Editor labels.

Parameters
updatedPointReference to the ControlPoint to edit information on
Author
2011-05-05 Tracie Sucharski

Instead of a single method, should slots be separate for each updated point parameter, ie. ignore, editLock, apriori, etc. This is not robust, if other point attributes are changed outside of ControlPointEditWidget, this method will need to be updated. *** THIS METHOD SHOULD GO AWAY WHEN CONTROLpOINTEDITOR IS INCLUDED IN MATCH *** TODO: THIS IS ONLY CONNECTED IN qnet.cpp FROM THE NAV TOOL. REFACTOR WILL NEED TO CONNECT CORRECT SIGNALS FROM OTHER WIDGETS TO THIS SLOT.

References Isis::ControlPoint::GetId(), Isis::ControlPoint::IsEditLocked(), and Isis::ControlPoint::IsIgnored().

Member Data Documentation

const int Isis::ControlPointEditWidget::NUMCOLUMNS = 16
static

Number of entries (columns) in the measure table.


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