OpenGL 3D viewer widget.
More...
#include <openglview.h>
Inherits QOpenGLWidget, and QOpenGLFunctions.
|
void | zoom (const QPointF ¢er, qreal factor) noexcept |
|
QPointF | toNormalizedPos (const QPointF &pos) const noexcept |
|
QPointF | toModelPos (const QPointF &pos) const noexcept |
|
◆ OpenGlView() [1/2]
◆ OpenGlView() [2/2]
◆ ~OpenGlView()
◆ getIdleTimeMs()
qint64 getIdleTimeMs |
( |
| ) |
const |
|
inlinenoexcept |
◆ addObject()
◆ removeObject()
◆ setObjects()
void setObjects |
( |
const QVector< std::shared_ptr< OpenGlObject > > & |
objs | ) |
|
|
noexcept |
◆ zoomIn()
◆ zoomOut()
◆ zoomAll()
◆ startSpinning()
◆ stopSpinning()
void stopSpinning |
( |
QString |
errorMsg | ) |
|
|
noexcept |
◆ operator=()
◆ mousePressEvent()
void mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ mouseMoveEvent()
void mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
overrideprotected |
◆ wheelEvent()
void wheelEvent |
( |
QWheelEvent * |
e | ) |
|
|
overrideprotected |
◆ smoothTo()
void smoothTo |
( |
qreal |
fov, |
|
|
const QPointF & |
center, |
|
|
const QMatrix4x4 & |
transform |
|
) |
| |
|
protectednoexcept |
◆ initializeGL()
◆ resizeGL()
void resizeGL |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
|
overrideprotected |
◆ paintGL()
◆ zoom()
void zoom |
( |
const QPointF & |
center, |
|
|
qreal |
factor |
|
) |
| |
|
privatenoexcept |
◆ toNormalizedPos()
QPointF toNormalizedPos |
( |
const QPointF & |
pos | ) |
const |
|
privatenoexcept |
◆ toModelPos()
QPointF toModelPos |
( |
const QPointF & |
pos | ) |
const |
|
privatenoexcept |
◆ mLayout
QScopedPointer<QVBoxLayout> mLayout |
|
private |
◆ mErrorLabel
QScopedPointer<QLabel> mErrorLabel |
|
private |
◆ mInitialized
◆ mProgram
QOpenGLShaderProgram mProgram |
|
private |
◆ mProjectionAspectRatio
qreal mProjectionAspectRatio |
|
private |
◆ mProjectionFov
◆ mProjectionCenter
QPointF mProjectionCenter |
|
private |
◆ mTransform
◆ mMousePressPosition
QPoint mMousePressPosition |
|
private |
◆ mMousePressTransform
QMatrix4x4 mMousePressTransform |
|
private |
◆ mMousePressCenter
QPointF mMousePressCenter |
|
private |
◆ mIdleTimeMs
◆ mWaitingSpinner
◆ mAnimationDataStart
◆ mAnimationDataDelta
◆ mAnimation
QScopedPointer<QVariantAnimation> mAnimation |
|
private |
◆ mObjects
◆ sCameraPosZ
constexpr qreal sCameraPosZ = 5.0 |
|
staticconstexprprivate |
◆ sInitialFov
constexpr qreal sInitialFov = 15.0 |
|
staticconstexprprivate |
◆ sZoomStepFactor
constexpr qreal sZoomStepFactor = 1.3 |
|
staticconstexprprivate |
The documentation for this class was generated from the following files: