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

Method processRandomPanel

source/Gui/MultiplierWindow.cpp:119–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void MultiplierWindow::processRandomPanel()
120{
121 AlienImGui::InputInt(
122 AlienImGui::InputIntParameters().name("Number of copies").textWidth(RightColumnWidth), _randomParameters._number);
123 AlienImGui::InputFloat(AlienImGui::InputFloatParameters().name("Min angle").textWidth(RightColumnWidth).format("%.1f"), _randomParameters._minAngle);
124 AlienImGui::InputFloat(AlienImGui::InputFloatParameters().name("Max angle").textWidth(RightColumnWidth).format("%.1f"), _randomParameters._maxAngle);
125 AlienImGui::InputFloat(
126 AlienImGui::InputFloatParameters().name("Min velocity X").textWidth(RightColumnWidth).format("%.2f").step(0.05f), _randomParameters._minVelX);
127 AlienImGui::InputFloat(
128 AlienImGui::InputFloatParameters().name("Max velocity X").textWidth(RightColumnWidth).format("%.2f").step(0.05f), _randomParameters._maxVelX);
129 AlienImGui::InputFloat(
130 AlienImGui::InputFloatParameters().name("Min velocity Y").textWidth(RightColumnWidth).format("%.2f").step(0.05f), _randomParameters._minVelY);
131 AlienImGui::InputFloat(
132 AlienImGui::InputFloatParameters().name("Max velocity Y").textWidth(RightColumnWidth).format("%.2f").step(0.05f), _randomParameters._maxVelY);
133 AlienImGui::InputFloat(
134 AlienImGui::InputFloatParameters().name("Min angular velocity").textWidth(RightColumnWidth).format("%.1f").step(0.1f),
135 _randomParameters._minAngularVel);
136 AlienImGui::InputFloat(
137 AlienImGui::InputFloatParameters().name("Max angular velocity").textWidth(RightColumnWidth).format("%.1f").step(0.1f),
138 _randomParameters._maxAngularVel);
139 AlienImGui::Checkbox(AlienImGui::CheckboxParameters().name("Overlapping check").textWidth(RightColumnWidth), _randomParameters._overlappingCheck);
140}
141
142void MultiplierWindow::validateAndCorrect()
143{

Callers

nothing calls this directly

Calls 4

InputIntParametersClass · 0.85
CheckboxParametersClass · 0.85
formatMethod · 0.80

Tested by

no test coverage detected