BumpScope Class Reference

#include <bumpscope.h>

Inheritance diagram for BumpScope:

VisualBase

List of all members.


Detailed Description

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

Constructor & Destructor Documentation

BumpScope::BumpScope ( long int  winid  ) 

Definition at line 20 of file bumpscope.cpp.

Referenced by BumpScopeFactory::create().

BumpScope::~BumpScope (  )  [virtual]

Definition at line 55 of file bumpscope.cpp.


Member Function Documentation

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

Implements VisualBase.

Definition at line 67 of file bumpscope.cpp.

Referenced by ~BumpScope().

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

Implements VisualBase.

Definition at line 403 of file bumpscope.cpp.

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

Implements VisualBase.

Definition at line 441 of file bumpscope.cpp.

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

Implements VisualBase.

Definition at line 24 of file bumpscope.h.

void BumpScope::blur_8 ( unsigned char *  ptr,
int  w,
int  h,
int  bpl 
) [private]

Definition at line 107 of file bumpscope.cpp.

Referenced by process().

void BumpScope::generate_intense ( void   )  [private]

Definition at line 126 of file bumpscope.cpp.

Referenced by resize().

void BumpScope::generate_cmap ( unsigned int  color  )  [private]

Definition at line 139 of file bumpscope.cpp.

Referenced by draw(), and resize().

void BumpScope::generate_phongdat ( void   )  [private]

Definition at line 175 of file bumpscope.cpp.

Referenced by resize().

void BumpScope::translate ( int  x,
int  y,
int *  xo,
int *  yo,
int *  xd,
int *  yd,
int *  angle 
) [private]

Definition at line 221 of file bumpscope.cpp.

Referenced by draw().

void BumpScope::draw_vert_line ( unsigned char *  buffer,
int  x,
int  y1,
int  y2 
) [inline, private]

Definition at line 271 of file bumpscope.cpp.

Referenced by process().

void BumpScope::render_light ( int  lx,
int  ly 
) [private]

Definition at line 299 of file bumpscope.cpp.

Referenced by draw().

void BumpScope::rgb_to_hsv ( unsigned int  color,
double *  h,
double *  s,
double *  v 
) [private]

Definition at line 330 of file bumpscope.cpp.

Referenced by draw().

void BumpScope::hsv_to_rgb ( double  h,
double  s,
double  v,
unsigned int *  color 
) [private]

Definition at line 366 of file bumpscope.cpp.

Referenced by draw().


Member Data Documentation

QSize BumpScope::size [private]

Definition at line 42 of file bumpscope.h.

Referenced by resize().

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]

Definition at line 46 of file bumpscope.h.

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

unsigned int BumpScope::m_x [private]

Definition at line 47 of file bumpscope.h.

Referenced by draw(), and resize().

unsigned int BumpScope::m_y [private]

Definition at line 47 of file bumpscope.h.

Referenced by draw(), and resize().

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().

Definition at line 50 of file bumpscope.h.

Referenced by BumpScope(), and draw().

Definition at line 51 of file bumpscope.h.

Referenced by BumpScope(), and draw().

Definition at line 52 of file bumpscope.h.

Referenced by BumpScope(), and generate_phongdat().

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]

Definition at line 58 of file bumpscope.h.

Referenced by generate_cmap(), and generate_intense().

double BumpScope::intense2[256] [private]

Definition at line 58 of file bumpscope.h.

Referenced by generate_cmap(), and generate_intense().

int BumpScope::iangle [private]

Definition at line 60 of file bumpscope.h.

Referenced by draw().

int BumpScope::ixo [private]

Definition at line 60 of file bumpscope.h.

Referenced by draw().

int BumpScope::iyo [private]

Definition at line 60 of file bumpscope.h.

Referenced by draw().

int BumpScope::ixd [private]

Definition at line 60 of file bumpscope.h.

Referenced by draw().

int BumpScope::iyd [private]

Definition at line 60 of file bumpscope.h.

Referenced by draw().

int BumpScope::ilx [private]

Definition at line 60 of file bumpscope.h.

Referenced by draw().

int BumpScope::ily [private]

Definition at line 60 of file bumpscope.h.

Referenced by draw().

int BumpScope::was_moving [private]

Definition at line 61 of file bumpscope.h.

Referenced by BumpScope(), and draw().

int BumpScope::was_color [private]

Definition at line 61 of file bumpscope.h.

Referenced by BumpScope(), and draw().

double BumpScope::ih [private]

Definition at line 62 of file bumpscope.h.

Referenced by draw().

double BumpScope::is [private]

Definition at line 62 of file bumpscope.h.

Referenced by draw().

double BumpScope::iv [private]

Definition at line 62 of file bumpscope.h.

Referenced by draw().

double BumpScope::isd [private]

Definition at line 62 of file bumpscope.h.

Referenced by BumpScope(), and draw().

int BumpScope::ihd [private]

Definition at line 63 of file bumpscope.h.

Referenced by BumpScope(), and draw().

unsigned int BumpScope::icolor [private]

Definition at line 64 of file bumpscope.h.

Referenced by draw().


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

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