svcore
1.9
|
#include <FFTFileCacheWriter.h>
Public Member Functions | |
FFTFileCacheWriter (QString fileBase, FFTCache::StorageType storageType, int width, int height) | |
~FFTFileCacheWriter () | |
int | getWidth () const |
int | getHeight () const |
void | setColumnAt (int x, float *mags, float *phases, float factor) |
void | setColumnAt (int x, float *reals, float *imags) |
bool | haveSetColumnAt (int x) const |
void | allColumnsWritten () |
QString | getFileBase () const |
FFTCache::StorageType | getStorageType () const |
Static Public Member Functions | |
static int | getCacheSize (int width, int height, FFTCache::StorageType type) |
Protected Member Functions | |
void | setNormalizationFactorToWritebuf (float newfactor) |
Protected Attributes | |
char * | m_writebuf |
QString | m_fileBase |
FFTCache::StorageType | m_storageType |
int | m_factorSize |
MatrixFile * | m_mfc |
Definition at line 23 of file FFTFileCacheWriter.h.
FFTFileCacheWriter::FFTFileCacheWriter | ( | QString | fileBase, |
FFTCache::StorageType | storageType, | ||
int | width, | ||
int | height | ||
) |
Definition at line 34 of file FFTFileCacheWriter.cpp.
References FFTCache::Compact, MatrixFile::getCellSize(), m_factorSize, m_mfc, m_writebuf, FFTCache::Polar, and MatrixFile::setAutoClose().
Definition at line 53 of file FFTFileCacheWriter.cpp.
References m_mfc, and m_writebuf.
int FFTFileCacheWriter::getWidth | ( | ) | const [virtual] |
Implements FFTCacheWriter.
Definition at line 66 of file FFTFileCacheWriter.cpp.
References MatrixFile::getWidth(), and m_mfc.
int FFTFileCacheWriter::getHeight | ( | ) | const [virtual] |
Implements FFTCacheWriter.
Definition at line 72 of file FFTFileCacheWriter.cpp.
References MatrixFile::getHeight(), m_factorSize, and m_mfc.
Referenced by setColumnAt().
void FFTFileCacheWriter::setColumnAt | ( | int | x, |
float * | mags, | ||
float * | phases, | ||
float | factor | ||
) | [virtual] |
Implements FFTCacheWriter.
Definition at line 86 of file FFTFileCacheWriter.cpp.
References FFTCache::Compact, getHeight(), m_mfc, m_storageType, m_writebuf, FFTCache::Polar, FFTCache::Rectangular, MatrixFile::setColumnAt(), and setNormalizationFactorToWritebuf().
void FFTFileCacheWriter::setColumnAt | ( | int | x, |
float * | reals, | ||
float * | imags | ||
) | [virtual] |
Implements FFTCacheWriter.
Definition at line 126 of file FFTFileCacheWriter.cpp.
References FFTCache::Compact, getHeight(), m_mfc, m_storageType, m_writebuf, FFTCache::Polar, FFTCache::Rectangular, MatrixFile::setColumnAt(), and setNormalizationFactorToWritebuf().
int FFTFileCacheWriter::getCacheSize | ( | int | width, |
int | height, | ||
FFTCache::StorageType | type | ||
) | [static] |
Definition at line 179 of file FFTFileCacheWriter.cpp.
References FFTCache::Compact.
bool FFTFileCacheWriter::haveSetColumnAt | ( | int | x | ) | const [virtual] |
Implements FFTCacheWriter.
Definition at line 80 of file FFTFileCacheWriter.cpp.
References MatrixFile::haveSetColumnAt(), and m_mfc.
void FFTFileCacheWriter::allColumnsWritten | ( | ) | [virtual] |
Implements FFTCacheWriter.
Definition at line 188 of file FFTFileCacheWriter.cpp.
References MatrixFile::close(), m_mfc, and SVDEBUG.
QString FFTFileCacheWriter::getFileBase | ( | ) | const |
Definition at line 60 of file FFTFileCacheWriter.cpp.
References m_fileBase.
FFTCache::StorageType FFTFileCacheWriter::getStorageType | ( | ) | const [inline, virtual] |
Implements FFTCacheWriter.
Definition at line 45 of file FFTFileCacheWriter.h.
References m_storageType.
void FFTFileCacheWriter::setNormalizationFactorToWritebuf | ( | float | newfactor | ) | [inline, protected] |
Definition at line 50 of file FFTFileCacheWriter.h.
References FFTCache::Compact, MatrixFile::getHeight(), m_factorSize, m_mfc, m_storageType, and m_writebuf.
Referenced by setColumnAt().
char* FFTFileCacheWriter::m_writebuf [protected] |
Definition at line 48 of file FFTFileCacheWriter.h.
Referenced by FFTFileCacheWriter(), setColumnAt(), setNormalizationFactorToWritebuf(), and ~FFTFileCacheWriter().
QString FFTFileCacheWriter::m_fileBase [protected] |
Definition at line 66 of file FFTFileCacheWriter.h.
Referenced by getFileBase().
Definition at line 67 of file FFTFileCacheWriter.h.
Referenced by getStorageType(), setColumnAt(), and setNormalizationFactorToWritebuf().
int FFTFileCacheWriter::m_factorSize [protected] |
Definition at line 68 of file FFTFileCacheWriter.h.
Referenced by FFTFileCacheWriter(), getHeight(), and setNormalizationFactorToWritebuf().
MatrixFile* FFTFileCacheWriter::m_mfc [protected] |
Definition at line 69 of file FFTFileCacheWriter.h.
Referenced by allColumnsWritten(), FFTFileCacheWriter(), getHeight(), getWidth(), haveSetColumnAt(), setColumnAt(), setNormalizationFactorToWritebuf(), and ~FFTFileCacheWriter().