GLIMSView Source Code Documentation

HistogramUser Class Reference

#include <histogramuser.h>

Inheritance diagram for HistogramUser:

Inheritance graph
[legend]

List of all members.


Detailed Description

This provides routines to use HistogramDlg settings from the user.

A look up table generation routine is provided that uses the points linear stretch points from the HistogramDlg. A scaling routine is provided that scales a char array with the lookup table.

Definition at line 16 of file histogramuser.h.


Signals

void ctableChanged ()

Public Member Functions

 HistogramUser ()
void reset ()
virtual ~HistogramUser ()
virtual const QPointArray * getHistPnts ()
virtual void setHistPnts (QPointArray pnts[3])
void scaleVal (unsigned char *data, int len)

Protected Member Functions

virtual void calcCTable ()

Protected Attributes

QPointArray mPnts [3]
unsigned char mCTable [3][256]

Constructor & Destructor Documentation

HistogramUser::HistogramUser (  )  [inline]

Definition at line 118 of file histogramuser.h.

References reset().

Here is the call graph for this function:

virtual HistogramUser::~HistogramUser (  )  [inline, virtual]

Definition at line 131 of file histogramuser.h.


Member Function Documentation

virtual void HistogramUser::calcCTable (  )  [inline, protected, virtual]

Definition at line 22 of file histogramuser.h.

References mCTable, and mPnts.

Referenced by setHistPnts().

void HistogramUser::reset (  )  [inline]

Definition at line 122 of file histogramuser.h.

References mCTable.

Referenced by HistogramUser().

virtual const QPointArray* HistogramUser::getHistPnts (  )  [inline, virtual]

Definition at line 134 of file histogramuser.h.

References mPnts.

Referenced by HistogramDlg::initPntsFromUser().

virtual void HistogramUser::setHistPnts ( QPointArray  pnts[3]  )  [inline, virtual]

Definition at line 138 of file histogramuser.h.

References calcCTable(), ctableChanged(), and mPnts.

Referenced by HistogramDlg::alertUser().

Here is the call graph for this function:

void HistogramUser::scaleVal ( unsigned char *  data,
int  len 
) [inline]

Definition at line 146 of file histogramuser.h.

References mCTable.

Referenced by View::paintEvent().

void HistogramUser::ctableChanged (  )  [signal]

Referenced by setHistPnts().


Member Data Documentation

QPointArray HistogramUser::mPnts[3] [protected]

Definition at line 19 of file histogramuser.h.

Referenced by calcCTable(), getHistPnts(), and setHistPnts().

unsigned char HistogramUser::mCTable[3][256] [protected]

Definition at line 20 of file histogramuser.h.

Referenced by calcCTable(), reset(), and scaleVal().


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

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