![]() |
LibrePCB Developers Documentation
|
The SlintOpenGlView class. More...
#include <slintopenglview.h>
Inherits QObject, and QOpenGLFunctions.
Collaboration diagram for SlintOpenGlView:Signals | |
| void | stateChanged () |
| void | contentChanged () |
Public Member Functions | |
| SlintOpenGlView (const OpenGlProjection &projection=OpenGlProjection(), QObject *parent=nullptr) noexcept | |
| SlintOpenGlView (const SlintOpenGlView &other)=delete | |
| virtual | ~SlintOpenGlView () noexcept |
| bool | isPanning () const noexcept |
| const QStringList & | getOpenGlErrors () const noexcept |
| const OpenGlProjection & | getProjection () const noexcept |
| const QHash< OpenGlObject::Type, float > & | getAlpha () const noexcept |
| void | setBackgroundColor (QColor color) noexcept |
| void | addObject (std::shared_ptr< OpenGlObject > obj) noexcept |
| void | removeObject (std::shared_ptr< OpenGlObject > obj) noexcept |
| void | setObjects (const QVector< std::shared_ptr< OpenGlObject > > &objs) noexcept |
| void | setAlpha (const QHash< OpenGlObject::Type, float > &alpha) noexcept |
| slint::Image | render (float width, float height) noexcept |
| bool | pointerEvent (const QPointF &pos, slint::private_api::PointerEvent e) noexcept |
| bool | scrollEvent (const QPointF &pos, slint::private_api::PointerScrollEvent e) noexcept |
| void | zoomIn () noexcept |
| void | zoomOut () noexcept |
| void | zoomAll () noexcept |
| SlintOpenGlView & | operator= (const SlintOpenGlView &rhs)=delete |
Private Member Functions | |
| void | initializeGl () noexcept |
| void | zoom (const QPointF ¢er, qreal factor) noexcept |
| void | smoothTo (const OpenGlProjection &projection) noexcept |
| bool | applyOpenGlProjection (const OpenGlProjection &projection) noexcept |
| QPointF | toNormalizedPos (const QPointF &pos) const noexcept |
| QPointF | toModelPos (const QPointF &pos) const noexcept |
Private Attributes | |
| std::unique_ptr< QOffscreenSurface > | mSurface |
| std::unique_ptr< QOpenGLContext > | mContext |
| std::unique_ptr< QOpenGLShaderProgram > | mProgram |
| std::unique_ptr< QOpenGLFramebufferObject > | mFbo |
| QStringList | mErrors |
| QSizeF | mViewSize |
| QColor | mBackgroundColor |
| OpenGlProjection | mProjection |
| QHash< OpenGlObject::Type, float > | mAlpha |
| QPointF | mMousePressPosition |
| QMatrix4x4 | mMousePressTransform |
| QPointF | mMousePressCenter |
| QSet< slint::private_api::PointerEventButton > | mPressedMouseButtons |
| OpenGlProjection | mAnimationDataStart |
| OpenGlProjection | mAnimationDataDelta |
| QScopedPointer< QVariantAnimation > | mAnimation |
| QVector< std::shared_ptr< OpenGlObject > > | mObjects |
Static Private Attributes | |
| static constexpr qreal | sCameraPosZ = 5.0 |
The SlintOpenGlView class.
|
explicitnoexcept |
|
delete |
|
virtualnoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
|
noexcept |
|
noexcept |
Here is the call graph for this function:
|
noexcept |
Here is the call graph for this function:
|
noexcept |
|
noexcept |
Here is the call graph for this function:
|
noexcept |
Here is the call graph for this function:
|
noexcept |
Here is the call graph for this function:
|
delete |
|
signal |
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
|
privatenoexcept |
Here is the caller graph for this function:
|
privatenoexcept |
Here is the caller graph for this function:
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
Here is the call graph for this function:
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticconstexprprivate |