#include <bumpscope.h>

Definition at line 15 of file bumpscope.h.
Public Member Functions | |
| BumpScope (long int winid) | |
| virtual | ~BumpScope () |
| 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 | blur_8 (unsigned char *ptr, int w, int h, int bpl) |
| void | generate_intense (void) |
| void | generate_cmap (unsigned int color) |
| void | generate_phongdat (void) |
| void | translate (int x, int y, int *xo, int *yo, int *xd, int *yd, int *angle) |
| void | draw_vert_line (unsigned char *buffer, int x, int y1, int y2) |
| void | render_light (int lx, int ly) |
| void | rgb_to_hsv (unsigned int color, double *h, double *s, double *v) |
| void | hsv_to_rgb (double h, double s, double v, unsigned int *color) |
Private Attributes | |
| QSize | size |
| SDL_Surface * | surface |
| unsigned int | m_color |
| unsigned int | m_x |
| unsigned int | m_y |
| unsigned int | m_width |
| unsigned int | m_height |
| unsigned int | m_phongrad |
| bool | color_cycle |
| bool | moving_light |
| bool | diamond |
| int | bpl |
| vector< vector< unsigned char > > | phongdat |
| unsigned char * | rgb_buf |
| double | intense1 [256] |
| double | intense2 [256] |
| int | iangle |
| int | ixo |
| int | iyo |
| int | ixd |
| int | iyd |
| int | ilx |
| int | ily |
| int | was_moving |
| int | was_color |
| double | ih |
| double | is |
| double | iv |
| double | isd |
| int | ihd |
| unsigned int | icolor |
| BumpScope::BumpScope | ( | long int | winid | ) |
| BumpScope::~BumpScope | ( | ) | [virtual] |
Definition at line 55 of file bumpscope.cpp.
| void BumpScope::resize | ( | const QSize & | size | ) | [virtual] |
| bool BumpScope::process | ( | VisualNode * | node | ) | [virtual] |
| bool BumpScope::draw | ( | QPainter * | p, | |
| const QColor & | back | |||
| ) | [virtual] |
| void BumpScope::handleKeyPress | ( | const QString & | action | ) | [inline, virtual] |
| void BumpScope::blur_8 | ( | unsigned char * | ptr, | |
| int | w, | |||
| int | h, | |||
| int | bpl | |||
| ) | [private] |
| void BumpScope::generate_intense | ( | void | ) | [private] |
| void BumpScope::generate_cmap | ( | unsigned int | color | ) | [private] |
| void BumpScope::generate_phongdat | ( | void | ) | [private] |
| void BumpScope::translate | ( | int | x, | |
| int | y, | |||
| int * | xo, | |||
| int * | yo, | |||
| int * | xd, | |||
| int * | yd, | |||
| int * | angle | |||
| ) | [private] |
| void BumpScope::draw_vert_line | ( | unsigned char * | buffer, | |
| int | x, | |||
| int | y1, | |||
| int | y2 | |||
| ) | [inline, private] |
| void BumpScope::render_light | ( | int | lx, | |
| int | ly | |||
| ) | [private] |
| void BumpScope::rgb_to_hsv | ( | unsigned int | color, | |
| double * | h, | |||
| double * | s, | |||
| double * | v | |||
| ) | [private] |
| void BumpScope::hsv_to_rgb | ( | double | h, | |
| double | s, | |||
| double | v, | |||
| unsigned int * | color | |||
| ) | [private] |
QSize BumpScope::size [private] |
SDL_Surface* BumpScope::surface [private] |
Definition at line 44 of file bumpscope.h.
Referenced by BumpScope(), draw(), generate_cmap(), process(), render_light(), and resize().
unsigned int BumpScope::m_color [private] |
unsigned int BumpScope::m_x [private] |
unsigned int BumpScope::m_y [private] |
unsigned int BumpScope::m_width [private] |
Definition at line 47 of file bumpscope.h.
Referenced by BumpScope(), draw(), process(), render_light(), resize(), and translate().
unsigned int BumpScope::m_height [private] |
Definition at line 47 of file bumpscope.h.
Referenced by BumpScope(), draw(), process(), render_light(), resize(), and translate().
unsigned int BumpScope::m_phongrad [private] |
Definition at line 48 of file bumpscope.h.
Referenced by BumpScope(), generate_phongdat(), render_light(), and resize().
bool BumpScope::color_cycle [private] |
bool BumpScope::moving_light [private] |
bool BumpScope::diamond [private] |
int BumpScope::bpl [private] |
Definition at line 54 of file bumpscope.h.
Referenced by BumpScope(), draw_vert_line(), process(), render_light(), and resize().
vector<vector<unsigned char> > BumpScope::phongdat [private] |
Definition at line 56 of file bumpscope.h.
Referenced by generate_phongdat(), render_light(), resize(), and ~BumpScope().
unsigned char* BumpScope::rgb_buf [private] |
Definition at line 57 of file bumpscope.h.
Referenced by BumpScope(), process(), render_light(), resize(), and ~BumpScope().
double BumpScope::intense1[256] [private] |
double BumpScope::intense2[256] [private] |
int BumpScope::iangle [private] |
int BumpScope::ixo [private] |
int BumpScope::iyo [private] |
int BumpScope::ixd [private] |
int BumpScope::iyd [private] |
int BumpScope::ilx [private] |
int BumpScope::ily [private] |
int BumpScope::was_moving [private] |
int BumpScope::was_color [private] |
double BumpScope::ih [private] |
double BumpScope::is [private] |
double BumpScope::iv [private] |
double BumpScope::isd [private] |
int BumpScope::ihd [private] |
unsigned int BumpScope::icolor [private] |
1.5.5