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 (ThumbList itemList, int *pos, int slideShow, int sordorder, 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
 
float m_source_y
 
ScaleMax m_scaleMax
 
int m_texMaxDim
 
QSize m_texSize
 
GLTexture m_texItem [2]
 
int m_texCur
 
bool m_tex1First
 
GLuint m_texInfo
 
int m_effect_rotate_direction
 
MythTimer m_effect_frame_time
 
int m_effect_transition_timeout
 
float m_effect_transition_timeout_inv
 
float m_effect_flutter_points [40][40][3]
 
float m_effect_cube_xrot
 
float m_effect_cube_yrot
 
float m_effect_cube_zrot
 
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
 
KenBurnsImageLoaderm_effect_kenBurns_imageLoadThread
 
bool m_effect_kenBurns_image_ready
 
QImage m_effect_kenBurns_image
 
QSize m_effect_kenBurns_orig_image_size
 
ThumbItemm_effect_kenBurns_item
 
bool m_effect_kenBurns_initialized
 
bool m_effect_kenBurns_new_image_started
 

Additional Inherited Members

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

Detailed Description

Definition at line 60 of file glsingleview.h.

Constructor & Destructor Documentation

◆ GLSingleView()

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

Definition at line 78 of file glsingleview.cpp.

◆ ~GLSingleView()

GLSingleView::~GLSingleView ( )

Definition at line 157 of file glsingleview.cpp.

Member Function Documentation

◆ CleanUp()

void GLSingleView::CleanUp ( void  )

Definition at line 164 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 1509 of file glsingleview.cpp.

Referenced by KenBurnsImageLoader::run().

◆ initializeGL()

void GLSingleView::initializeGL ( void  )
overrideprotected

Definition at line 188 of file glsingleview.cpp.

◆ Rotate()

void GLSingleView::Rotate ( int  angle)
overrideprotectedvirtual

Implements ImageView.

Definition at line 662 of file glsingleview.cpp.

Referenced by keyPressEvent().

◆ DisplayNext()

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

Implements ImageView.

Definition at line 562 of file glsingleview.cpp.

Referenced by keyPressEvent(), and SlideTimeout().

◆ DisplayPrev()

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

Implements ImageView.

Definition at line 599 of file glsingleview.cpp.

Referenced by keyPressEvent().

◆ Load()

void GLSingleView::Load ( void  )
overrideprotectedvirtual

Implements ImageView.

Definition at line 631 of file glsingleview.cpp.

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

◆ resizeGL()

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

Definition at line 210 of file glsingleview.cpp.

◆ paintGL()

void GLSingleView::paintGL ( void  )
overrideprotected

Definition at line 219 of file glsingleview.cpp.

◆ paintTexture()

void GLSingleView::paintTexture ( void  )
protected

◆ createTexInfo()

void GLSingleView::createTexInfo ( void  )
protected

Definition at line 1473 of file glsingleview.cpp.

Referenced by paintTexture().

◆ keyPressEvent()

void GLSingleView::keyPressEvent ( QKeyEvent *  e)
overrideprotected

Definition at line 289 of file glsingleview.cpp.

◆ checkPosition()

void GLSingleView::checkPosition ( void  )
protected

Definition at line 514 of file glsingleview.cpp.

Referenced by keyPressEvent().

◆ SetZoom()

void GLSingleView::SetZoom ( float  zoom)
overrideprotectedvirtual

Implements ImageView.

Definition at line 679 of file glsingleview.cpp.

Referenced by keyPressEvent().

◆ SetTransitionTimeout()

void GLSingleView::SetTransitionTimeout ( int  timeout)
protected

Definition at line 684 of file glsingleview.cpp.

Referenced by GLSingleView().

◆ GetNearestGLTextureSize()

int GLSingleView::GetNearestGLTextureSize ( int  v) const
protected

Definition at line 692 of file glsingleview.cpp.

Referenced by Load(), and paintGL().

◆ RegisterEffects()

void GLSingleView::RegisterEffects ( void  )
overrideprotectedvirtual

Implements ImageView.

Definition at line 714 of file glsingleview.cpp.

Referenced by GLSingleView().

◆ RunEffect()

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

Implements ImageView.

Definition at line 729 of file glsingleview.cpp.

Referenced by paintGL().

◆ EffectNone()

void GLSingleView::EffectNone ( void  )
protected

Definition at line 755 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectBlend()

void GLSingleView::EffectBlend ( void  )
protected

Definition at line 763 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectZoomBlend()

void GLSingleView::EffectZoomBlend ( void  )
protected

Definition at line 792 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectFade()

void GLSingleView::EffectFade ( void  )
protected

Definition at line 869 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectRotate()

void GLSingleView::EffectRotate ( void  )
protected

Definition at line 810 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectBend()

void GLSingleView::EffectBend ( void  )
protected

Definition at line 840 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectInOut()

void GLSingleView::EffectInOut ( void  )
protected

Definition at line 889 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectSlide()

void GLSingleView::EffectSlide ( void  )
protected

Definition at line 930 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectFlutter()

void GLSingleView::EffectFlutter ( void  )
protected

Definition at line 958 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectCube()

void GLSingleView::EffectCube ( void  )
protected

Definition at line 1052 of file glsingleview.cpp.

Referenced by RunEffect().

◆ EffectKenBurns()

void GLSingleView::EffectKenBurns ( void  )
protected

Definition at line 1241 of file glsingleview.cpp.

Referenced by RunEffect().

◆ FindMaxScale()

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

Definition at line 1515 of file glsingleview.cpp.

Referenced by EffectKenBurns().

◆ FindRandXY()

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

Definition at line 1524 of file glsingleview.cpp.

Referenced by EffectKenBurns().

◆ SlideTimeout

void GLSingleView::SlideTimeout ( void  )
privateslot

Definition at line 1402 of file glsingleview.cpp.

Referenced by GLSingleView().

Member Data Documentation

◆ m_source_x

float GLSingleView::m_source_x
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
private

Definition at line 122 of file glsingleview.h.

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

◆ m_scaleMax

ScaleMax GLSingleView::m_scaleMax
private

◆ m_texMaxDim

int GLSingleView::m_texMaxDim
private

Definition at line 126 of file glsingleview.h.

Referenced by GetNearestGLTextureSize(), and initializeGL().

◆ m_texSize

QSize GLSingleView::m_texSize
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
private

◆ m_tex1First

bool GLSingleView::m_tex1First
private

Definition at line 130 of file glsingleview.h.

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

◆ m_texInfo

GLuint GLSingleView::m_texInfo
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
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
private

◆ m_effect_transition_timeout_inv

float GLSingleView::m_effect_transition_timeout_inv
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
private

Definition at line 143 of file glsingleview.h.

Referenced by EffectCube().

◆ m_effect_cube_yrot

float GLSingleView::m_effect_cube_yrot
private

Definition at line 144 of file glsingleview.h.

Referenced by EffectCube().

◆ m_effect_cube_zrot

float GLSingleView::m_effect_cube_zrot
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
private

Definition at line 150 of file glsingleview.h.

Referenced by EffectKenBurns().

◆ m_effect_kenBurns_imageLoadThread

KenBurnsImageLoader* GLSingleView::m_effect_kenBurns_imageLoadThread
private

Definition at line 151 of file glsingleview.h.

Referenced by EffectKenBurns().

◆ m_effect_kenBurns_image_ready

bool GLSingleView::m_effect_kenBurns_image_ready
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
private

Definition at line 155 of file glsingleview.h.

Referenced by EffectKenBurns().

◆ m_effect_kenBurns_initialized

bool GLSingleView::m_effect_kenBurns_initialized
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
private

Definition at line 157 of file glsingleview.h.

Referenced by EffectKenBurns().


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