|
Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
|
Implements the Potential Editor2D component. More...
#include <quantumpotentialeditor2d.h>
Static Public Member Functions | |
| static PotentialEditorShape | rectangleFromDrag (float x1, float y1, float x2, float y2, float minimumWidth, float minimumHeight) noexcept |
| Performs rectangle from drag. | |
| static PotentialEditorShape | circleFromDrag (float centerX, float centerY, float edgeX, float edgeY, float minimumRadius) noexcept |
| Performs circle from drag. | |
Implements the Potential Editor2D component.
The class provides one focused service within the QPE architecture and is documented here independently of the experiment-level Help.
Definition at line 52 of file quantumpotentialeditor2d.h.
|
staticnoexcept |
Performs circle from drag.
| centerX | The center x value used by the operation. |
| centerY | The center y value used by the operation. |
| edgeX | The edge x value used by the operation. |
| edgeY | The edge y value used by the operation. |
| minimumRadius | The minimum radius value used by the operation. |
Definition at line 51 of file quantumpotentialeditor2d.cpp.
References qpe::PotentialEditorShape::centerX, qpe::PotentialEditorShape::centerY, qpe::Circle, qpe::PotentialEditorShape::radius, and qpe::PotentialEditorShape::tool.
Referenced by QuantumGLView::mouseReleaseEvent(), and qpe::tests::runQuantumPotentialEditor2DTests().
|
staticnoexcept |
Performs rectangle from drag.
| x1 | The x1 value used by the operation. |
| y1 | The y1 value used by the operation. |
| x2 | The x2 value used by the operation. |
| y2 | The y2 value used by the operation. |
| minimumWidth | The minimum width value used by the operation. |
| minimumHeight | The minimum height value used by the operation. |
Definition at line 35 of file quantumpotentialeditor2d.cpp.
References qpe::PotentialEditorShape::centerX, qpe::PotentialEditorShape::centerY, qpe::PotentialEditorShape::height, qpe::Rectangle, qpe::PotentialEditorShape::tool, and qpe::PotentialEditorShape::width.
Referenced by QuantumGLView::mouseReleaseEvent(), and qpe::tests::runQuantumPotentialEditor2DTests().