| 741 | } |
| 742 | |
| 743 | void SimulationParametersMainWindow::setDefaultShapeDataForZone(SimulationParametersZone& spot) const |
| 744 | { |
| 745 | auto worldSize = _simulationFacade->getWorldSize(); |
| 746 | |
| 747 | auto maxRadius = toFloat(std::min(worldSize.x, worldSize.y)) / 2; |
| 748 | if (spot.shapeType == SpotShapeType_Circular) { |
| 749 | spot.shapeData.circularSpot.coreRadius = maxRadius / 3; |
| 750 | } else { |
| 751 | spot.shapeData.rectangularSpot.height = maxRadius / 3; |
| 752 | spot.shapeData.rectangularSpot.width = maxRadius / 3; |
| 753 | } |
| 754 | } |
| 755 | |
| 756 | void SimulationParametersMainWindow::correctLayout(float origMasterHeight, float origExpertWidgetHeight) |
| 757 | { |
nothing calls this directly
no test coverage detected