MythTV
master
|
#include <bumpscope.h>
Public Member Functions | |
BumpScope () | |
~BumpScope () override | |
void | resize (const QSize &size) override |
bool | process (VisualNode *node) override |
bool | draw (QPainter *p, const QColor &back) override |
void | handleKeyPress ([[maybe_unused]] const QString &action) override |
![]() | |
VisualBase (bool screensaverenable=false) | |
virtual | ~VisualBase (void) |
virtual bool | processUndisplayed (VisualNode *) |
virtual int | getDesiredFPS (void) |
virtual unsigned long | getDesiredSamples (void) |
Private Member Functions | |
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) const |
void | draw_vert_line (unsigned char *buffer, int x, int y1, int y2) const |
void | render_light (int lx, int ly) |
Static Private Member Functions | |
static void | blur_8 (unsigned char *ptr, int w, int h, ptrdiff_t bpl) |
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 {nullptr} |
QSize | m_size {0,0} |
unsigned int | m_color {0x2050FF} |
unsigned int | m_x {0} |
unsigned int | m_y {0} |
unsigned int | m_width {800} |
unsigned int | m_height {600} |
unsigned int | m_phongRad {800} |
bool | m_colorCycle {true} |
bool | m_movingLight {true} |
ptrdiff_t | m_bpl {0} |
std::vector< std::vector< unsigned char > > | m_phongDat {} |
unsigned char * | m_rgbBuf {nullptr} |
std::array< double, 256 > | m_intense1 {} |
std::array< double, 256 > | m_intense2 {} |
int | m_iangle {0} |
int | m_ixo {0} |
int | m_iyo {0} |
int | m_ixd {0} |
int | m_iyd {0} |
int | m_ilx {0} |
int | m_ily {0} |
int | m_wasMoving {0} |
int | m_wasColor {0} |
double | m_ih {0.0} |
double | m_is {0.0} |
double | m_iv {0.0} |
double | m_isd {0.0} |
int | m_ihd {0} |
unsigned int | m_icolor {0} |
Additional Inherited Members | |
![]() | |
static void | drawWarning (QPainter *p, const QColor &back, QSize size, const QString &warning, int fontsize=28) |
![]() | |
int | m_fps {20} |
bool | m_xscreensaverenable {true} |
Definition at line 8 of file bumpscope.h.
BumpScope::BumpScope | ( | ) |
Definition at line 24 of file bumpscope.cpp.
|
override |
Definition at line 37 of file bumpscope.cpp.
|
overridevirtual |
Implements VisualBase.
Definition at line 46 of file bumpscope.cpp.
|
overridevirtual |
Implements VisualBase.
Definition at line 347 of file bumpscope.cpp.
|
overridevirtual |
Implements VisualBase.
Definition at line 383 of file bumpscope.cpp.
|
inlineoverridevirtual |
Reimplemented from VisualBase.
Definition at line 17 of file bumpscope.h.
|
staticprivate |
Definition at line 79 of file bumpscope.cpp.
Referenced by process().
|
private |
Definition at line 93 of file bumpscope.cpp.
|
private |
Definition at line 123 of file bumpscope.cpp.
Referenced by resize().
|
private |
Definition at line 167 of file bumpscope.cpp.
Referenced by draw().
|
inlineprivate |
Definition at line 217 of file bumpscope.cpp.
Referenced by process().
|
private |
Definition at line 242 of file bumpscope.cpp.
Referenced by draw().
|
staticprivate |
Definition at line 275 of file bumpscope.cpp.
Referenced by draw().
|
staticprivate |
Definition at line 309 of file bumpscope.cpp.
Referenced by draw().
|
private |
Definition at line 34 of file bumpscope.h.
Referenced by draw(), generate_cmap(), process(), render_light(), resize(), and ~BumpScope().
|
private |
Definition at line 36 of file bumpscope.h.
Referenced by resize().
|
private |
Definition at line 38 of file bumpscope.h.
|
private |
Definition at line 39 of file bumpscope.h.
|
private |
Definition at line 40 of file bumpscope.h.
|
private |
Definition at line 41 of file bumpscope.h.
Referenced by draw(), process(), render_light(), resize(), and translate().
|
private |
Definition at line 42 of file bumpscope.h.
Referenced by draw(), process(), render_light(), resize(), and translate().
|
private |
Definition at line 43 of file bumpscope.h.
Referenced by generate_phongdat(), render_light(), and resize().
Definition at line 45 of file bumpscope.h.
Referenced by draw().
Definition at line 46 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 49 of file bumpscope.h.
Referenced by draw_vert_line(), process(), render_light(), and resize().
|
private |
Definition at line 51 of file bumpscope.h.
Referenced by generate_phongdat(), render_light(), resize(), and ~BumpScope().
|
private |
Definition at line 52 of file bumpscope.h.
Referenced by process(), render_light(), resize(), and ~BumpScope().
|
private |
Definition at line 53 of file bumpscope.h.
Referenced by BumpScope(), and generate_cmap().
|
private |
Definition at line 54 of file bumpscope.h.
Referenced by BumpScope(), and generate_cmap().
|
private |
Definition at line 56 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 57 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 58 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 59 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 60 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 61 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 62 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 63 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 64 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 65 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 66 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 67 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 68 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 69 of file bumpscope.h.
Referenced by draw().
|
private |
Definition at line 70 of file bumpscope.h.
Referenced by draw().