USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::VisualDisplay Class Reference

Tool to visualize statistics in an n * m box. More...

#include <StatisticsTool.h>

Inherits QWidget.

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.
 

Detailed Description

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.

Author
2009-10-07 Noah Hilt

Constructor & Destructor Documentation

Isis::VisualDisplay::VisualDisplay ( QWidget parent = 0)

Member Function Documentation

void Isis::VisualDisplay::leaveEvent ( QEvent *  event)
protected

Mouse left widget, update labels.

Parameters
event

References setDn(), setLine(), and setSample().

void Isis::VisualDisplay::mouseMoveEvent ( QMouseEvent *  event)
protected

Called when the mouse moves over this widget.

Parameters
event

References Isis::IsSpecial(), Isis::PixelToString(), setDn(), setLine(), and setSample().

void Isis::VisualDisplay::paintEvent ( QPaintEvent *  event)
protected

Paint pixmap to the widget.

Parameters
event
void Isis::VisualDisplay::setBoxSize ( int  size)
protectedslot

Set box size in pixels.

Parameters
size

References updateSize().

void Isis::VisualDisplay::setDn ( const QString  st)
signal

Signal to set the DN label to st.

Parameters
st

Referenced by leaveEvent(), and mouseMoveEvent().

void Isis::VisualDisplay::setLine ( const QString  st)
signal

Signal to set the Line label to st.

Parameters
st

Referenced by leaveEvent(), and mouseMoveEvent().

void Isis::VisualDisplay::setLines ( int  lines)

Set box line size.

Parameters
lines

References Isis::Statistics::Reset(), and updateSize().

void Isis::VisualDisplay::setPixelData ( QVector< QVector< double > >  data,
int  samp,
int  line 
)
void Isis::VisualDisplay::setSample ( const QString  st)
signal

Signal to set the Sample label to st.

Parameters
st

Referenced by leaveEvent(), and mouseMoveEvent().

void Isis::VisualDisplay::setSamples ( int  samps)

Set box sample size.

Parameters
samps

References Isis::Statistics::Reset(), and updateSize().

void Isis::VisualDisplay::showDeviation ( bool  b)
protectedslot

Show/Hide deviation.

Parameters
b

References updateSize().

void Isis::VisualDisplay::showPixels ( bool  b)
protectedslot

Show/Hide pixels.

Parameters
b

References updateSize().

void Isis::VisualDisplay::showText ( bool  b)
protectedslot

Show/Hide text.

Parameters
b

References updateSize().

QSize Isis::VisualDisplay::sizeHint ( ) const

Size hint for this widget.

Returns
QSize

Referenced by updateSize().

void Isis::VisualDisplay::updateSize ( )

Update the size of the box.

References paintPixmap(), and sizeHint().

Referenced by setBoxSize(), setLines(), setSamples(), showDeviation(), showPixels(), and showText().


The documentation for this class was generated from the following files: