SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
numberformat.cpp File Reference
#include "plot/numberformat.h"
#include <QLocale>
#include <QRegularExpression>
#include <algorithm>
#include <cmath>
#include <cstdlib>
Include dependency graph for numberformat.cpp:

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::plot
 

Functions

NumberFormat openswmmvis::plot::numberFormatForPreset (int preset)
 The mode + count a preset stands for. Out-of-range input falls back to two decimals, which is the historic default.
 
int openswmmvis::plot::presetForNumberFormat (NumberFormatMode mode, int count)
 The preset that best represents mode + count.
 

Detailed Description

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

Variable Documentation

◆ count

int count

◆ mode

NumberFormatMode mode