GLIMSView Source Code Documentation

HistogramDlg Class Reference

#include <histogramdlg.h>

Inheritance diagram for HistogramDlg:

Inheritance graph
[legend]

List of all members.


Detailed Description

A user interface dialog that presents the user with histogram information in graph form and allows the user to generate nodes on it to produce a piecewise linear stretch.

This results in contrast stretching in the views. The user can select between the different color channels in the image or all at the same time.

Definition at line 102 of file histogramdlg.h.


Public Slots

void changeToRed ()
void changeToBlue ()
void changeToGreen ()
void changeToAll ()
void changeDataSource ()
void bestFit ()
void mergeAll ()
void clearPoints ()
void undoToLast ()
void redoToPrev ()
void reloadHistSet ()
void calcPercent ()

Public Member Functions

 HistogramDlg (QWidget *parent)
 HistogramDlg (QWidget *parent, vector< HistogramDataSource * > hds, HistogramUser *huser=NULL)
void mousePressEvent (QMouseEvent *)
void mouseReleaseEvent (QMouseEvent *)
void mouseMoveEvent (QMouseEvent *)
void mouseDoubleClickEvent (QMouseEvent *)
void paintEvent (QPaintEvent *pe)
void resizeEvent (QResizeEvent *re)
void addHDS (HistogramDataSource *hds)
void setHDS (vector< HistogramDataSource * > hds)
void setUser (HistogramUser *user)

Protected Member Functions

DspDims calcDspDims ()
void init ()
void buildMenuBar ()
bool mouseInGraph ()
int mouseOnPoint ()
void createDataPnts ()
void alertUser ()
void initPntsFromUser ()

Protected Attributes

QMenuBar * mMenuBar
 the menubar
MouseState mMouse
 mouse state
StretchLineSet mSLSet
 stretch lines
HDSSet mHDS
 datasource set
HistogramUsermHistUser
 the user of this histogram
vector< QAction * > mPercentAct
 the stretch % selection in menu
QActionmMergeAct
 the merge toggle action in menu
QActionGroup * mDSActGroup
QPopupMenu * mDSMenu
vector< QAction * > mColorAct
 the color selection action in menu
DspDims mDspDims
 display dimensions
DspDims mOldDspDims
 previous display dimension if resized

Constructor & Destructor Documentation

HistogramDlg::HistogramDlg ( QWidget parent  ) 

Definition at line 3 of file histogramdlg.cpp.

References init(), and mHistUser.

Here is the call graph for this function:

HistogramDlg::HistogramDlg ( QWidget parent,
vector< HistogramDataSource * >  hds,
HistogramUser huser = NULL 
)

Definition at line 11 of file histogramdlg.cpp.

References HDSSet::HDS, mHDS, and mHistUser.


Member Function Documentation

DspDims HistogramDlg::calcDspDims (  )  [protected]

void HistogramDlg::init (  )  [protected]

void HistogramDlg::buildMenuBar (  )  [protected]

bool HistogramDlg::mouseInGraph (  )  [protected]

int HistogramDlg::mouseOnPoint (  )  [protected]

void HistogramDlg::createDataPnts (  )  [protected]

void HistogramDlg::alertUser (  )  [protected]

void HistogramDlg::initPntsFromUser (  )  [protected]

Definition at line 952 of file histogramdlg.cpp.

References HistogramUser::getHistPnts(), StretchLineSet::lineSet, mHistUser, mSLSet, and StretchLineSet::redoSet.

Referenced by init().

Here is the call graph for this function:

void HistogramDlg::mousePressEvent ( QMouseEvent *   ) 

Definition at line 424 of file histogramdlg.cpp.

References HDSSet::curHDS, HDSSet::HDS, mHDS, mMouse, mouseOnPoint(), and MouseState::mPointMoving.

Here is the call graph for this function:

void HistogramDlg::mouseReleaseEvent ( QMouseEvent *   ) 

Definition at line 430 of file histogramdlg.cpp.

References alertUser(), HDSSet::curHDS, HDSSet::HDS, StretchLineSet::isChanging, mHDS, mMouse, MouseState::mPointMoving, and mSLSet.

Here is the call graph for this function:

void HistogramDlg::mouseMoveEvent ( QMouseEvent *  me  ) 

void HistogramDlg::mouseDoubleClickEvent ( QMouseEvent *   ) 

void HistogramDlg::paintEvent ( QPaintEvent *  pe  ) 

void HistogramDlg::resizeEvent ( QResizeEvent *  re  ) 

void HistogramDlg::addHDS ( HistogramDataSource hds  ) 

void HistogramDlg::setHDS ( vector< HistogramDataSource * >  hds  ) 

Definition at line 595 of file histogramdlg.cpp.

References HDSSet::HDS, and mHDS.

void HistogramDlg::setUser ( HistogramUser user  ) 

Definition at line 600 of file histogramdlg.cpp.

References mHistUser.

Referenced by MainToolbar::MainToolbar().

void HistogramDlg::changeToRed (  )  [slot]

void HistogramDlg::changeToBlue (  )  [slot]

void HistogramDlg::changeToGreen (  )  [slot]

void HistogramDlg::changeToAll (  )  [slot]

Definition at line 642 of file histogramdlg.cpp.

void HistogramDlg::changeDataSource (  )  [slot]

void HistogramDlg::bestFit (  )  [slot]

Definition at line 744 of file histogramdlg.cpp.

Referenced by buildMenuBar().

void HistogramDlg::mergeAll (  )  [slot]

void HistogramDlg::clearPoints (  )  [slot]

void HistogramDlg::undoToLast (  )  [slot]

void HistogramDlg::redoToPrev (  )  [slot]

void HistogramDlg::reloadHistSet (  )  [slot]

Definition at line 1010 of file histogramdlg.cpp.

References changeDataSource().

Referenced by View::paintEvent().

void HistogramDlg::calcPercent (  )  [slot]


Member Data Documentation

QMenuBar* HistogramDlg::mMenuBar [protected]

the menubar

Definition at line 107 of file histogramdlg.h.

Referenced by buildMenuBar(), and calcDspDims().

the user of this histogram

Definition at line 113 of file histogramdlg.h.

Referenced by alertUser(), HistogramDlg(), initPntsFromUser(), and setUser().

vector<QAction*> HistogramDlg::mPercentAct [protected]

the stretch % selection in menu

Definition at line 115 of file histogramdlg.h.

Referenced by buildMenuBar(), and calcPercent().

the merge toggle action in menu

Definition at line 116 of file histogramdlg.h.

Referenced by buildMenuBar(), calcPercent(), and changeDataSource().

QActionGroup* HistogramDlg::mDSActGroup [protected]

Definition at line 117 of file histogramdlg.h.

Referenced by addHDS(), and buildMenuBar().

QPopupMenu* HistogramDlg::mDSMenu [protected]

Definition at line 118 of file histogramdlg.h.

Referenced by addHDS(), and buildMenuBar().

vector<QAction*> HistogramDlg::mColorAct [protected]

the color selection action in menu

Definition at line 119 of file histogramdlg.h.

Referenced by buildMenuBar(), and changeDataSource().

display dimensions

Definition at line 121 of file histogramdlg.h.

Referenced by alertUser(), calcPercent(), createDataPnts(), mouseInGraph(), mouseMoveEvent(), paintEvent(), and resizeEvent().

previous display dimension if resized

Definition at line 122 of file histogramdlg.h.

Referenced by resizeEvent().


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

Home | Search | Disclaimers & Privacy | Contact Us
GLIMSView Maintainer: dsoltesz@usgs.gov