MythTV  master
Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
GLSingleView Class Reference

#include <glsingleview.h>

Inheritance diagram for GLSingleView:
Inheritance graph
[legend]
Collaboration diagram for GLSingleView:
Collaboration graph
[legend]

Public Member Functions

 GLSingleView (const ThumbList &itemList, int *pos, int slideShow, int sortorder, QWidget *parent)
 
 ~GLSingleView ()
 
void CleanUp (void)
 
void Ready ()
 
void LoadImage (QImage image, QSize origSize)
 
- Public Member Functions inherited from ImageView
 ImageView (const ThumbList &itemList, int *pos, int slideShow, int sortorder)
 
ThumbItemgetCurrentItem () const
 
virtual ~ImageView ()
 

Protected Member Functions

void initializeGL (void) override
 
void Rotate (int angle) override
 
void DisplayNext (bool reset, bool loadImage) override
 
void DisplayPrev (bool reset, bool loadImage) override
 
void Load (void) override
 
void resizeGL (int w, int h) override
 
void paintGL (void) override
 
void paintTexture (void)
 
void createTexInfo (void)
 
void keyPressEvent (QKeyEvent *e) override
 
void checkPosition (void)
 
void SetZoom (float zoom) override
 
void SetTransitionTimeout (int timeout)
 
int GetNearestGLTextureSize (int) const
 
void RegisterEffects (void) override
 
void RunEffect (const QString &effect) override
 
void EffectNone (void)
 
void EffectBlend (void)
 
void EffectZoomBlend (void)
 
void EffectFade (void)
 
void EffectRotate (void)
 
void EffectBend (void)
 
void EffectInOut (void)
 
void EffectSlide (void)
 
void EffectFlutter (void)
 
void EffectCube (void)
 
void EffectKenBurns (void)
 
- Protected Member Functions inherited from ImageView
virtual QString GetRandomEffect (void) const
 
void UpdateLCD (const ThumbItem *item)
 
QString GetDescriptionStatus (void) const
 
void GetScreenShot (QImage &image, const ThumbItem *item)
 
virtual void AddItems (const ThumbList &itemList)
 
ThumbItemadvanceItem ()
 
ThumbItemretreatItem ()
 

Private Slots

void SlideTimeout (void)
 

Private Member Functions

float FindMaxScale (float x_loc, float y_loc)
 
void FindRandXY (float &x_loc, float &y_loc)
 

Private Attributes

float m_source_x {0.0F}
 
float m_source_y {0.0F}
 
ScaleMax m_scaleMax {kScaleToFit}
 
int m_texMaxDim {512}
 
QSize m_texSize {512,512}
 
GLTexture m_texItem [2]
 
int m_texCur {0}
 
bool m_tex1First {true}
 
GLuint m_texInfo {0}
 
int m_effect_rotate_direction {0}
 
MythTimer m_effect_frame_time
 
int m_effect_transition_timeout {2000}
 
float m_effect_transition_timeout_inv {1.0F / 2000}
 
float m_effect_flutter_points [40][40][3]
 
float m_effect_cube_xrot {0.0F}
 
float m_effect_cube_yrot {0.0F}
 
float m_effect_cube_zrot {0.0F}
 
float m_effect_kenBurns_location_x [2]
 
float m_effect_kenBurns_location_y [2]
 
int m_effect_kenBurns_projection [2]
 
MythTimer m_effect_kenBurns_image_time [2]
 
float m_effect_kenBurns_image_timeout {0.0F}
 
KenBurnsImageLoaderm_effect_kenBurns_imageLoadThread {nullptr}
 
bool m_effect_kenBurns_image_ready {true}
 
QImage m_effect_kenBurns_image
 
QSize m_effect_kenBurns_orig_image_size
 
ThumbItemm_effect_kenBurns_item {nullptr}
 
bool m_effect_kenBurns_initialized {false}
 
bool m_effect_kenBurns_new_image_started {true}
 

Additional Inherited Members

- Static Protected Member Functions inherited from ImageView
static SequenceBaseComposeSlideshowSequence (int slideshow_sequencing)
 
- Protected Attributes inherited from ImageView
QSize m_screenSize {640,480}
 
float m_wmult {1.0F}
 
float m_hmult {1.0F}
 
int m_pos
 
int * m_savedPos {nullptr}
 
int m_movieState {0}
 
float m_zoom {1.0F}
 
bool m_info_show {false}
 
bool m_info_show_short {false}
 
bool m_slideshow_running {false}
 
const int m_slideshow_sequencing
 
int m_slideshow_frame_delay {2}
 
int m_slideshow_frame_delay_state {2000}
 
QTimer * m_slideshow_timer {nullptr}
 
const char * m_slideshow_mode {nullptr}
 
bool m_effect_running {false}
 
int m_effect_current_frame {0}
 
QString m_effect_method
 
QMap< QString, QString > m_effect_map
 
bool m_effect_random {false}
 

Detailed Description

Definition at line 60 of file glsingleview.h.

Constructor & Destructor Documentation

◆ GLSingleView()

GLSingleView::GLSingleView ( const ThumbList itemList,
int *  pos,
int  slideShow,
int  sortorder,
QWidget *  parent 
)

Definition at line 79 of file glsingleview.cpp.

◆ ~GLSingleView()

GLSingleView::~GLSingleView ( )

Definition at line 129 of file glsingleview.cpp.

Member Function Documentation

◆ CleanUp()

void GLSingleView::CleanUp ( void  )

Definition at line 136 of file glsingleview.cpp.

Referenced by GLSDialog::closeEvent(), and ~GLSingleView().

◆ Ready()

void GLSingleView::Ready ( )
inline

Definition at line 70 of file glsingleview.h.

Referenced by KenBurnsImageLoader::run().

◆ LoadImage()

void GLSingleView::LoadImage ( QImage  image,
QSize  origSize 
)

Definition at line 1480 of file glsingleview.cpp.

Referenced by KenBurnsImageLoader::run().

◆ initializeGL()

void GLSingleView::initializeGL ( void  )
overrideprotected

Definition at line 160 of file glsingleview.cpp.

◆ Rotate()

void GLSingleView::Rotate ( int  angle)
overrideprotectedvirtual

Implements ImageView.

Definition at line 634 of file glsingleview.cpp.

Referenced by keyPressEvent().

◆ DisplayNext()

void GLSingleView::DisplayNext ( bool  reset,
bool  loadImage 
)
overrideprotectedvirtual

Implements ImageView.

Definition at line 534 of file glsingleview.cpp.

Referenced by keyPressEvent(), and SlideTimeout().

◆ DisplayPrev()

void GLSingleView::DisplayPrev ( bool  reset,
bool  loadImage 
)
overrideprotectedvirtual

Implements ImageView.

Definition at line 571 of file glsingleview.cpp.

Referenced by keyPressEvent().

◆ Load()

void GLSingleView::Load ( void  )
overrideprotectedvirtual

Implements ImageView.

Definition at line 603 of file glsingleview.cpp.

Referenced by DisplayNext(), DisplayPrev(), initializeGL(), and SlideTimeout().

◆ resizeGL()

void GLSingleView::resizeGL ( int  w,
int  h 
)
overrideprotected

Definition at line 182 of file glsingleview.cpp.

◆ paintGL()

void GLSingleView::paintGL ( void  )
overrideprotected

Definition at line 191 of file glsingleview.cpp.

◆ paintTexture()

void GLSingleView::paintTexture ( void  )
protected

◆ createTexInfo()

void GLSingleView::createTexInfo ( void  )
protected

Definition at line 1444 of file glsingleview.cpp.

Referenced by paintTexture().

◆ keyPressEvent()

void GLSingleView::keyPressEvent ( QKeyEvent *  e)
overrideprotected

Definition at line 261 of file glsingleview.cpp.

◆ checkPosition()

void GLSingleView::checkPosition ( void  )
protected

Definition at line 486 of file glsingleview.cpp.

Referenced by keyPressEvent().

◆ SetZoom()

void GLSingleView::SetZoom ( float  zoom)
overrideprotectedvirtual

Implements ImageView.

Definition at line 651 of file glsingleview.cpp.

Referenced by keyPressEvent().

◆ SetTransitionTimeout()

void GLSingleView::SetTransitionTimeout ( int  timeout)
protected

Definition at line 656 of file glsingleview.cpp.

Referenced by GLSingleView().

◆ GetNearestGLTextureSize()

int GLSingleView::GetNearestGLTextureSize ( int  v) const
protected

Definition at line 664 of file glsingleview.cpp.

Referenced by Load(), and paintGL().

◆ RegisterEffects()

void GLSingleView::RegisterEffects ( void  )
overrideprotectedvirtual

Implements ImageView.

Definition at line 686 of file glsingleview.cpp.

Referenced by GLSingleView().

◆ RunEffect()

void GLSingleView::RunEffect ( const QString &  effect)
overrideprotectedvirtual

Implements ImageView.

Definition at line 701 of file glsingleview.cpp.

Referenced by paintGL().

◆ EffectNone()

void GLSingleView::EffectNone ( void  )
protected

Definition at line 727 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectBlend()

void GLSingleView::EffectBlend ( void  )
protected

Definition at line 734 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectZoomBlend()

void GLSingleView::EffectZoomBlend ( void  )
protected

Definition at line 763 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectFade()

void GLSingleView::EffectFade ( void  )
protected

Definition at line 840 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectRotate()

void GLSingleView::EffectRotate ( void  )
protected

Definition at line 781 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectBend()

void GLSingleView::EffectBend ( void  )
protected

Definition at line 811 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectInOut()

void GLSingleView::EffectInOut ( void  )
protected

Definition at line 860 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectSlide()

void GLSingleView::EffectSlide ( void  )
protected

Definition at line 901 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectFlutter()

void GLSingleView::EffectFlutter ( void  )
protected

Definition at line 929 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectCube()

void GLSingleView::EffectCube ( void  )
protected

Definition at line 1023 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectKenBurns()

void GLSingleView::EffectKenBurns ( void  )
protected

Definition at line 1212 of file glsingleview.cpp.

Referenced by RunEffect().

◆ FindMaxScale()

float GLSingleView::FindMaxScale ( float  x_loc,
float  y_loc 
)
private

Definition at line 1486 of file glsingleview.cpp.

Referenced by EffectKenBurns().

◆ FindRandXY()

void GLSingleView::FindRandXY ( float &  x_loc,
float &  y_loc 
)
private

Definition at line 1494 of file glsingleview.cpp.

Referenced by EffectKenBurns().

◆ SlideTimeout

void GLSingleView::SlideTimeout ( void  )
privateslot

Definition at line 1373 of file glsingleview.cpp.

Referenced by GLSingleView().

Member Data Documentation

◆ m_source_x

float GLSingleView::m_source_x {0.0F}
private

Definition at line 121 of file glsingleview.h.

Referenced by checkPosition(), DisplayNext(), DisplayPrev(), keyPressEvent(), and paintTexture().

◆ m_source_y

float GLSingleView::m_source_y {0.0F}
private

Definition at line 122 of file glsingleview.h.

Referenced by checkPosition(), DisplayNext(), DisplayPrev(), keyPressEvent(), and paintTexture().

◆ m_scaleMax

ScaleMax GLSingleView::m_scaleMax {kScaleToFit}
private

◆ m_texMaxDim

int GLSingleView::m_texMaxDim {512}
private

Definition at line 126 of file glsingleview.h.

Referenced by GetNearestGLTextureSize(), and initializeGL().

◆ m_texSize

QSize GLSingleView::m_texSize {512,512}
private

Definition at line 127 of file glsingleview.h.

Referenced by EffectKenBurns(), Load(), and paintGL().

◆ m_texItem

GLTexture GLSingleView::m_texItem[2]
private

◆ m_texCur

int GLSingleView::m_texCur {0}
private

◆ m_tex1First

bool GLSingleView::m_tex1First {true}
private

Definition at line 130 of file glsingleview.h.

Referenced by DisplayNext(), DisplayPrev(), EffectKenBurns(), keyPressEvent(), Load(), and paintGL().

◆ m_texInfo

GLuint GLSingleView::m_texInfo {0}
private

Definition at line 133 of file glsingleview.h.

Referenced by CleanUp(), createTexInfo(), and paintTexture().

◆ m_effect_rotate_direction

int GLSingleView::m_effect_rotate_direction {0}
private

Definition at line 136 of file glsingleview.h.

Referenced by EffectBend(), EffectInOut(), EffectRotate(), and EffectSlide().

◆ m_effect_frame_time

MythTimer GLSingleView::m_effect_frame_time
private

◆ m_effect_transition_timeout

int GLSingleView::m_effect_transition_timeout {2000}
private

◆ m_effect_transition_timeout_inv

float GLSingleView::m_effect_transition_timeout_inv {1.0F / 2000}
private

◆ m_effect_flutter_points

float GLSingleView::m_effect_flutter_points[40][40][3]
private

Definition at line 142 of file glsingleview.h.

Referenced by EffectFlutter().

◆ m_effect_cube_xrot

float GLSingleView::m_effect_cube_xrot {0.0F}
private

Definition at line 143 of file glsingleview.h.

Referenced by EffectCube().

◆ m_effect_cube_yrot

float GLSingleView::m_effect_cube_yrot {0.0F}
private

Definition at line 144 of file glsingleview.h.

Referenced by EffectCube().

◆ m_effect_cube_zrot

float GLSingleView::m_effect_cube_zrot {0.0F}
private

Definition at line 145 of file glsingleview.h.

Referenced by EffectCube().

◆ m_effect_kenBurns_location_x

float GLSingleView::m_effect_kenBurns_location_x[2]
private

Definition at line 146 of file glsingleview.h.

Referenced by EffectKenBurns(), and GLSingleView().

◆ m_effect_kenBurns_location_y

float GLSingleView::m_effect_kenBurns_location_y[2]
private

Definition at line 147 of file glsingleview.h.

Referenced by EffectKenBurns(), and GLSingleView().

◆ m_effect_kenBurns_projection

int GLSingleView::m_effect_kenBurns_projection[2]
private

Definition at line 148 of file glsingleview.h.

Referenced by EffectKenBurns(), and GLSingleView().

◆ m_effect_kenBurns_image_time

MythTimer GLSingleView::m_effect_kenBurns_image_time[2]
private

Definition at line 149 of file glsingleview.h.

Referenced by EffectKenBurns().

◆ m_effect_kenBurns_image_timeout

float GLSingleView::m_effect_kenBurns_image_timeout {0.0F}
private

Definition at line 150 of file glsingleview.h.

Referenced by EffectKenBurns().

◆ m_effect_kenBurns_imageLoadThread

KenBurnsImageLoader* GLSingleView::m_effect_kenBurns_imageLoadThread {nullptr}
private

Definition at line 151 of file glsingleview.h.

Referenced by EffectKenBurns().

◆ m_effect_kenBurns_image_ready

bool GLSingleView::m_effect_kenBurns_image_ready {true}
private

Definition at line 152 of file glsingleview.h.

Referenced by EffectKenBurns(), and Ready().

◆ m_effect_kenBurns_image

QImage GLSingleView::m_effect_kenBurns_image
private

Definition at line 153 of file glsingleview.h.

Referenced by EffectKenBurns(), and LoadImage().

◆ m_effect_kenBurns_orig_image_size

QSize GLSingleView::m_effect_kenBurns_orig_image_size
private

Definition at line 154 of file glsingleview.h.

Referenced by EffectKenBurns(), and LoadImage().

◆ m_effect_kenBurns_item

ThumbItem* GLSingleView::m_effect_kenBurns_item {nullptr}
private

Definition at line 155 of file glsingleview.h.

Referenced by EffectKenBurns().

◆ m_effect_kenBurns_initialized

bool GLSingleView::m_effect_kenBurns_initialized {false}
private

Definition at line 156 of file glsingleview.h.

Referenced by EffectKenBurns().

◆ m_effect_kenBurns_new_image_started

bool GLSingleView::m_effect_kenBurns_new_image_started {true}
private

Definition at line 157 of file glsingleview.h.

Referenced by EffectKenBurns().


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