|
Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
|
Implements the Simulation Domain2D Builder component. More...
#include <simulationdomain2d.h>
Static Public Member Functions | |
| static SimulationDomain2D | make (std::size_t gridWidth, std::size_t gridHeight, float physicalWidth, float physicalHeight) |
| Performs make. | |
| static bool | isPowerOfTwo (std::size_t value) noexcept |
| Returns whether power of two. | |
Implements the Simulation Domain2D Builder component.
The class provides one focused service within the QPE architecture and is documented here independently of the experiment-level Help.
Definition at line 43 of file simulationdomain2d.h.
|
staticnoexcept |
Returns whether power of two.
| value | Value to assign or evaluate. |
Definition at line 63 of file simulationdomain2d.cpp.
Referenced by make(), qpe::tests::runSimulationDomain2DTests(), and qpe::SimulationDomain2D::valid().
|
static |
Performs make.
| gridWidth | The grid width value used by the operation. |
| gridHeight | The grid height value used by the operation. |
| physicalWidth | The physical width value used by the operation. |
| physicalHeight | The physical height value used by the operation. |
Definition at line 41 of file simulationdomain2d.cpp.
References qpe::SimulationDomain2D::dx, qpe::SimulationDomain2D::dy, qpe::SimulationDomain2D::gridHeight, qpe::SimulationDomain2D::gridWidth, isPowerOfTwo(), qpe::SimulationDomain2D::physicalHeight, and qpe::SimulationDomain2D::physicalWidth.
Referenced by qpe::tests::runSimulationDomain2DTests(), and MainWindow::selectedSimulationDomain().