Isis 3.0
Back | Home
Isis::ControlMeasureEditWidget Class Reference

Point Editor Widget. More...

#include <ControlMeasureEditWidget.h>

Inherits QWidget.

Public Slots

void setPoint (ControlPoint *editPoint, SerialNumberList *snList)
 
void setLeftMeasure (ControlMeasure *leftMeasure, Cube *leftCube, QString pointId)
 Set the measure displayed in the left ChipViewport. More...
 
void setRightMeasure (ControlMeasure *rightMeasure, Cube *rightCube, QString pointId)
 Set the measure displayed in the right ChipViewport. More...
 
void colorizeSaveButton ()
 Turn "Save Measure" button text to red. More...
 
void refreshChips ()
 
void saveChips ()
 Slot to save registration chips to files and fire off qview. More...
 

Signals

void updateLeftView (double sample, double line)
 
void updateRightView (double sample, double line)
 
void measureSaved ()
 
void newControlNetwork (ControlNet *)
 
void stretchChipViewport (Stretch *, CubeViewport *)
 

Public Member Functions

 ControlMeasureEditWidget (QWidget *parent=0, bool allowLeftMouse=false, bool useGeometry=true)
 Constructs a ControlMeasureEditWidget widget. More...
 
 ~ControlMeasureEditWidget ()
 Destructor. More...
 
QString templateFileName ()
 Returns the template filename used for auto-registration. More...
 
bool setTemplateFile (QString)
 Allows user to choose a new template file by opening a window from which to select a filename. More...
 
void allowLeftMouse (bool allowMouse)
 Set the option that allows mouse movements in the left ChipViewport. More...
 

Detailed Description

Point Editor Widget.

Author
2008-09-09 Tracie Sucharski

Constructor & Destructor Documentation

Isis::ControlMeasureEditWidget::ControlMeasureEditWidget ( QWidget parent = 0,
bool  allowLeftMouse = false,
bool  useGeometry = true 
)

Constructs a ControlMeasureEditWidget widget.

Parameters
parent[in]Parent of widget
allowLeftMouse[in]Allow/Disallow mouse events on Left ChipViewport
useGeometry[in]Allow/Disallow geometry and rotation on right ChipViewport
Exceptions
IException::Io"Cannot create AutoRegFactory. As a result, sub-pixel registration will not work."
Author
Tracie Sucharski

References _FILEINFO_, allowLeftMouse(), Isis::AutoRegFactory::Create(), Isis::IException::Io, and Isis::IException::toString().

Isis::ControlMeasureEditWidget::~ControlMeasureEditWidget ( )

Destructor.

Member Function Documentation

void Isis::ControlMeasureEditWidget::allowLeftMouse ( bool  allowMouse)

Set the option that allows mouse movements in the left ChipViewport.

Parameters
allowMouseWhether or not to allow mouse event on left chip viewport
Author
Tracie Sucharski

Referenced by ControlMeasureEditWidget().

void Isis::ControlMeasureEditWidget::colorizeSaveButton ( )
slot

Turn "Save Measure" button text to red.

Author
2011-06-14 Tracie Sucharski
void Isis::ControlMeasureEditWidget::measureSaved ( )
signal
void Isis::ControlMeasureEditWidget::newControlNetwork ( ControlNet _t1)
signal
void Isis::ControlMeasureEditWidget::refreshChips ( )
slot
void Isis::ControlMeasureEditWidget::saveChips ( )
slot
void Isis::ControlMeasureEditWidget::setLeftMeasure ( ControlMeasure leftMeasure,
Cube leftCube,
QString  pointId 
)
slot

Set the measure displayed in the left ChipViewport.

Parameters
leftMeasure[in]Measure displayed in left ChipViewport
leftCube[in]Cube of measure displayed in left ChipViewport
pointId[in]Control point id associated with the left measure
Author
Tracie Sucharski

References Isis::ControlMeasure::GetLine(), Isis::ControlMeasure::GetSample(), Isis::Chip::Load(), Isis::ChipViewport::setChip(), and Isis::Chip::TackCube().

void Isis::ControlMeasureEditWidget::setPoint ( ControlPoint editPoint,
SerialNumberList snList 
)
slot
void Isis::ControlMeasureEditWidget::setRightMeasure ( ControlMeasure rightMeasure,
Cube rightCube,
QString  pointId 
)
slot

Set the measure displayed in the right ChipViewport.

Parameters
rightMeasure[in]Measure displayed in right ChipViewport
rightCube[in]Cube of measure displayed in right ChipViewport
pointId[in]Control point id associated with the measure
Author
Tracie Sucharski

References _FILEINFO_, Isis::ControlMeasure::GetLine(), Isis::ControlMeasure::GetSample(), Isis::Chip::Load(), Isis::ChipViewport::setChip(), Isis::Chip::TackCube(), Isis::IException::toString(), and Isis::IException::User.

bool Isis::ControlMeasureEditWidget::setTemplateFile ( QString  fn)

Allows user to choose a new template file by opening a window from which to select a filename.

This file is then registered and set as the new template.

Parameters
fnTemplate filename
Author
Tracie Sucharski

References _FILEINFO_, Isis::AutoRegFactory::Create(), Isis::IException::Io, and Isis::IException::toString().

void Isis::ControlMeasureEditWidget::stretchChipViewport ( Stretch _t1,
CubeViewport _t2 
)
signal
QString Isis::ControlMeasureEditWidget::templateFileName ( )
inline

Returns the template filename used for auto-registration.

Returns
QString Template filename
void Isis::ControlMeasureEditWidget::updateLeftView ( double  sample,
double  line 
)
signal
void Isis::ControlMeasureEditWidget::updateRightView ( double  sample,
double  line 
)
signal

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

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:35:18