Isis Developer Reference
Isis::VisualDisplay Class Reference

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

#include <StatisticsTool.h>

Inheritance diagram for Isis::VisualDisplay:
Inheritance graph
Collaboration diagram for Isis::VisualDisplay:
Collaboration graph

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...
 

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

◆ VisualDisplay()

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

Member Function Documentation

◆ leaveEvent()

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

Mouse left widget, update labels.

Parameters
event

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

◆ mouseMoveEvent()

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().

◆ paintEvent()

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

Paint pixmap to the widget.

Parameters
event

◆ paintPixmap()

◆ setBoxSize

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

Set box size in pixels.

Parameters
size

References updateSize().

◆ setDn

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

Signal to set the DN label to st.

Parameters
st

Referenced by leaveEvent(), and mouseMoveEvent().

◆ setLine

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

Signal to set the Line label to st.

Parameters
st

Referenced by leaveEvent(), and mouseMoveEvent().

◆ setLines()

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

Set box line size.

Parameters
lines

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

◆ setPixelData()

void Isis::VisualDisplay::setPixelData ( QVector< QVector< double > >  data,
int  samp,
int  line 
)

◆ setSample

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

Signal to set the Sample label to st.

Parameters
st

Referenced by leaveEvent(), and mouseMoveEvent().

◆ setSamples()

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

Set box sample size.

Parameters
samps

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

◆ showDeviation

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

Show/Hide deviation.

Parameters
b

References updateSize().

◆ showPixels

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

Show/Hide pixels.

Parameters
b

References updateSize().

◆ showText

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

Show/Hide text.

Parameters
b

References updateSize().

◆ sizeHint()

QSize Isis::VisualDisplay::sizeHint ( ) const

Size hint for this widget.

Returns
QSize

Referenced by updateSize().

◆ 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: