BumpScope Class Reference

#include <bumpscope.h>

Inheritance diagram for BumpScope:
VisualBase

List of all members.

Public Member Functions

 BumpScope ()
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_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)

Static Private Member Functions

static void rgb_to_hsv (unsigned int color, double *h, double *s, double *v)
static void hsv_to_rgb (double h, double s, double v, unsigned int *color)

Private Attributes

QImage * m_image
QSize m_size
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 m_color_cycle
bool m_moving_light
int m_bpl
vector< vector< unsigned char > > m_phongdat
unsigned char * m_rgb_buf
double m_intense1 [256]
double m_intense2 [256]
int m_iangle
int m_ixo
int m_iyo
int m_ixd
int m_iyd
int m_ilx
int m_ily
int m_was_moving
int m_was_color
double m_ih
double m_is
double m_iv
double m_isd
int m_ihd
unsigned int m_icolor

Detailed Description

Definition at line 12 of file bumpscope.h.


Constructor & Destructor Documentation

BumpScope::BumpScope (  ) 

Definition at line 20 of file bumpscope.cpp.

BumpScope::~BumpScope (  )  [virtual]

Definition at line 53 of file bumpscope.cpp.


Member Function Documentation

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

Implements VisualBase.

Definition at line 66 of file bumpscope.cpp.

Referenced by ~BumpScope().

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

Implements VisualBase.

Definition at line 378 of file bumpscope.cpp.

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

Implements VisualBase.

Definition at line 417 of file bumpscope.cpp.

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

Implements VisualBase.

Definition at line 21 of file bumpscope.h.

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

Definition at line 102 of file bumpscope.cpp.

Referenced by process().

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

Definition at line 121 of file bumpscope.cpp.

Referenced by draw(), and resize().

void BumpScope::generate_phongdat ( void   )  [private]

Definition at line 150 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 196 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 246 of file bumpscope.cpp.

Referenced by process().

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

Definition at line 274 of file bumpscope.cpp.

Referenced by draw().

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

Definition at line 305 of file bumpscope.cpp.

Referenced by draw().

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

Definition at line 341 of file bumpscope.cpp.

Referenced by draw().


Member Data Documentation

QImage* BumpScope::m_image [private]

Definition at line 38 of file bumpscope.h.

Referenced by draw(), generate_cmap(), process(), render_light(), resize(), and ~BumpScope().

QSize BumpScope::m_size [private]

Definition at line 40 of file bumpscope.h.

Referenced by resize().

unsigned int BumpScope::m_color [private]

Definition at line 42 of file bumpscope.h.

Referenced by draw(), and resize().

unsigned int BumpScope::m_x [private]

Definition at line 43 of file bumpscope.h.

Referenced by draw(), and resize().

unsigned int BumpScope::m_y [private]

Definition at line 44 of file bumpscope.h.

Referenced by draw(), and resize().

unsigned int BumpScope::m_width [private]

Definition at line 45 of file bumpscope.h.

Referenced by draw(), process(), render_light(), resize(), and translate().

unsigned int BumpScope::m_height [private]

Definition at line 46 of file bumpscope.h.

Referenced by draw(), process(), render_light(), resize(), and translate().

unsigned int BumpScope::m_phongrad [private]

Definition at line 47 of file bumpscope.h.

Referenced by generate_phongdat(), render_light(), and resize().

Definition at line 49 of file bumpscope.h.

Referenced by draw().

Definition at line 50 of file bumpscope.h.

Referenced by draw().

int BumpScope::m_bpl [private]

Definition at line 53 of file bumpscope.h.

Referenced by draw_vert_line(), process(), render_light(), and resize().

vector<vector<unsigned char> > BumpScope::m_phongdat [private]

Definition at line 55 of file bumpscope.h.

Referenced by generate_phongdat(), render_light(), resize(), and ~BumpScope().

unsigned char* BumpScope::m_rgb_buf [private]

Definition at line 56 of file bumpscope.h.

Referenced by process(), render_light(), resize(), and ~BumpScope().

double BumpScope::m_intense1[256] [private]

Definition at line 57 of file bumpscope.h.

Referenced by BumpScope(), and generate_cmap().

double BumpScope::m_intense2[256] [private]

Definition at line 58 of file bumpscope.h.

Referenced by BumpScope(), and generate_cmap().

int BumpScope::m_iangle [private]

Definition at line 60 of file bumpscope.h.

Referenced by draw().

int BumpScope::m_ixo [private]

Definition at line 61 of file bumpscope.h.

Referenced by draw().

int BumpScope::m_iyo [private]

Definition at line 62 of file bumpscope.h.

Referenced by draw().

int BumpScope::m_ixd [private]

Definition at line 63 of file bumpscope.h.

Referenced by draw().

int BumpScope::m_iyd [private]

Definition at line 64 of file bumpscope.h.

Referenced by draw().

int BumpScope::m_ilx [private]

Definition at line 65 of file bumpscope.h.

Referenced by draw().

int BumpScope::m_ily [private]

Definition at line 66 of file bumpscope.h.

Referenced by draw().

int BumpScope::m_was_moving [private]

Definition at line 67 of file bumpscope.h.

Referenced by draw().

int BumpScope::m_was_color [private]

Definition at line 68 of file bumpscope.h.

Referenced by draw().

double BumpScope::m_ih [private]

Definition at line 69 of file bumpscope.h.

Referenced by draw().

double BumpScope::m_is [private]

Definition at line 70 of file bumpscope.h.

Referenced by draw().

double BumpScope::m_iv [private]

Definition at line 71 of file bumpscope.h.

Referenced by draw().

double BumpScope::m_isd [private]

Definition at line 72 of file bumpscope.h.

Referenced by draw().

int BumpScope::m_ihd [private]

Definition at line 73 of file bumpscope.h.

Referenced by draw().

unsigned int BumpScope::m_icolor [private]

Definition at line 74 of file bumpscope.h.

Referenced by draw().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:41:53 2012 for MythTV by  doxygen 1.6.3