#include <synaesthesia.h>
Public Member Functions | |
| Synaesthesia (void) | |
| virtual | ~Synaesthesia () |
| void | resize (const QSize &size) |
| bool | process (VisualNode *node) |
| bool | draw (QPainter *p, const QColor &back) |
| void | handleKeyPress (const QString &action) |
Private Member Functions | |
| void | setupPalette (void) |
| void | coreInit (void) |
| int | bitReverser (int i) |
| void | fft (double *x, double *y) |
| void | setStarSize (double lsize) |
| void | addPixel (int x, int y, int br1, int br2) |
| void | addPixelFast (unsigned char *p, int br1, int br2) |
| unsigned char | getPixel (int x, int y, int where) |
| void | fadePixelWave (int x, int y, int where, int step) |
| void | fadeWave (void) |
| void | fadePixelHeat (int x, int y, int where, int step) |
| void | fadeHeat (void) |
| void | fadeFade (void) |
| void | fade (void) |
Private Attributes | |
| QSize | m_size |
| double | m_cosTable [NumSamples] |
| double | m_negSinTable [NumSamples] |
| int | m_bitReverse [NumSamples] |
| int | m_scaleDown [256] |
| int | m_maxStarRadius |
| int | m_fadeMode |
| bool | m_pointsAreDiamonds |
| double | m_brightnessTwiddler |
| double | m_starSize |
| int | m_outWidth |
| int | m_outHeight |
| Bitmap< unsigned short > | m_outputBmp |
| Bitmap< unsigned short > | m_lastOutputBmp |
| Bitmap< unsigned short > | m_lastLastOutputBmp |
| QImage * | m_outputImage |
| unsigned char | m_palette [768] |
| double | m_fgRedSlider |
| double | m_fgGreenSlider |
| double | m_bgRedSlider |
| double | m_bgGreenSlider |
| double | m_energy_avg |
Definition at line 19 of file synaesthesia.h.
| Synaesthesia::Synaesthesia | ( | void | ) |
Definition at line 34 of file synaesthesia.cpp.
| Synaesthesia::~Synaesthesia | ( | ) | [virtual] |
Definition at line 60 of file synaesthesia.cpp.
| void Synaesthesia::resize | ( | const QSize & | size | ) | [virtual] |
Implements VisualBase.
Definition at line 126 of file synaesthesia.cpp.
| bool Synaesthesia::process | ( | VisualNode * | node | ) | [virtual] |
Implements VisualBase.
Definition at line 465 of file synaesthesia.cpp.
| bool Synaesthesia::draw | ( | QPainter * | p, | |
| const QColor & | back | |||
| ) | [virtual] |
Implements VisualBase.
Definition at line 604 of file synaesthesia.cpp.
| void Synaesthesia::handleKeyPress | ( | const QString & | action | ) | [inline, virtual] |
Implements VisualBase.
Definition at line 28 of file synaesthesia.h.
| void Synaesthesia::setupPalette | ( | void | ) | [private] |
Definition at line 66 of file synaesthesia.cpp.
Referenced by Synaesthesia().
| void Synaesthesia::coreInit | ( | void | ) | [private] |
Definition at line 236 of file synaesthesia.cpp.
Referenced by Synaesthesia().
| int Synaesthesia::bitReverser | ( | int | i | ) | [private] |
Definition at line 177 of file synaesthesia.cpp.
Referenced by coreInit().
| void Synaesthesia::fft | ( | double * | x, | |
| double * | y | |||
| ) | [private] |
Definition at line 189 of file synaesthesia.cpp.
Referenced by process().
| void Synaesthesia::setStarSize | ( | double | lsize | ) | [private] |
Definition at line 214 of file synaesthesia.cpp.
Referenced by Synaesthesia().
| void Synaesthesia::addPixel | ( | int | x, | |
| int | y, | |||
| int | br1, | |||
| int | br2 | |||
| ) | [inline, private] |
Definition at line 250 of file synaesthesia.cpp.
Referenced by process().
| void Synaesthesia::addPixelFast | ( | unsigned char * | p, | |
| int | br1, | |||
| int | br2 | |||
| ) | [inline, private] |
Definition at line 266 of file synaesthesia.cpp.
Referenced by process().
| unsigned char Synaesthesia::getPixel | ( | int | x, | |
| int | y, | |||
| int | where | |||
| ) | [inline, private] |
Definition at line 278 of file synaesthesia.cpp.
Referenced by fadePixelHeat(), and fadePixelWave().
| void Synaesthesia::fadePixelWave | ( | int | x, | |
| int | y, | |||
| int | where, | |||
| int | step | |||
| ) | [inline, private] |
Definition at line 300 of file synaesthesia.cpp.
Referenced by fadeWave().
| void Synaesthesia::fadeWave | ( | void | ) | [private] |
Definition at line 322 of file synaesthesia.cpp.
Referenced by fade().
| void Synaesthesia::fadePixelHeat | ( | int | x, | |
| int | y, | |||
| int | where, | |||
| int | step | |||
| ) | [inline, private] |
Definition at line 378 of file synaesthesia.cpp.
Referenced by fadeHeat().
| void Synaesthesia::fadeHeat | ( | void | ) | [private] |
Definition at line 399 of file synaesthesia.cpp.
Referenced by fade().
| void Synaesthesia::fadeFade | ( | void | ) | [private] |
Definition at line 286 of file synaesthesia.cpp.
Referenced by fade().
| void Synaesthesia::fade | ( | void | ) | [private] |
Definition at line 454 of file synaesthesia.cpp.
Referenced by process().
QSize Synaesthesia::m_size [private] |
Definition at line 48 of file synaesthesia.h.
Referenced by resize().
double Synaesthesia::m_cosTable[NumSamples] [private] |
Definition at line 50 of file synaesthesia.h.
Referenced by coreInit(), and fft().
double Synaesthesia::m_negSinTable[NumSamples] [private] |
Definition at line 51 of file synaesthesia.h.
Referenced by coreInit(), and fft().
int Synaesthesia::m_bitReverse[NumSamples] [private] |
Definition at line 52 of file synaesthesia.h.
Referenced by coreInit(), and process().
int Synaesthesia::m_scaleDown[256] [private] |
Definition at line 53 of file synaesthesia.h.
Referenced by process(), and setStarSize().
int Synaesthesia::m_maxStarRadius [private] |
Definition at line 54 of file synaesthesia.h.
Referenced by process(), and setStarSize().
int Synaesthesia::m_fadeMode [private] |
Definition at line 55 of file synaesthesia.h.
Referenced by fade(), and setStarSize().
bool Synaesthesia::m_pointsAreDiamonds [private] |
Definition at line 56 of file synaesthesia.h.
Referenced by process().
double Synaesthesia::m_brightnessTwiddler [private] |
Definition at line 57 of file synaesthesia.h.
Referenced by process().
double Synaesthesia::m_starSize [private] |
Definition at line 58 of file synaesthesia.h.
Referenced by process(), and Synaesthesia().
int Synaesthesia::m_outWidth [private] |
Definition at line 60 of file synaesthesia.h.
Referenced by addPixel(), draw(), fadeFade(), fadeHeat(), fadeWave(), getPixel(), process(), and resize().
int Synaesthesia::m_outHeight [private] |
Definition at line 61 of file synaesthesia.h.
Referenced by addPixel(), draw(), fadeFade(), fadeHeat(), fadeWave(), getPixel(), process(), and resize().
Bitmap<unsigned short> Synaesthesia::m_outputBmp [private] |
Definition at line 63 of file synaesthesia.h.
Referenced by fadeHeat(), fadeWave(), and resize().
Bitmap<unsigned short> Synaesthesia::m_lastOutputBmp [private] |
Definition at line 63 of file synaesthesia.h.
Referenced by fadeHeat(), fadeWave(), and resize().
Bitmap<unsigned short> Synaesthesia::m_lastLastOutputBmp [private] |
Definition at line 63 of file synaesthesia.h.
Referenced by fadeHeat(), fadeWave(), and resize().
QImage* Synaesthesia::m_outputImage [private] |
Definition at line 64 of file synaesthesia.h.
Referenced by draw(), resize(), and ~Synaesthesia().
unsigned char Synaesthesia::m_palette[768] [private] |
Definition at line 66 of file synaesthesia.h.
Referenced by resize(), and setupPalette().
double Synaesthesia::m_fgRedSlider [private] |
Definition at line 67 of file synaesthesia.h.
Referenced by setupPalette().
double Synaesthesia::m_fgGreenSlider [private] |
Definition at line 67 of file synaesthesia.h.
Referenced by setupPalette().
double Synaesthesia::m_bgRedSlider [private] |
Definition at line 67 of file synaesthesia.h.
Referenced by setupPalette().
double Synaesthesia::m_bgGreenSlider [private] |
Definition at line 67 of file synaesthesia.h.
Referenced by setupPalette().
double Synaesthesia::m_energy_avg [private] |
Definition at line 69 of file synaesthesia.h.
Referenced by process().
1.6.3