Synaesthesia Class Reference

#include <synaesthesia.h>

Inheritance diagram for Synaesthesia:

VisualBase

List of all members.


Detailed Description

Definition at line 23 of file synaesthesia.h.


Public Member Functions

 Synaesthesia (long int winid)
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 size
double cosTable [NumSamples]
double negSinTable [NumSamples]
int bitReverse [NumSamples]
int scaleDown [256]
int maxStarRadius
int fadeMode
bool pointsAreDiamonds
double brightnessTwiddler
double starSize
int outWidth
int outHeight
Bitmap< unsigned short > outputBmp
Bitmap< unsigned short > lastOutputBmp
Bitmap< unsigned short > lastLastOutputBmp
QImage * outputImage
unsigned char palette [768]
double fgRedSlider
double fgGreenSlider
double bgRedSlider
double bgGreenSlider
double energy_avg
SDL_Surface * surface

Constructor & Destructor Documentation

Synaesthesia::Synaesthesia ( long int  winid  ) 

Definition at line 31 of file synaesthesia.cpp.

Referenced by SynaesthesiaFactory::create().

Synaesthesia::~Synaesthesia (  )  [virtual]

Definition at line 67 of file synaesthesia.cpp.


Member Function Documentation

void Synaesthesia::resize ( const QSize &  size  )  [virtual]

Implements VisualBase.

Definition at line 137 of file synaesthesia.cpp.

bool Synaesthesia::process ( VisualNode node  )  [virtual]

Implements VisualBase.

Definition at line 462 of file synaesthesia.cpp.

bool Synaesthesia::draw ( QPainter *  p,
const QColor &  back 
) [virtual]

Implements VisualBase.

Definition at line 601 of file synaesthesia.cpp.

void Synaesthesia::handleKeyPress ( const QString &  action  )  [inline, virtual]

Implements VisualBase.

Definition at line 32 of file synaesthesia.h.

void Synaesthesia::setupPalette ( void   )  [private]

Definition at line 77 of file synaesthesia.cpp.

Referenced by Synaesthesia().

void Synaesthesia::coreInit ( void   )  [private]

Definition at line 246 of file synaesthesia.cpp.

Referenced by Synaesthesia().

int Synaesthesia::bitReverser ( int  i  )  [private]

Definition at line 187 of file synaesthesia.cpp.

Referenced by coreInit().

void Synaesthesia::fft ( double *  x,
double *  y 
) [private]

Definition at line 199 of file synaesthesia.cpp.

Referenced by process().

void Synaesthesia::setStarSize ( double  lsize  )  [private]

Definition at line 224 of file synaesthesia.cpp.

Referenced by Synaesthesia().

void Synaesthesia::addPixel ( int  x,
int  y,
int  br1,
int  br2 
) [inline, private]

Definition at line 260 of file synaesthesia.cpp.

Referenced by process().

void Synaesthesia::addPixelFast ( unsigned char *  p,
int  br1,
int  br2 
) [inline, private]

Definition at line 276 of file synaesthesia.cpp.

Referenced by process().

unsigned char Synaesthesia::getPixel ( int  x,
int  y,
int  where 
) [inline, private]

Definition at line 288 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 310 of file synaesthesia.cpp.

Referenced by fadeWave().

void Synaesthesia::fadeWave ( void   )  [private]

Definition at line 330 of file synaesthesia.cpp.

Referenced by fade().

void Synaesthesia::fadePixelHeat ( int  x,
int  y,
int  where,
int  step 
) [inline, private]

Definition at line 380 of file synaesthesia.cpp.

Referenced by fadeHeat().

void Synaesthesia::fadeHeat ( void   )  [private]

Definition at line 400 of file synaesthesia.cpp.

Referenced by fade().

void Synaesthesia::fadeFade ( void   )  [private]

Definition at line 296 of file synaesthesia.cpp.

Referenced by fade().

void Synaesthesia::fade ( void   )  [private]

Definition at line 452 of file synaesthesia.cpp.

Referenced by process().


Member Data Documentation

QSize Synaesthesia::size [private]

Definition at line 52 of file synaesthesia.h.

Referenced by resize().

double Synaesthesia::cosTable[NumSamples] [private]

Definition at line 54 of file synaesthesia.h.

Referenced by coreInit(), and fft().

double Synaesthesia::negSinTable[NumSamples] [private]

Definition at line 55 of file synaesthesia.h.

Referenced by coreInit(), and fft().

int Synaesthesia::bitReverse[NumSamples] [private]

Definition at line 56 of file synaesthesia.h.

Referenced by coreInit(), and process().

int Synaesthesia::scaleDown[256] [private]

Definition at line 57 of file synaesthesia.h.

Referenced by process(), and setStarSize().

Definition at line 58 of file synaesthesia.h.

Referenced by process(), and setStarSize().

int Synaesthesia::fadeMode [private]

Definition at line 59 of file synaesthesia.h.

Referenced by fade(), setStarSize(), and Synaesthesia().

Definition at line 60 of file synaesthesia.h.

Referenced by process(), and Synaesthesia().

Definition at line 61 of file synaesthesia.h.

Referenced by process(), and Synaesthesia().

double Synaesthesia::starSize [private]

Definition at line 62 of file synaesthesia.h.

Referenced by process(), and Synaesthesia().

int Synaesthesia::outWidth [private]

Definition at line 64 of file synaesthesia.h.

Referenced by addPixel(), draw(), fadeFade(), fadeHeat(), fadeWave(), getPixel(), process(), and resize().

int Synaesthesia::outHeight [private]

Definition at line 65 of file synaesthesia.h.

Referenced by addPixel(), draw(), fadeFade(), fadeHeat(), fadeWave(), getPixel(), process(), and resize().

Bitmap<unsigned short> Synaesthesia::outputBmp [private]

Definition at line 67 of file synaesthesia.h.

Referenced by fadeHeat(), fadeWave(), and resize().

Bitmap<unsigned short> Synaesthesia::lastOutputBmp [private]

Definition at line 67 of file synaesthesia.h.

Referenced by fadeHeat(), fadeWave(), and resize().

Bitmap<unsigned short> Synaesthesia::lastLastOutputBmp [private]

Definition at line 67 of file synaesthesia.h.

Referenced by fadeHeat(), fadeWave(), and resize().

QImage* Synaesthesia::outputImage [private]

Definition at line 68 of file synaesthesia.h.

Referenced by draw(), resize(), Synaesthesia(), and ~Synaesthesia().

unsigned char Synaesthesia::palette[768] [private]

Definition at line 70 of file synaesthesia.h.

Referenced by resize(), and setupPalette().

double Synaesthesia::fgRedSlider [private]

Definition at line 71 of file synaesthesia.h.

Referenced by setupPalette(), and Synaesthesia().

double Synaesthesia::fgGreenSlider [private]

Definition at line 71 of file synaesthesia.h.

Referenced by setupPalette(), and Synaesthesia().

double Synaesthesia::bgRedSlider [private]

Definition at line 71 of file synaesthesia.h.

Referenced by setupPalette(), and Synaesthesia().

double Synaesthesia::bgGreenSlider [private]

Definition at line 71 of file synaesthesia.h.

Referenced by setupPalette(), and Synaesthesia().

double Synaesthesia::energy_avg [private]

Definition at line 73 of file synaesthesia.h.

Referenced by process(), and Synaesthesia().

SDL_Surface* Synaesthesia::surface [private]

Definition at line 75 of file synaesthesia.h.

Referenced by draw(), resize(), and Synaesthesia().


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

Generated on Sat Dec 18 05:16:11 2010 for MythTV by  doxygen 1.5.5