MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MythVisualMonoScopeOpenGL Class Reference

#include <mythvisualmonoscopeopengl.h>

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

Public Member Functions

 MythVisualMonoScopeOpenGL (AudioPlayer *Audio, MythRender *Render, bool Fade)
 
 ~MythVisualMonoScopeOpenGL () override
 
void Draw (QRect Area, MythPainter *, QPaintDevice *) override
 
- Public Member Functions inherited from VideoVisualMonoScope
 VideoVisualMonoScope (AudioPlayer *Audio, MythRender *Render, bool Fade)
 
QString Name () override
 
- Public Member Functions inherited from VideoVisual
 VideoVisual (AudioPlayer *audio, MythRender *render)
 
 ~VideoVisual () override
 
bool NeedsPrepare () const
 
virtual void Prepare (const QRect)
 
void add (const void *b, unsigned long b_len, std::chrono::milliseconds timecode, int c, int p) override
 
void prepare () override
 
- Public Member Functions inherited from MythTV::Visual
 Visual ()
 
virtual ~Visual ()
 
QMutex * mutex ()
 

Private Member Functions

MythRenderOpenGLInitialise (QRect Area)
 
void TearDown ()
 

Private Attributes

bool m_bufferMaps { false }
 
QOpenGLShaderProgram * m_openglShader { nullptr }
 
VertexStatesGL m_vbos
 
Vertices m_vertices
 

Additional Inherited Members

- Static Public Member Functions inherited from VideoVisual
static VideoVisualCreate (const QString &name, AudioPlayer *audio, MythRender *render)
 
static QStringList GetVisualiserList (RenderType type)
 
- Protected Member Functions inherited from VideoVisualMonoScope
void InitCommon (QRect Area)
 
bool UpdateVertices (float *Buffer)
 
void UpdateTime ()
 
- Protected Member Functions inherited from VideoVisual
VisualNodeGetNode (void)
 
void DeleteNodes (void)
 
std::chrono::milliseconds SetLastUpdate (void)
 
- Protected Attributes inherited from VideoVisualMonoScope
std::chrono::milliseconds m_lastTime { 0ms }
 
float m_hue { 0.0 }
 
float m_rate { 1.0 }
 
float m_lineWidth { 1.0 }
 
float m_maxLineWidth { 1.0 }
 
bool m_fade { false }
 
- Protected Attributes inherited from VideoVisual
AudioPlayerm_audio { nullptr }
 
bool m_needsPrepare { false }
 
bool m_disabled { false }
 
QRect m_area
 
MythRenderm_render { nullptr }
 
QList< VisualNode * > m_nodes
 
QDateTime m_lastUpdate
 

Detailed Description

Definition at line 13 of file mythvisualmonoscopeopengl.h.

Constructor & Destructor Documentation

◆ MythVisualMonoScopeOpenGL()

MythVisualMonoScopeOpenGL::MythVisualMonoScopeOpenGL ( AudioPlayer Audio,
MythRender Render,
bool  Fade 
)

Definition at line 5 of file mythvisualmonoscopeopengl.cpp.

◆ ~MythVisualMonoScopeOpenGL()

MythVisualMonoScopeOpenGL::~MythVisualMonoScopeOpenGL ( )
override

Definition at line 10 of file mythvisualmonoscopeopengl.cpp.

Member Function Documentation

◆ Draw()

void MythVisualMonoScopeOpenGL::Draw ( QRect  Area,
MythPainter ,
QPaintDevice *   
)
overridevirtual

Implements VideoVisual.

Definition at line 30 of file mythvisualmonoscopeopengl.cpp.

◆ Initialise()

MythRenderOpenGL * MythVisualMonoScopeOpenGL::Initialise ( QRect  Area)
private

Definition at line 125 of file mythvisualmonoscopeopengl.cpp.

Referenced by Draw().

◆ TearDown()

void MythVisualMonoScopeOpenGL::TearDown ( )
private

Definition at line 15 of file mythvisualmonoscopeopengl.cpp.

Referenced by Initialise(), and ~MythVisualMonoScopeOpenGL().

Member Data Documentation

◆ m_bufferMaps

bool MythVisualMonoScopeOpenGL::m_bufferMaps { false }
private

Definition at line 25 of file mythvisualmonoscopeopengl.h.

Referenced by Draw(), and Initialise().

◆ m_openglShader

QOpenGLShaderProgram* MythVisualMonoScopeOpenGL::m_openglShader { nullptr }
private

Definition at line 26 of file mythvisualmonoscopeopengl.h.

Referenced by Draw(), Initialise(), and TearDown().

◆ m_vbos

VertexStatesGL MythVisualMonoScopeOpenGL::m_vbos
private

Definition at line 27 of file mythvisualmonoscopeopengl.h.

Referenced by Draw(), Initialise(), and TearDown().

◆ m_vertices

Vertices MythVisualMonoScopeOpenGL::m_vertices
private

Definition at line 28 of file mythvisualmonoscopeopengl.h.

Referenced by Draw(), Initialise(), and TearDown().


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