|
Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
|
Implements the Quantum View Camera2D component. More...
#include <quantumviewcamera2d.h>
Public Member Functions | |
| void | setDomain (float width, float height) |
| Sets domain. | |
| void | reset () |
| Resets the component to its initial state. | |
| float | zoom () const |
| Carries out zoom. | |
| float | centerX () const |
| Carries out center x. | |
| float | centerY () const |
| Carries out center y. | |
| float | domainWidth () const |
| Carries out domain width. | |
| float | domainHeight () const |
| Carries out domain height. | |
| float | viewWidth () const |
| Carries out view width. | |
| float | viewHeight () const |
| Carries out view height. | |
| float | maxZoom () const |
| Carries out max zoom. | |
| bool | zoomAtNormalized (float factor, double u, double v) |
| Carries out max. | |
| void | panPhysical (float dx, float dy) |
| Carries out clamp center. | |
| void | physicalFromNormalized (double u, double v, float &x, float &y) const |
| Carries out physical from normalized. | |
| void | normalizedFromPhysical (float x, float y, double &u, double &v) const |
| Returns normalized from physical. | |
| float | textureScaleX () const |
| Carries out texture scale x. | |
| float | textureScaleY () const |
| Carries out texture scale y. | |
| float | textureOffsetX () const |
| Carries out max. | |
| float | textureOffsetY () const |
| Performs texture offset y. | |
Private Member Functions | |
| void | clampCenter () |
| Performs clamp center. | |
Private Attributes | |
| float | domainWidth_ = 0.0f |
| float | domainHeight_ = 0.0f |
| float | zoom_ = 1.0f |
| float | centerX_ = 0.0f |
| float | centerY_ = 0.0f |
Implements the Quantum View Camera2D component.
The class provides one focused service within the QPE architecture and is documented here independently of the experiment-level Help.
Definition at line 26 of file quantumviewcamera2d.h.
|
inline |
Carries out center x.
Definition at line 81 of file quantumviewcamera2d.h.
References centerX_.
Referenced by QuantumGLView::drawProbabilityCurrentVectors(), and qpe::tests::runQuantumViewCamera2DTests().
|
inline |
Carries out center y.
Definition at line 85 of file quantumviewcamera2d.h.
References centerY_.
Referenced by QuantumGLView::drawProbabilityCurrentVectors(), and qpe::tests::runQuantumViewCamera2DTests().
|
inlineprivate |
Performs clamp center.
| f | The f value used by the operation. |
Performs max.
| f | The f value used by the operation. |
| viewWidth | The view width value used by the operation. |
Carries out max.
| f | The f value used by the operation. |
| viewHeight | The view height value used by the operation. |
Carries out max.
| maxCenterX | The max center x value used by the operation. |
| centerX_ | The center x value used by the operation. |
Carries out max.
| maxCenterY | The max center y value used by the operation. |
| centerY_ | The center y value used by the operation. |
Definition at line 264 of file quantumviewcamera2d.h.
References centerX_, centerY_, domainHeight_, domainWidth_, viewHeight(), viewWidth(), and zoom_.
Referenced by panPhysical(), setDomain(), and zoomAtNormalized().
|
inline |
Carries out domain height.
Definition at line 93 of file quantumviewcamera2d.h.
References domainHeight_.
Referenced by qpe::tests::runQuantumViewCamera2DTests().
|
inline |
Carries out domain width.
Definition at line 89 of file quantumviewcamera2d.h.
References domainWidth_.
Referenced by qpe::tests::runQuantumViewCamera2DTests().
|
inline |
Carries out max zoom.
Definition at line 105 of file quantumviewcamera2d.h.
Referenced by zoomAtNormalized().
|
inline |
Returns normalized from physical.
| x | X coordinate/value. |
| y | Y coordinate/value. |
| u | The u value used by the operation. |
| viewWidth | The view width value used by the operation. |
Performs view height.
Definition at line 208 of file quantumviewcamera2d.h.
References centerX_, centerY_, viewHeight(), and viewWidth().
Referenced by QuantumGLView::physicalPointToWidget().
|
inline |
Carries out clamp center.
| dx | The dx value used by the operation. |
| f | The f value used by the operation. |
Performs clamp center.
Definition at line 172 of file quantumviewcamera2d.h.
References centerX_, centerY_, clampCenter(), domainHeight_, and domainWidth_.
Referenced by QuantumGLView::mouseMoveEvent(), and qpe::tests::runQuantumViewCamera2DTests().
|
inline |
Carries out physical from normalized.
| u | The u value used by the operation. |
| v | The v value used by the operation. |
| x | X coordinate/value. |
| viewWidth | The view width value used by the operation. |
Performs view height.
Definition at line 192 of file quantumviewcamera2d.h.
References centerX_, centerY_, viewHeight(), and viewWidth().
Referenced by qpe::tests::runQuantumViewCamera2DTests(), QuantumGLView::widgetPointToPhysical(), and zoomAtNormalized().
|
inline |
Resets the component to its initial state.
Definition at line 67 of file quantumviewcamera2d.h.
References centerX_, centerY_, and zoom_.
Referenced by QuantumGLView::resetCameraView(), qpe::tests::runQuantumViewCamera2DTests(), and setDomain().
|
inline |
Sets domain.
| width | The width value used by the operation. |
| width | The width value used by the operation. |
Carries out max.
| f | The f value used by the operation. |
| height | The height value used by the operation. |
Carries out abs.
| domainHeight_ | The domain height value used by the operation. |
Resets the component to its initial state.
Carries out clamp center.
Definition at line 34 of file quantumviewcamera2d.h.
References clampCenter(), domainHeight_, domainWidth_, and reset().
Referenced by QuantumGLView::clearState(), qpe::tests::runQuantumViewCamera2DTests(), and QuantumGLView::setQuantumState().
|
inline |
Carries out max.
| f | The f value used by the operation. |
Definition at line 239 of file quantumviewcamera2d.h.
References centerX_, domainWidth_, and textureScaleX().
Referenced by QuantumGLView::applyTextureWindow(), and qpe::tests::runQuantumViewCamera2DTests().
|
inline |
Performs texture offset y.
| f | The f value used by the operation. |
Definition at line 251 of file quantumviewcamera2d.h.
References centerY_, domainHeight_, and textureScaleY().
Referenced by QuantumGLView::applyTextureWindow(), and qpe::tests::runQuantumViewCamera2DTests().
|
inline |
Carries out texture scale x.
Definition at line 222 of file quantumviewcamera2d.h.
References zoom_.
Referenced by QuantumGLView::applyTextureWindow(), qpe::tests::runQuantumViewCamera2DTests(), and textureOffsetX().
|
inline |
Carries out texture scale y.
Definition at line 230 of file quantumviewcamera2d.h.
References zoom_.
Referenced by QuantumGLView::applyTextureWindow(), qpe::tests::runQuantumViewCamera2DTests(), and textureOffsetY().
|
inline |
Carries out view height.
Definition at line 101 of file quantumviewcamera2d.h.
References domainHeight_, and zoom_.
Referenced by clampCenter(), QuantumGLView::drawProbabilityCurrentStreamlines(), QuantumGLView::drawProbabilityCurrentVectors(), QuantumGLView::mouseMoveEvent(), normalizedFromPhysical(), physicalFromNormalized(), qpe::tests::runQuantumViewCamera2DTests(), and zoomAtNormalized().
|
inline |
Carries out view width.
Definition at line 97 of file quantumviewcamera2d.h.
References domainWidth_, and zoom_.
Referenced by clampCenter(), QuantumGLView::drawProbabilityCurrentStreamlines(), QuantumGLView::drawProbabilityCurrentVectors(), QuantumGLView::mouseMoveEvent(), normalizedFromPhysical(), physicalFromNormalized(), qpe::tests::runQuantumViewCamera2DTests(), and zoomAtNormalized().
|
inline |
Carries out zoom.
Definition at line 77 of file quantumviewcamera2d.h.
References zoom_.
Referenced by QuantumGLView::cameraZoom(), QuantumGLView::drawProbabilityCurrentVectors(), and qpe::tests::runQuantumViewCamera2DTests().
|
inline |
Carries out max.
| factor | The factor value used by the operation. |
| u | The u value used by the operation. |
| f | The f value used by the operation. |
Performs max.
| u | The u value used by the operation. |
Carries out max.
| v | The v value used by the operation. |
Carries out physical from normalized.
| u | The u value used by the operation. |
| v | The v value used by the operation. |
| anchorX | The anchor x value used by the operation. |
| anchorY | The anchor y value used by the operation. |
Carries out max.
| f | The f value used by the operation. |
| factor | The factor value used by the operation. |
Carries out view width.
Carries out view height.
Carries out clamp center.
Definition at line 113 of file quantumviewcamera2d.h.
References centerX_, centerY_, clampCenter(), domainHeight_, domainWidth_, maxZoom(), physicalFromNormalized(), viewHeight(), viewWidth(), and zoom_.
Referenced by qpe::tests::runQuantumViewCamera2DTests(), and QuantumGLView::wheelEvent().
|
private |
Definition at line 302 of file quantumviewcamera2d.h.
Referenced by centerX(), clampCenter(), normalizedFromPhysical(), panPhysical(), physicalFromNormalized(), reset(), textureOffsetX(), and zoomAtNormalized().
|
private |
Definition at line 303 of file quantumviewcamera2d.h.
Referenced by centerY(), clampCenter(), normalizedFromPhysical(), panPhysical(), physicalFromNormalized(), reset(), textureOffsetY(), and zoomAtNormalized().
|
private |
Definition at line 300 of file quantumviewcamera2d.h.
Referenced by clampCenter(), domainHeight(), panPhysical(), setDomain(), textureOffsetY(), viewHeight(), and zoomAtNormalized().
|
private |
Definition at line 299 of file quantumviewcamera2d.h.
Referenced by clampCenter(), domainWidth(), panPhysical(), setDomain(), textureOffsetX(), viewWidth(), and zoomAtNormalized().
|
private |
Definition at line 301 of file quantumviewcamera2d.h.
Referenced by clampCenter(), reset(), textureScaleX(), textureScaleY(), viewHeight(), viewWidth(), zoom(), and zoomAtNormalized().