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. More... | |
void | setSample (const QString st) |
Signal to set the Sample label to st. More... | |
void | setLine (const QString st) |
Signal to set the Line label to st. More... | |
Public Member Functions | |
VisualDisplay (QWidget *parent=0) | |
Constructor for visual display. More... | |
QSize | sizeHint () const |
Size hint for this widget. More... | |
void | setSamples (int samps) |
Set box sample size. More... | |
void | setLines (int lines) |
Set box line size. More... | |
void | updateSize () |
Update the size of the box. More... | |
void | setPixelData (QVector< QVector< double > > data, int samp, int line) |
Set pixel data and upper left sample/line. More... | |
Protected Slots | |
void | setBoxSize (int size) |
Set box size in pixels. More... | |
void | showText (bool b) |
Show/Hide text. More... | |
void | showPixels (bool b) |
Show/Hide pixels. More... | |
void | showDeviation (bool b) |
Show/Hide deviation. More... | |
Protected Member Functions | |
void | paintPixmap () |
Paint the pixmap. More... | |
void | paintEvent (QPaintEvent *event) |
Paint pixmap to the widget. More... | |
void | mouseMoveEvent (QMouseEvent *event) |
Called when the mouse moves over this widget. More... | |
void | leaveEvent (QEvent *event) |
Mouse left widget, update labels. More... | |
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::Histogram::AddData(), Isis::Statistics::AddData(), Isis::Stretch::AddPair(), Isis::Statistics::BestMaximum(), Isis::Statistics::BestMinimum(), Isis::Stretch::ClearPairs(), paintPixmap(), Isis::Histogram::Percent(), 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().