(self)
| 291 | self._ps.reset_camera_to_home_view() |
| 292 | |
| 293 | def _quit_callback(self): |
| 294 | posX = ( |
| 295 | self._gui.GetCursorPosX() |
| 296 | + self._gui.GetColumnWidth() |
| 297 | - self._gui.CalcTextSize(QUIT)[0] |
| 298 | - self._gui.GetScrollX() |
| 299 | - self._gui.ImGuiStyleVar_ItemSpacing |
| 300 | ) |
| 301 | self._gui.SetCursorPosX(posX) |
| 302 | if self._gui.Button(QUIT) or self._gui.IsKeyPressed(self._gui.ImGuiKey_Q): |
| 303 | print("Destroying Visualizer") |
| 304 | if self.closures.states.view_density_map: |
| 305 | self.closures.close_density_map_fig() |
| 306 | if self.local_maps.view_density_map: |
| 307 | self.local_maps.close_density_map_fig() |
| 308 | self._ps.unshow() |
| 309 | os._exit(0) |
no test coverage detected