|
void | sigMousePressEvent (Qt::MouseButtons, QPoint) |
|
void | sigMouseReleaseEvent (Qt::MouseButton, QPoint) |
|
void | sigMouseMoveEvent (Qt::MouseButtons buttons, QPoint pos) |
|
void | sigMouseMoveEvent (QMouseEvent *event) |
|
void | sigWheelEvent (Qt::MouseButtons buttons, QPoint pos, QPoint angleDelta) |
|
void | sigKeyPressEvent (int key, Qt::KeyboardModifiers modify) |
|
void | sigKeyReleaseEvent (int key, Qt::KeyboardModifiers modify) |
|
Definition at line 16 of file FrmViewerOpenGL.h.
◆ ADAPT_WINDOWS
The ADAPT_WINDOWS enum.
Enumerator |
---|
Disable | Disable adapt windows.
|
Original | Original desktop size, the left-top of the desktop is aligned with the left-top of the window.
|
OriginalCenter | Original desktop size, the center of the desktop is aligned with the center of the window.
|
Zoom | zoom windows = desktop size * factor
|
ZoomToWindow | Desktop adapt to windows.
|
KeepAspectRationToWindow | Keep desktop aspectration adapt to windows.
|
Definition at line 30 of file FrmViewerOpenGL.h.
◆ CFrmViewerOpenGL()
CFrmViewerOpenGL::CFrmViewerOpenGL |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~CFrmViewerOpenGL()
CFrmViewerOpenGL::~CFrmViewerOpenGL |
( |
| ) |
|
|
overridevirtual |
◆ GetAdaptWindows()
◆ GetAspectRationRect()
QRectF CFrmViewerOpenGL::GetAspectRationRect |
( |
| ) |
|
|
private |
◆ GetDesktopSize()
QSize CFrmViewerOpenGL::GetDesktopSize |
( |
| ) |
|
◆ GetZoomFactor()
double CFrmViewerOpenGL::GetZoomFactor |
( |
| ) |
const |
Adjust the zoom factor.
After the adjustment is completed, you need to call SetAdaptWindows(FrmViewer::Zoom) to zoom the window size.
- Returns
Definition at line 161 of file FrmViewerOpenGL.cpp.
◆ GrabImage()
QImage CFrmViewerOpenGL::GrabImage |
( |
int |
x = 0 , |
|
|
int |
y = 0 , |
|
|
int |
w = -1 , |
|
|
int |
h = -1 |
|
) |
| |
|
virtual |
◆ initializeGL()
void CFrmViewerOpenGL::initializeGL |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ InitVertor()
void CFrmViewerOpenGL::InitVertor |
( |
| ) |
|
|
protected |
◆ keyPressEvent()
void CFrmViewerOpenGL::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ keyReleaseEvent()
void CFrmViewerOpenGL::keyReleaseEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ Load()
int CFrmViewerOpenGL::Load |
( |
QSettings & |
set | ) |
|
|
virtual |
◆ mouseMoveEvent()
void CFrmViewerOpenGL::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ mousePressEvent()
void CFrmViewerOpenGL::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ mouseReleaseEvent()
void CFrmViewerOpenGL::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ paintGL()
void CFrmViewerOpenGL::paintGL |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ ReSize()
int CFrmViewerOpenGL::ReSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
private |
◆ resizeGL()
void CFrmViewerOpenGL::resizeGL |
( |
int |
w, |
|
|
int |
height |
|
) |
| |
|
overrideprotectedvirtual |
◆ Save()
int CFrmViewerOpenGL::Save |
( |
QSettings & |
set | ) |
|
|
virtual |
◆ SetAdaptWindows()
◆ SetZoomFactor()
int CFrmViewerOpenGL::SetZoomFactor |
( |
double |
newZoomFactor | ) |
|
◆ slotSetDesktopSize
void CFrmViewerOpenGL::slotSetDesktopSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
slot |
◆ slotSetName
void CFrmViewerOpenGL::slotSetName |
( |
const QString & |
szName | ) |
|
|
slot |
◆ slotSystemCombination
void CFrmViewerOpenGL::slotSystemCombination |
( |
| ) |
|
|
slot |
◆ slotUpdateCursor
void CFrmViewerOpenGL::slotUpdateCursor |
( |
const QCursor & |
cursor | ) |
|
|
slot |
◆ slotUpdateCursorPosition
void CFrmViewerOpenGL::slotUpdateCursorPosition |
( |
const QPoint & |
pos | ) |
|
|
slot |
◆ slotUpdateRect [1/2]
void CFrmViewerOpenGL::slotUpdateRect |
( |
const QRect & |
r, |
|
|
const QImage & |
image |
|
) |
| |
|
slot |
◆ slotUpdateRect [2/2]
void CFrmViewerOpenGL::slotUpdateRect |
( |
QSharedPointer< CImage > |
image | ) |
|
|
slot |
◆ TranslationMousePoint()
int CFrmViewerOpenGL::TranslationMousePoint |
( |
QPointF |
inPos, |
|
|
QPointF & |
outPos |
|
) |
| |
|
private |
◆ wheelEvent()
void CFrmViewerOpenGL::wheelEvent |
( |
QWheelEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ m_AdaptWindows
◆ m_dbZoomFactor
double CFrmViewerOpenGL::m_dbZoomFactor |
|
private |
◆ m_Desktop
QImage CFrmViewerOpenGL::m_Desktop |
|
private |
◆ m_pTexture
QOpenGLTexture* CFrmViewerOpenGL::m_pTexture |
|
private |
◆ m_ShaderProgram
QOpenGLShaderProgram CFrmViewerOpenGL::m_ShaderProgram |
|
private |
◆ m_VaoQuad
QOpenGLVertexArrayObject CFrmViewerOpenGL::m_VaoQuad |
|
private |
◆ m_VboQuad
QOpenGLBuffer CFrmViewerOpenGL::m_VboQuad |
|
private |
◆ m_VertexData
QVector<GLfloat> CFrmViewerOpenGL::m_VertexData |
|
private |
◆ ZoomFactor
double CFrmViewerOpenGL::ZoomFactor |
|
readwrite |
The documentation for this class was generated from the following files: