casa
5.7.0-16
|
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 | |
HeightSource * | heightSource |
std::vector< casacore::Float > | xValues |
std::vector< casacore::Float > | yValues |
ImageHistograms < casacore::Float > * | histogramMaker |
casacore::ImageRegion * | region |
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 |
Generates and Manages the data corresponding to a histogram.
Definition at line 51 of file Histogram.h.
casa::Histogram::Histogram | ( | HeightSource * | source | ) |
|
virtual |
|
private |
bool casa::Histogram::compute | ( | ) |
Just recompute the histogram if a parameter such as bin count or intensity changes.
|
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 |
|
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 |
|
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 |
|
private |
Definition at line 99 of file Histogram.h.
|
private |
Definition at line 100 of file Histogram.h.
|
private |
Definition at line 107 of file Histogram.h.
|
private |
Definition at line 103 of file Histogram.h.
|
private |
Definition at line 102 of file Histogram.h.
|
private |
Definition at line 93 of file Histogram.h.
|
private |
Definition at line 96 of file Histogram.h.
|
private |
Definition at line 101 of file Histogram.h.
|
private |
Definition at line 106 of file Histogram.h.
|
private |
Definition at line 105 of file Histogram.h.
|
private |
Definition at line 97 of file Histogram.h.
|
private |
Definition at line 104 of file Histogram.h.
|
private |
Definition at line 94 of file Histogram.h.
|
private |
Definition at line 95 of file Histogram.h.