Isis Developer Reference
|
Tool to visualize statistics in an n * m box. More...
#include <StatisticsTool.h>
Signals | |
void | setDn (const QString st) |
Signal to set the DN label to st. | |
void | setSample (const QString st) |
Signal to set the Sample label to st. | |
void | setLine (const QString st) |
Signal to set the Line label to st. | |
Public Member Functions | |
VisualDisplay (QWidget *parent=0) | |
Constructor for visual display. | |
QSize | sizeHint () const |
Size hint for this widget. | |
void | setSamples (int samps) |
Set box sample size. | |
void | setLines (int lines) |
Set box line size. | |
void | updateSize () |
Update the size of the box. | |
void | setPixelData (QVector< QVector< double > > data, int samp, int line) |
Set pixel data and upper left sample/line. | |
Protected Slots | |
void | setBoxSize (int size) |
Set box size in pixels. | |
void | showText (bool b) |
Show/Hide text. | |
void | showPixels (bool b) |
Show/Hide pixels. | |
void | showDeviation (bool b) |
Show/Hide deviation. | |
Protected Member Functions | |
void | paintPixmap () |
Paint the pixmap. | |
void | paintEvent (QPaintEvent *event) |
Paint pixmap to the widget. | |
void | mouseMoveEvent (QMouseEvent *event) |
Called when the mouse moves over this widget. | |
void | leaveEvent (QEvent *event) |
Mouse left widget, update labels. | |
Tool to visualize statistics in an n * m box.
This tool is used to visualize statistics in an n * m box specified by the user. It allows for textual and visual representation of the DN values in the region as well as the standard deviation over the box.
Isis::VisualDisplay::VisualDisplay | ( | QWidget * | parent = 0 | ) |
Constructor for visual display.
parent |
References Isis::Null, paintPixmap(), Isis::Stretch::SetHis(), Isis::Stretch::SetHrs(), Isis::Stretch::SetLis(), Isis::Stretch::SetLrs(), Isis::Stretch::SetMaximum(), Isis::Stretch::SetMinimum(), and Isis::Stretch::SetNull().
|
protected |
|
protected |
Called when the mouse moves over this widget.
event |
References Isis::IsSpecial(), Isis::PixelToString(), setDn(), setLine(), and setSample().
|
protected |
Paint pixmap to the widget.
event |
|
protected |
Paint the pixmap.
References Isis::Statistics::Average(), Isis::IsSpecial(), Isis::Stretch::Map(), Isis::Statistics::Maximum(), Isis::Statistics::Minimum(), Isis::PixelToString(), Isis::Statistics::StandardDeviation(), and Isis::Statistics::TotalPixels().
Referenced by setPixelData(), updateSize(), and VisualDisplay().
|
protectedslot |
|
signal |
|
signal |
void Isis::VisualDisplay::setLines | ( | int | lines | ) |
Set pixel data and upper left sample/line.
data | |
samp | |
line |
References Isis::Statistics::AddData(), Isis::Stretch::AddPair(), Isis::Statistics::BestMaximum(), Isis::Statistics::BestMinimum(), Isis::Stretch::ClearPairs(), paintPixmap(), and Isis::Statistics::Reset().
|
signal |
Signal to set the Sample label to st.
st |
Referenced by leaveEvent(), and mouseMoveEvent().
void Isis::VisualDisplay::setSamples | ( | int | samps | ) |
|
protectedslot |
|
protectedslot |
|
protectedslot |
QSize Isis::VisualDisplay::sizeHint | ( | ) | const |
void Isis::VisualDisplay::updateSize | ( | ) |
Update the size of the box.
References paintPixmap(), and sizeHint().
Referenced by setBoxSize(), setLines(), setSamples(), showDeviation(), showPixels(), and showText().