The SlintOpenGlView class.
More...
#include <slintopenglview.h>
Inherits QObject, and QOpenGLFunctions.
◆ SlintOpenGlView() [1/2]
◆ SlintOpenGlView() [2/2]
◆ ~SlintOpenGlView()
◆ isPanning()
◆ getOpenGlErrors()
| const QStringList & getOpenGlErrors |
( |
| ) |
const |
|
inlinenoexcept |
◆ getProjection()
◆ getAlpha()
◆ getBackgroundColor()
| static QColor getBackgroundColor |
( |
| ) |
|
|
inlinestaticnoexcept |
◆ addObject()
◆ removeObject()
◆ setObjects()
| void setObjects |
( |
const QVector< std::shared_ptr< OpenGlObject > > & |
objs | ) |
|
|
noexcept |
◆ setAlpha()
◆ render()
| slint::Image render |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
|
noexcept |
◆ pointerEvent()
| bool pointerEvent |
( |
const QPointF & |
pos, |
|
|
slint::private_api::PointerEvent |
e |
|
) |
| |
|
noexcept |
◆ scrollEvent()
| bool scrollEvent |
( |
const QPointF & |
pos, |
|
|
slint::private_api::PointerScrollEvent |
e |
|
) |
| |
|
noexcept |
◆ zoomIn()
◆ zoomOut()
◆ zoomAll()
◆ operator=()
◆ stateChanged
◆ contentChanged
◆ initializeGl()
◆ zoom()
| void zoom |
( |
const QPointF & |
center, |
|
|
qreal |
factor |
|
) |
| |
|
privatenoexcept |
◆ smoothTo()
◆ applyOpenGlProjection()
◆ toNormalizedPos()
| QPointF toNormalizedPos |
( |
const QPointF & |
pos | ) |
const |
|
privatenoexcept |
◆ toModelPos()
| QPointF toModelPos |
( |
const QPointF & |
pos | ) |
const |
|
privatenoexcept |
◆ mSurface
| std::unique_ptr<QOffscreenSurface> mSurface |
|
private |
◆ mContext
| std::unique_ptr<QOpenGLContext> mContext |
|
private |
◆ mProgram
| std::unique_ptr<QOpenGLShaderProgram> mProgram |
|
private |
◆ mFbo
| std::unique_ptr<QOpenGLFramebufferObject> mFbo |
|
private |
◆ mErrors
◆ mViewSize
◆ mProjection
◆ mAlpha
◆ mMousePressPosition
| QPointF mMousePressPosition |
|
private |
◆ mMousePressTransform
| QMatrix4x4 mMousePressTransform |
|
private |
◆ mMousePressCenter
| QPointF mMousePressCenter |
|
private |
◆ mPressedMouseButtons
| QSet<slint::private_api::PointerEventButton> mPressedMouseButtons |
|
private |
◆ mAnimationDataStart
◆ mAnimationDataDelta
◆ mAnimation
| QScopedPointer<QVariantAnimation> mAnimation |
|
private |
◆ mObjects
◆ sCameraPosZ
| constexpr qreal sCameraPosZ = 5.0 |
|
staticconstexprprivate |
The documentation for this class was generated from the following files: