Isis 3 Developer Reference
MatrixOptions.h
Go to the documentation of this file.
1 #ifndef matrixOptions_h
2 #define matrixOptions_h
3 
4 #include <QColor>
5 #include <QString>
6 #include <QMap>
7 #include <QObject>
8 #include <QStringList>
9 
10 namespace Isis {
11  class CorrelationMatrix;
12  class MatrixSceneWidget;
13 
28  class MatrixOptions : public QObject {
29  Q_OBJECT
30  public:
31 
32  enum FocusOption {
37  };
38 // MatrixOptions(); // give parent? MatrixSceneWidget
39  MatrixOptions(CorrelationMatrix parent, MatrixSceneWidget *scene); // give parent? MatrixSceneWidget
41 
42  // Color Options
43  QColor goodCorrelationColor();
44  QColor badCorrelationColor();
45  double colorTolerance();
46  bool colorScheme();
47 
48  void setColorScheme(bool tolerance);
49  void setColorTolerance(double tolerance);
50  void setGoodCorrelationColor(QColor color);
51  void setBadCorrelationColor(QColor color);
52 
53  // Focus Options
55  double focusValue(); // best, worst, the one selected from tolerance?
56  QString focusImage1();
57  QString focusParameter1();
58  QString focusImage2();
59  QString focusParameter2();
62 
63  void setFocusOption(FocusOption option);
64  void setFocusValue(double value);
67 
68  // Current Correlation Information
69  double currentCorrelation();
70  QString currentImage1();
71  QString currentParameter1();
72  QString currentImage2();
73  QString currentParameter2();
74 
75  void setCurrentCorrelation(double value);
76  void setCurrentImage1(QString current);
77  void setCurrentParameter1(QString current);
78  void setCurrentImage2(QString current);
79  void setCurrentParameter2(QString current);
80 
82 
84  signals:
85  void optionsUpdated();
86 /*
87 
88  public slots:
89  void updateOptions(QString currentData);*/
90 
91  private:
92 
93  CorrelationMatrix *m_parentMatrix;
94  //Color Options
95  bool m_tolerance; // if tolerance is false then we use gradient
96  QColor m_goodColor;
97  QColor m_badColor;
98  double m_colorTolerance;
99 
100  // Focus Options
101  FocusOption m_focusOption;
102 
103  // Specific Parameters
104  QString m_image1;
105  QString m_parameter1;
106  QString m_image2;
107  QString m_parameter2;
108 // QMap<QString, QStringList> m_imagesAndParameters; // pointer the the one in correlation matrix?
109 
110  // Tolerance
111  double m_focusTolSelectedElement;
112  QList<double> m_goodElements;
113  QList<double> m_badElements;
114 
115  // Current Correlation Information
116  double m_currentValue;
117  QString m_currentImg1;
118  QString m_currentParam1;
119  QString m_currentImg2;
120  QString m_currentParam2;
121  };
122 };
123 
124 #endif
QString focusParameter2()
Definition: MatrixOptions.cpp:214
QList< double > badElements()
Definition: MatrixOptions.cpp:232
QMap< QString, QStringList > matrixImgsAndParams()
This slot will be called when a matrix element is clicked on.
Definition: MatrixOptions.cpp:383
void setBadElements(QList< double > badElements)
Definition: MatrixOptions.cpp:268
Definition: MatrixOptions.h:36
CorrelationMatrix * parentMatrix()
Definition: MatrixOptions.cpp:393
This is a container for the correlation matrix that comes from a bundle adjust.
Definition: CorrelationMatrix.h:72
This class holds the matrix color and focus information.
Definition: MatrixOptions.h:28
double colorTolerance()
Threshold for what is considered a bad correlation.
Definition: MatrixOptions.cpp:104
QString currentParameter1()
Definition: MatrixOptions.cpp:299
void setColorTolerance(double tolerance)
Definition: MatrixOptions.cpp:136
void setCurrentParameter2(QString current)
Definition: MatrixOptions.cpp:362
Definition: MatrixOptions.h:34
void setFocusValue(double value)
Definition: MatrixOptions.cpp:250
This widget encompasses the entire matrixDisplay scene.
Definition: MatrixSceneWidget.h:51
void setCurrentImage1(QString current)
Definition: MatrixOptions.cpp:335
QString focusImage2()
Definition: MatrixOptions.cpp:205
double currentCorrelation()
Definition: MatrixOptions.cpp:281
void setGoodElements(QList< double > goodElements)
Definition: MatrixOptions.cpp:259
double focusValue()
The value of the spot on the matrix that we need to focus on.
Definition: MatrixOptions.cpp:178
Definition: MatrixOptions.h:35
void setBadCorrelationColor(QColor color)
Definition: MatrixOptions.cpp:156
QString currentParameter2()
Definition: MatrixOptions.cpp:317
QColor badCorrelationColor()
The color selected for the correlation values that are above the given threshold. ...
Definition: MatrixOptions.cpp:93
~MatrixOptions()
Constructor that sets up all the variables.
Definition: MatrixOptions.cpp:71
void setCurrentImage2(QString current)
Definition: MatrixOptions.cpp:353
MatrixOptions(CorrelationMatrix parent, MatrixSceneWidget *scene)
Default Constructor.
Definition: MatrixOptions.cpp:15
Definition: MatrixOptions.h:33
QString focusParameter1()
Definition: MatrixOptions.cpp:196
void setGoodCorrelationColor(QColor color)
Definition: MatrixOptions.cpp:146
QString focusImage1()
Definition: MatrixOptions.cpp:187
QString currentImage2()
Definition: MatrixOptions.cpp:308
void setFocusOption(FocusOption option)
Definition: MatrixOptions.cpp:241
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
FocusOption
Definition: MatrixOptions.h:32
void setCurrentCorrelation(double value)
Definition: MatrixOptions.cpp:326
bool colorScheme()
Use the green-red gradient if false.
Definition: MatrixOptions.cpp:116
void setColorScheme(bool tolerance)
Definition: MatrixOptions.cpp:126
QList< double > goodElements()
Definition: MatrixOptions.cpp:223
void setCurrentParameter1(QString current)
Definition: MatrixOptions.cpp:344
FocusOption focusOption()
Definition: MatrixOptions.cpp:166
QColor goodCorrelationColor()
The color selected for the correlation values that are below the given threshold. ...
Definition: MatrixOptions.cpp:82
QString currentImage1()
Definition: MatrixOptions.cpp:290