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

Responsible for computing the (x,y)-values that represent a slice cut. More...

#include <SliceWorker.h>

Public Member Functions

 SliceWorker (int id)
 
void setImage (std::shared_ptr< casacore::ImageInterface< float > > img)
 
void setVertices (const QList< int > &xValues, const QList< int > &yValues, const QList< double > &xValuesWorld, const QList< double > &yValuesWorld)
 
void setAxes (const casacore::Vector< casacore::Int > &axes)
 
void setCoords (const casacore::Vector< casacore::Int > &coords)
 
void setSampleCount (int count)
 
void setMethod (const casacore::String &method)
 
void toAscii (QTextStream &stream, SliceStatistics *statistics) const
 
void compute ()
 
int getSegmentCount () const
 
QVector< double > getPixels (int index) const
 
QVector< double > getData (int index, SliceStatistics *statistics) const
 
virtual ~SliceWorker ()
 

Private Member Functions

 SliceWorker (const SliceWorker &other)
 
SliceWorkeroperator= (const SliceWorker other)
 
double getDistance (double x, double y) const
 
QVector< double > interpolate (double start, double end, const QVector< double > &values) const
 
void clearResults ()
 
QVector< double > getValues (int index, const QVector< double > &pixels, SliceStatistics *statistic) const
 
void computeSlice (const casacore::Vector< double > &xValues, const casacore::Vector< double > &yValues)
 

Private Attributes

std::shared_ptr
< casacore::ImageInterface
< float > > 
image
 
QList< casacore::Record * > sliceResults
 
casacore::Vector
< casacore::Double
verticesX
 
casacore::Vector
< casacore::Double
verticesY
 
casacore::Vector
< casacore::Double
verticesXWorld
 
casacore::Vector
< casacore::Double
verticesYWorld
 
casacore::Vector< casacore::Intaxes
 
casacore::Vector< casacore::Intcoords
 
int sampleCount
 
int id
 
casacore::String method
 

Detailed Description

Responsible for computing the (x,y)-values that represent a slice cut.

Definition at line 49 of file SliceWorker.h.

Constructor & Destructor Documentation

casa::SliceWorker::SliceWorker ( int  id)
virtual casa::SliceWorker::~SliceWorker ( )
virtual
casa::SliceWorker::SliceWorker ( const SliceWorker other)
private

Member Function Documentation

void casa::SliceWorker::clearResults ( )
private
void casa::SliceWorker::compute ( )
void casa::SliceWorker::computeSlice ( const casacore::Vector< double > &  xValues,
const casacore::Vector< double > &  yValues 
)
private
QVector<double> casa::SliceWorker::getData ( int  index,
SliceStatistics statistics 
) const
double casa::SliceWorker::getDistance ( double  x,
double  y 
) const
private
QVector<double> casa::SliceWorker::getPixels ( int  index) const
int casa::SliceWorker::getSegmentCount ( ) const
QVector<double> casa::SliceWorker::getValues ( int  index,
const QVector< double > &  pixels,
SliceStatistics statistic 
) const
private
QVector<double> casa::SliceWorker::interpolate ( double  start,
double  end,
const QVector< double > &  values 
) const
private
SliceWorker& casa::SliceWorker::operator= ( const SliceWorker  other)
private
void casa::SliceWorker::setAxes ( const casacore::Vector< casacore::Int > &  axes)
void casa::SliceWorker::setCoords ( const casacore::Vector< casacore::Int > &  coords)
void casa::SliceWorker::setImage ( std::shared_ptr< casacore::ImageInterface< float > >  img)
void casa::SliceWorker::setMethod ( const casacore::String method)
void casa::SliceWorker::setSampleCount ( int  count)
void casa::SliceWorker::setVertices ( const QList< int > &  xValues,
const QList< int > &  yValues,
const QList< double > &  xValuesWorld,
const QList< double > &  yValuesWorld 
)
void casa::SliceWorker::toAscii ( QTextStream &  stream,
SliceStatistics statistics 
) const

Member Data Documentation

casacore::Vector<casacore::Int> casa::SliceWorker::axes
private

Definition at line 88 of file SliceWorker.h.

casacore::Vector<casacore::Int> casa::SliceWorker::coords
private

Definition at line 89 of file SliceWorker.h.

int casa::SliceWorker::id
private

Definition at line 92 of file SliceWorker.h.

std::shared_ptr<casacore::ImageInterface<float> > casa::SliceWorker::image
private

Definition at line 81 of file SliceWorker.h.

casacore::String casa::SliceWorker::method
private

Definition at line 93 of file SliceWorker.h.

int casa::SliceWorker::sampleCount
private

Definition at line 91 of file SliceWorker.h.

QList<casacore::Record*> casa::SliceWorker::sliceResults
private

Definition at line 82 of file SliceWorker.h.

casacore::Vector<casacore::Double> casa::SliceWorker::verticesX
private

Definition at line 83 of file SliceWorker.h.

casacore::Vector<casacore::Double> casa::SliceWorker::verticesXWorld
private

Definition at line 85 of file SliceWorker.h.

casacore::Vector<casacore::Double> casa::SliceWorker::verticesY
private

Definition at line 84 of file SliceWorker.h.

casacore::Vector<casacore::Double> casa::SliceWorker::verticesYWorld
private

Definition at line 86 of file SliceWorker.h.


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