1 #include "MatrixOptions.h" 8 #include "MatrixSceneWidget.h" 9 #include "MatrixOptionsDialog.h" 19 m_goodColor = Qt::cyan;
20 m_badColor = Qt::magenta;
21 m_colorTolerance = 0.2;
24 m_focusOption = MatrixOptions::Tolerance;
27 m_image1 =
"Specific Img1";
28 m_parameter1 =
"Specific Param1";
29 m_image2 =
"Specific Img2";
30 m_parameter2 =
"Specific Param2";
34 m_focusTolSelectedElement = 1.0;
38 for (
int i = 0; i < 10; i++) {
39 m_goodElements.append(i);
40 m_badElements.append(i + 10);
45 m_currentImg1 =
"Current Image 1";
46 m_currentParam1 =
"Current Parameter 1";
47 m_currentImg2 =
"Current Image 2";
48 m_currentParam2 =
"Current Parameter 2";
51 optionsDialog->setAttribute(Qt::WA_DeleteOnClose);
52 optionsDialog->show();
54 connect(optionsDialog, SIGNAL( optionsUpdated() ),
55 this, SIGNAL( optionsUpdated() ) );
105 return m_colorTolerance;
127 m_tolerance = tolerance;
137 m_colorTolerance = tolerance;
167 return m_focusOption;
179 return m_focusTolSelectedElement;
224 return m_badElements;
233 return m_goodElements;
242 m_focusOption = option;
251 m_focusTolSelectedElement = value;
282 return m_currentValue;
291 return m_currentImg1;
300 return m_currentParam1;
309 return m_currentImg2;
318 return m_currentParam2;
327 m_currentValue = value;
336 m_currentImg1 = current;
345 m_currentParam1= current;
354 m_currentImg2 = current;
363 m_currentParam2 = current;
394 return m_parentMatrix;
QString focusParameter2()
QList< double > badElements()
QMap< QString, QStringList > matrixImgsAndParams()
This slot will be called when a matrix element is clicked on.
void setBadElements(QList< double > badElements)
This widget allows the user to modify the matrix display.
This is a container for the correlation matrix that comes from a bundle adjust.
double colorTolerance()
Threshold for what is considered a bad correlation.
QString currentParameter1()
void setColorTolerance(double tolerance)
void setCurrentParameter2(QString current)
void setFocusValue(double value)
void setCurrentImage1(QString current)
double currentCorrelation()
void setGoodElements(QList< double > goodElements)
double focusValue()
The value of the spot on the matrix that we need to focus on.
void setBadCorrelationColor(QColor color)
QString currentParameter2()
QColor badCorrelationColor()
The color selected for the correlation values that are above the given threshold. ...
~MatrixOptions()
Constructor that sets up all the variables.
void setCurrentImage2(QString current)
MatrixOptions(CorrelationMatrix parent, MatrixSceneWidget *scene)
Default Constructor.
QString focusParameter1()
void setGoodCorrelationColor(QColor color)
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
void setFocusOption(FocusOption option)
Namespace for ISIS/Bullet specific routines.
void setCurrentCorrelation(double value)
bool colorScheme()
Use the green-red gradient if false.
void setColorScheme(bool tolerance)
QList< double > goodElements()
void setCurrentParameter1(QString current)
FocusOption focusOption()
QColor goodCorrelationColor()
The color selected for the correlation values that are below the given threshold. ...
QMap< QString, QStringList > * imagesAndParameters()
Public access for the qmap of images and parameters.