Isis 3 Programmer Reference
MatrixOptions.h
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 {
33  Best,
34  Worst,
35  Specific,
36  Tolerance
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
54  FocusOption focusOption();
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 
83  CorrelationMatrix *parentMatrix();
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
Isis::MatrixOptions::setFocusValue
void setFocusValue(double value)
Definition: MatrixOptions.cpp:250
Isis::MatrixOptions::setBadElements
void setBadElements(QList< double > badElements)
Definition: MatrixOptions.cpp:268
Isis::MatrixOptions::setCurrentImage1
void setCurrentImage1(QString current)
Definition: MatrixOptions.cpp:335
Isis::MatrixOptions::colorScheme
bool colorScheme()
Use the green-red gradient if false.
Definition: MatrixOptions.cpp:116
QList< double >
Isis::MatrixOptions::focusOption
FocusOption focusOption()
Definition: MatrixOptions.cpp:166
Isis::MatrixOptions::badElements
QList< double > badElements()
Definition: MatrixOptions.cpp:232
Isis::MatrixOptions::setCurrentParameter1
void setCurrentParameter1(QString current)
Definition: MatrixOptions.cpp:344
Isis::MatrixOptions::setGoodElements
void setGoodElements(QList< double > goodElements)
Definition: MatrixOptions.cpp:259
Isis::MatrixOptions::goodCorrelationColor
QColor goodCorrelationColor()
The color selected for the correlation values that are below the given threshold.
Definition: MatrixOptions.cpp:82
Isis::MatrixOptions::colorTolerance
double colorTolerance()
Threshold for what is considered a bad correlation.
Definition: MatrixOptions.cpp:104
Isis::MatrixOptions::focusImage2
QString focusImage2()
Definition: MatrixOptions.cpp:205
Isis::MatrixOptions::currentParameter1
QString currentParameter1()
Definition: MatrixOptions.cpp:299
Isis::MatrixOptions
This class holds the matrix color and focus information.
Definition: MatrixOptions.h:28
Isis::MatrixOptions::focusParameter1
QString focusParameter1()
Definition: MatrixOptions.cpp:196
Isis::MatrixOptions::setCurrentImage2
void setCurrentImage2(QString current)
Definition: MatrixOptions.cpp:353
Isis::MatrixOptions::setCurrentParameter2
void setCurrentParameter2(QString current)
Definition: MatrixOptions.cpp:362
Isis::MatrixOptions::MatrixOptions
MatrixOptions(CorrelationMatrix parent, MatrixSceneWidget *scene)
Default Constructor.
Definition: MatrixOptions.cpp:15
Isis::CorrelationMatrix
This is a container for the correlation matrix that comes from a bundle adjust.
Definition: CorrelationMatrix.h:61
Isis::MatrixOptions::setBadCorrelationColor
void setBadCorrelationColor(QColor color)
Definition: MatrixOptions.cpp:156
Isis::MatrixOptions::focusImage1
QString focusImage1()
Definition: MatrixOptions.cpp:187
Isis::MatrixOptions::currentCorrelation
double currentCorrelation()
Definition: MatrixOptions.cpp:281
Isis::MatrixOptions::setCurrentCorrelation
void setCurrentCorrelation(double value)
Definition: MatrixOptions.cpp:326
Isis::MatrixOptions::setColorTolerance
void setColorTolerance(double tolerance)
Definition: MatrixOptions.cpp:136
Isis::MatrixOptions::setColorScheme
void setColorScheme(bool tolerance)
Definition: MatrixOptions.cpp:126
Isis::MatrixOptions::currentImage2
QString currentImage2()
Definition: MatrixOptions.cpp:308
Isis::MatrixOptions::currentParameter2
QString currentParameter2()
Definition: MatrixOptions.cpp:317
Isis::MatrixOptions::focusValue
double focusValue()
The value of the spot on the matrix that we need to focus on.
Definition: MatrixOptions.cpp:178
Isis::MatrixSceneWidget
This widget encompasses the entire matrixDisplay scene.
Definition: MatrixSceneWidget.h:51
Isis::MatrixOptions::~MatrixOptions
~MatrixOptions()
Constructor that sets up all the variables.
Definition: MatrixOptions.cpp:71
Isis::MatrixOptions::currentImage1
QString currentImage1()
Definition: MatrixOptions.cpp:290
Isis::MatrixOptions::focusParameter2
QString focusParameter2()
Definition: MatrixOptions.cpp:214
Isis::MatrixOptions::setGoodCorrelationColor
void setGoodCorrelationColor(QColor color)
Definition: MatrixOptions.cpp:146
Isis::MatrixOptions::goodElements
QList< double > goodElements()
Definition: MatrixOptions.cpp:223
Isis::MatrixOptions::matrixImgsAndParams
QMap< QString, QStringList > matrixImgsAndParams()
This slot will be called when a matrix element is clicked on.
Definition: MatrixOptions.cpp:383
QMap< QString, QStringList >
Isis::MatrixOptions::badCorrelationColor
QColor badCorrelationColor()
The color selected for the correlation values that are above the given threshold.
Definition: MatrixOptions.cpp:93
QObject
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::MatrixOptions::setFocusOption
void setFocusOption(FocusOption option)
Definition: MatrixOptions.cpp:241