svcore
1.9
|
#include <FFTFileCacheReader.h>
Public Member Functions | |
FFTFileCacheReader (FFTFileCacheWriter *) | |
~FFTFileCacheReader () | |
int | getWidth () const |
int | getHeight () const |
float | getMagnitudeAt (int x, int y) const |
float | getNormalizedMagnitudeAt (int x, int y) const |
float | getMaximumMagnitudeAt (int x) const |
float | getPhaseAt (int x, int y) const |
void | getValuesAt (int x, int y, float &real, float &imag) const |
void | getMagnitudesAt (int x, float *values, int minbin, int count, int step) const |
bool | haveSetColumnAt (int x) const |
FFTCache::StorageType | getStorageType () const |
Static Public Member Functions | |
static int | getCacheSize (int width, int height, FFTCache::StorageType type) |
Protected Member Functions | |
float | getFromReadBufStandard (int x, int y) const |
float | getFromReadBufCompactUnsigned (int x, int y) const |
float | getFromReadBufCompactSigned (int x, int y) const |
void | populateReadBuf (int x) const |
float | getNormalizationFactor (int col) const |
Protected Attributes | |
char * | m_readbuf |
int | m_readbufCol |
int | m_readbufWidth |
bool | m_readbufGood |
FFTCache::StorageType | m_storageType |
int | m_factorSize |
MatrixFile * | m_mfc |
Definition at line 25 of file FFTFileCacheReader.h.
Definition at line 33 of file FFTFileCacheReader.cpp.
Definition at line 50 of file FFTFileCacheReader.cpp.
int FFTFileCacheReader::getWidth | ( | ) | const [virtual] |
Implements FFTCacheReader.
Definition at line 57 of file FFTFileCacheReader.cpp.
References MatrixFile::getWidth(), and m_mfc.
int FFTFileCacheReader::getHeight | ( | ) | const [virtual] |
Implements FFTCacheReader.
Definition at line 63 of file FFTFileCacheReader.cpp.
References MatrixFile::getHeight(), m_factorSize, and m_mfc.
float FFTFileCacheReader::getMagnitudeAt | ( | int | x, |
int | y | ||
) | const [virtual] |
Implements FFTCacheReader.
Definition at line 71 of file FFTFileCacheReader.cpp.
References FFTCache::Compact, getFromReadBufCompactUnsigned(), getFromReadBufStandard(), getNormalizationFactor(), getValuesAt(), m_storageType, FFTCache::Polar, and FFTCache::Rectangular.
Referenced by getNormalizedMagnitudeAt(), and getValuesAt().
float FFTFileCacheReader::getNormalizedMagnitudeAt | ( | int | x, |
int | y | ||
) | const [virtual] |
Implements FFTCacheReader.
Definition at line 101 of file FFTFileCacheReader.cpp.
References FFTCache::Compact, getFromReadBufCompactUnsigned(), getMagnitudeAt(), getNormalizationFactor(), m_storageType, FFTCache::Polar, and FFTCache::Rectangular.
float FFTFileCacheReader::getMaximumMagnitudeAt | ( | int | x | ) | const [virtual] |
Implements FFTCacheReader.
Definition at line 126 of file FFTFileCacheReader.cpp.
References getNormalizationFactor().
float FFTFileCacheReader::getPhaseAt | ( | int | x, |
int | y | ||
) | const [virtual] |
Implements FFTCacheReader.
Definition at line 132 of file FFTFileCacheReader.cpp.
References FFTCache::Compact, getFromReadBufCompactSigned(), getFromReadBufStandard(), getValuesAt(), m_storageType, FFTCache::Polar, and FFTCache::Rectangular.
Referenced by getValuesAt().
void FFTFileCacheReader::getValuesAt | ( | int | x, |
int | y, | ||
float & | real, | ||
float & | imag | ||
) | const [virtual] |
Implements FFTCacheReader.
Definition at line 159 of file FFTFileCacheReader.cpp.
References FFTCache::Compact, getFromReadBufStandard(), getMagnitudeAt(), getPhaseAt(), m_storageType, FFTCache::Polar, and FFTCache::Rectangular.
Referenced by getMagnitudeAt(), and getPhaseAt().
void FFTFileCacheReader::getMagnitudesAt | ( | int | x, |
float * | values, | ||
int | minbin, | ||
int | count, | ||
int | step | ||
) | const [virtual] |
Implements FFTCacheReader.
Definition at line 181 of file FFTFileCacheReader.cpp.
References FFTCache::Compact, getFromReadBufCompactUnsigned(), getFromReadBufStandard(), getNormalizationFactor(), m_storageType, FFTCache::Polar, and FFTCache::Rectangular.
bool FFTFileCacheReader::haveSetColumnAt | ( | int | x | ) | const [virtual] |
Implements FFTCacheReader.
Definition at line 217 of file FFTFileCacheReader.cpp.
References MatrixFile::haveSetColumnAt(), m_mfc, m_readbuf, m_readbufCol, m_readbufGood, and m_readbufWidth.
int FFTFileCacheReader::getCacheSize | ( | int | width, |
int | height, | ||
FFTCache::StorageType | type | ||
) | [static] |
Definition at line 228 of file FFTFileCacheReader.cpp.
References FFTCache::Compact.
FFTCache::StorageType FFTFileCacheReader::getStorageType | ( | ) | const [inline, virtual] |
Implements FFTCacheReader.
Definition at line 47 of file FFTFileCacheReader.h.
References m_storageType.
float FFTFileCacheReader::getFromReadBufStandard | ( | int | x, |
int | y | ||
) | const [inline, protected] |
Definition at line 55 of file FFTFileCacheReader.h.
References MatrixFile::getHeight(), m_mfc, m_readbuf, m_readbufCol, m_readbufWidth, and populateReadBuf().
Referenced by getMagnitudeAt(), getMagnitudesAt(), getNormalizationFactor(), getPhaseAt(), and getValuesAt().
float FFTFileCacheReader::getFromReadBufCompactUnsigned | ( | int | x, |
int | y | ||
) | const [inline, protected] |
Definition at line 68 of file FFTFileCacheReader.h.
References MatrixFile::getHeight(), m_mfc, m_readbuf, m_readbufCol, m_readbufWidth, and populateReadBuf().
Referenced by getMagnitudeAt(), getMagnitudesAt(), and getNormalizedMagnitudeAt().
float FFTFileCacheReader::getFromReadBufCompactSigned | ( | int | x, |
int | y | ||
) | const [inline, protected] |
Definition at line 81 of file FFTFileCacheReader.h.
References MatrixFile::getHeight(), m_mfc, m_readbuf, m_readbufCol, m_readbufWidth, and populateReadBuf().
Referenced by getPhaseAt().
void FFTFileCacheReader::populateReadBuf | ( | int | x | ) | const [protected] |
Definition at line 237 of file FFTFileCacheReader.cpp.
References MatrixFile::getCellSize(), MatrixFile::getColumnAt(), MatrixFile::getHeight(), MatrixFile::haveSetColumnAt(), m_mfc, m_readbuf, m_readbufCol, m_readbufGood, m_readbufWidth, and FileReadFailed::what().
Referenced by getFromReadBufCompactSigned(), getFromReadBufCompactUnsigned(), getFromReadBufStandard(), and getNormalizationFactor().
float FFTFileCacheReader::getNormalizationFactor | ( | int | col | ) | const [inline, protected] |
Definition at line 96 of file FFTFileCacheReader.h.
References FFTCache::Compact, getFromReadBufStandard(), MatrixFile::getHeight(), m_factorSize, m_mfc, m_readbuf, m_readbufCol, m_readbufWidth, m_storageType, and populateReadBuf().
Referenced by getMagnitudeAt(), getMagnitudesAt(), getMaximumMagnitudeAt(), and getNormalizedMagnitudeAt().
char* FFTFileCacheReader::m_readbuf [mutable, protected] |
Definition at line 50 of file FFTFileCacheReader.h.
Referenced by getFromReadBufCompactSigned(), getFromReadBufCompactUnsigned(), getFromReadBufStandard(), getNormalizationFactor(), haveSetColumnAt(), populateReadBuf(), and ~FFTFileCacheReader().
int FFTFileCacheReader::m_readbufCol [mutable, protected] |
Definition at line 51 of file FFTFileCacheReader.h.
Referenced by getFromReadBufCompactSigned(), getFromReadBufCompactUnsigned(), getFromReadBufStandard(), getNormalizationFactor(), haveSetColumnAt(), and populateReadBuf().
int FFTFileCacheReader::m_readbufWidth [mutable, protected] |
Definition at line 52 of file FFTFileCacheReader.h.
Referenced by getFromReadBufCompactSigned(), getFromReadBufCompactUnsigned(), getFromReadBufStandard(), getNormalizationFactor(), haveSetColumnAt(), and populateReadBuf().
bool FFTFileCacheReader::m_readbufGood [mutable, protected] |
Definition at line 53 of file FFTFileCacheReader.h.
Referenced by haveSetColumnAt(), and populateReadBuf().
Definition at line 118 of file FFTFileCacheReader.h.
Referenced by getMagnitudeAt(), getMagnitudesAt(), getNormalizationFactor(), getNormalizedMagnitudeAt(), getPhaseAt(), getStorageType(), and getValuesAt().
int FFTFileCacheReader::m_factorSize [protected] |
Definition at line 119 of file FFTFileCacheReader.h.
Referenced by getHeight(), and getNormalizationFactor().
MatrixFile* FFTFileCacheReader::m_mfc [protected] |
Definition at line 120 of file FFTFileCacheReader.h.
Referenced by getFromReadBufCompactSigned(), getFromReadBufCompactUnsigned(), getFromReadBufStandard(), getHeight(), getNormalizationFactor(), getWidth(), haveSetColumnAt(), populateReadBuf(), and ~FFTFileCacheReader().