casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Signals | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
casa::Histogram Class Reference

Generates and Manages the data corresponding to a histogram. More...

#include <Histogram.h>

Signals

void postStatus (const QString &msg)
 

Public Member Functions

 Histogram (HeightSource *source)
 
int getDataCount () const
 
bool compute ()
 Just recompute the histogram if a parameter such as bin count or intensity changes. More...
 
bool reset (FootPrintWidget::PlotMode mode)
 Completely reset the histogram if the image, region, or channels change. More...
 
void setRegion (casacore::ImageRegion *region)
 
void defineLine (int index, QVector< double > &xVals, QVector< double > &yVals, bool useLogY) const
 
void defineStepHorizontal (int index, QVector< double > &xVals, QVector< double > &yVals, bool useLogY) const
 
void defineStepVertical (int index, QVector< double > &xVals, QVector< double > &yVals, bool useLogY) const
 
std::pair< float, float > getMinMaxBinCount () const
 
std::vector< float > getXValues () const
 
std::vector< float > getYValues () const
 
std::pair< float, float > getDataRange () const
 
void toAscii (QTextStream &out) const
 
virtual ~Histogram ()
 
void setBinCount (int count)
 common to all histograms More...
 
void setChannelRangeDefault ()
 
void setIntensityRangeDefault ()
 
void setChannelRange (int minChannel, int maxChannel, int spectralIndex=-1)
 
void setIntensityRange (float minimumIntensity, float maximumIntensity)
 
void setImage (const std::shared_ptr< const casacore::ImageInterface< casacore::Float > > image)
 

Static Public Member Functions

static double computeYValue (double value, bool useLog)
 

Private Member Functions

 Histogram (const Histogram &other)
 
Histogram operator= (const Histogram &other)
 
ImageHistograms
< casacore::Float > * 
filterByChannels (const std::shared_ptr< const casacore::ImageInterface< casacore::Float > > image)
 

Private Attributes

HeightSourceheightSource
 
std::vector< casacore::FloatxValues
 
std::vector< casacore::FloatyValues
 
ImageHistograms
< casacore::Float > * 
histogramMaker
 
casacore::ImageRegionregion
 
const int ALL_CHANNELS
 
const int ALL_INTENSITIES
 
std::shared_ptr< const
casacore::ImageInterface
< casacore::Float > > 
image
 
int channelMin
 
int channelMax
 
int specIndex
 
float intensityMin
 
float intensityMax
 
int binCount
 

Detailed Description

Generates and Manages the data corresponding to a histogram.

Definition at line 51 of file Histogram.h.

Constructor & Destructor Documentation

casa::Histogram::Histogram ( HeightSource source)
virtual casa::Histogram::~Histogram ( )
virtual
casa::Histogram::Histogram ( const Histogram other)
private

Member Function Documentation

bool casa::Histogram::compute ( )

Just recompute the histogram if a parameter such as bin count or intensity changes.

static double casa::Histogram::computeYValue ( double  value,
bool  useLog 
)
static
void casa::Histogram::defineLine ( int  index,
QVector< double > &  xVals,
QVector< double > &  yVals,
bool  useLogY 
) const
void casa::Histogram::defineStepHorizontal ( int  index,
QVector< double > &  xVals,
QVector< double > &  yVals,
bool  useLogY 
) const
void casa::Histogram::defineStepVertical ( int  index,
QVector< double > &  xVals,
QVector< double > &  yVals,
bool  useLogY 
) const
ImageHistograms<casacore::Float>* casa::Histogram::filterByChannels ( const std::shared_ptr< const casacore::ImageInterface< casacore::Float > >  image)
private
int casa::Histogram::getDataCount ( ) const
std::pair<float,float> casa::Histogram::getDataRange ( ) const
std::pair<float,float> casa::Histogram::getMinMaxBinCount ( ) const
std::vector<float> casa::Histogram::getXValues ( ) const
std::vector<float> casa::Histogram::getYValues ( ) const
Histogram casa::Histogram::operator= ( const Histogram other)
private
void casa::Histogram::postStatus ( const QString &  msg)
signal
bool casa::Histogram::reset ( FootPrintWidget::PlotMode  mode)

Completely reset the histogram if the image, region, or channels change.

void casa::Histogram::setBinCount ( int  count)

common to all histograms

void casa::Histogram::setChannelRange ( int  minChannel,
int  maxChannel,
int  spectralIndex = -1 
)
void casa::Histogram::setChannelRangeDefault ( )
void casa::Histogram::setImage ( const std::shared_ptr< const casacore::ImageInterface< casacore::Float > >  image)
void casa::Histogram::setIntensityRange ( float  minimumIntensity,
float  maximumIntensity 
)
void casa::Histogram::setIntensityRangeDefault ( )
void casa::Histogram::setRegion ( casacore::ImageRegion region)
void casa::Histogram::toAscii ( QTextStream &  out) const

Member Data Documentation

const int casa::Histogram::ALL_CHANNELS
private

Definition at line 99 of file Histogram.h.

const int casa::Histogram::ALL_INTENSITIES
private

Definition at line 100 of file Histogram.h.

int casa::Histogram::binCount
private

Definition at line 107 of file Histogram.h.

int casa::Histogram::channelMax
private

Definition at line 103 of file Histogram.h.

int casa::Histogram::channelMin
private

Definition at line 102 of file Histogram.h.

HeightSource* casa::Histogram::heightSource
private

Definition at line 93 of file Histogram.h.

ImageHistograms<casacore::Float>* casa::Histogram::histogramMaker
private

Definition at line 96 of file Histogram.h.

std::shared_ptr<const casacore::ImageInterface<casacore::Float> > casa::Histogram::image
private

Definition at line 101 of file Histogram.h.

float casa::Histogram::intensityMax
private

Definition at line 106 of file Histogram.h.

float casa::Histogram::intensityMin
private

Definition at line 105 of file Histogram.h.

casacore::ImageRegion* casa::Histogram::region
private

Definition at line 97 of file Histogram.h.

int casa::Histogram::specIndex
private

Definition at line 104 of file Histogram.h.

std::vector<casacore::Float> casa::Histogram::xValues
private

Definition at line 94 of file Histogram.h.

std::vector<casacore::Float> casa::Histogram::yValues
private

Definition at line 95 of file Histogram.h.


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