MCPcopy Create free account
hub / github.com/chrxh/alien / checkNumSources

Method checkNumSources

source/Gui/SimulationParametersMainWindow.cpp:775–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

773}
774
775bool SimulationParametersMainWindow::checkNumSources(SimulationParameters const& parameters)
776{
777 if (parameters.numRadiationSources == MAX_RADIATION_SOURCES) {
778 showMessage("Error", "The maximum number of radiation sources has been reached.");
779 return false;
780 }
781 return true;
782}
783
784float SimulationParametersMainWindow::getMasterWidgetRefHeight() const
785{

Callers

nothing calls this directly

Calls 1

showMessageFunction · 0.85

Tested by

no test coverage detected