Handles UI input validation.
More...
#include <InputValidator.hpp>
|
| bool | validateFrames (const AnalysisOptions &opts, AppErrors &errs) |
| | Validates trajectory frame indexing bounds.
|
| bool | validateExportConfig (AppErrors &errs) |
| | Validates plot export layout settings.
|
|
| static bool | validateRadialAndScattering (const AnalysisOptions &opts, AppErrors &errs, float &r_max_val, float &q_max_val) |
| | Validates radial distribution and scattering options.
|
| static bool | validateXrdOptions (const AnalysisOptions &opts, AppErrors &errs) |
| | Validates powder X-ray diffraction options.
|
| static bool | validateAngularAndRings (const AnalysisOptions &opts, AppErrors &errs) |
| | Validates angular and ring distribution options.
|
| static bool | validateOtherAnalysisOptions (const AnalysisOptions &opts, AppErrors &errs) |
| | Validates Local Entropy and Hyperuniformity parameters.
|
Handles UI input validation.
◆ InputValidator()
| correlation::app::InputValidator::InputValidator |
( |
::AppWindow & | window, |
|
|
AppController & | controller ) |
Constructs the InputValidator.
- Parameters
-
| [in,out] | window | Reference to the UI window. |
| [in,out] | controller | Reference to the main AppController. |
◆ validateAngularAndRings()
| bool correlation::app::InputValidator::validateAngularAndRings |
( |
const AnalysisOptions & | opts, |
|
|
AppErrors & | errs ) |
|
staticnodiscardprivate |
Validates angular and ring distribution options.
- Parameters
-
| [in] | opts | Analysis options from the UI. |
| [out] | errs | AppErrors structure for reporting invalid field states. |
- Returns
- true if valid, false otherwise.
◆ validateExportConfig()
| bool correlation::app::InputValidator::validateExportConfig |
( |
AppErrors & | errs | ) |
|
|
nodiscardprivate |
Validates plot export layout settings.
- Parameters
-
| [out] | errs | AppErrors structure for reporting invalid field states. |
- Returns
- true if valid, false otherwise.
◆ validateFrames()
| bool correlation::app::InputValidator::validateFrames |
( |
const AnalysisOptions & | opts, |
|
|
AppErrors & | errs ) |
|
nodiscardprivate |
Validates trajectory frame indexing bounds.
- Parameters
-
| [in] | opts | Analysis options from the UI. |
| [out] | errs | AppErrors structure for reporting invalid field states. |
- Returns
- true if valid, false otherwise.
◆ validateInputs()
| bool correlation::app::InputValidator::validateInputs |
( |
| ) |
|
|
nodiscard |
Validates all numeric input fields and pushes error states to the UI.
- Returns
- true if all inputs are valid, false otherwise.
◆ validateOtherAnalysisOptions()
| bool correlation::app::InputValidator::validateOtherAnalysisOptions |
( |
const AnalysisOptions & | opts, |
|
|
AppErrors & | errs ) |
|
staticnodiscardprivate |
Validates Local Entropy and Hyperuniformity parameters.
- Parameters
-
| [in] | opts | Analysis options from the UI. |
| [out] | errs | AppErrors structure for reporting invalid field states. |
- Returns
- true if valid, false otherwise.
◆ validateRadialAndScattering()
| bool correlation::app::InputValidator::validateRadialAndScattering |
( |
const AnalysisOptions & | opts, |
|
|
AppErrors & | errs, |
|
|
float & | r_max_val, |
|
|
float & | q_max_val ) |
|
staticnodiscardprivate |
Validates radial distribution and scattering options.
- Parameters
-
| [in] | opts | Analysis options from the UI. |
| [out] | errs | AppErrors structure for reporting invalid field states. |
| [out] | r_max_val | Evaluated maximum radial cutoff. |
| [out] | q_max_val | Evaluated maximum reciprocal space momentum. |
- Returns
- true if valid, false otherwise.
◆ validateXrdOptions()
| bool correlation::app::InputValidator::validateXrdOptions |
( |
const AnalysisOptions & | opts, |
|
|
AppErrors & | errs ) |
|
staticnodiscardprivate |
Validates powder X-ray diffraction options.
- Parameters
-
| [in] | opts | Analysis options from the UI. |
| [out] | errs | AppErrors structure for reporting invalid field states. |
- Returns
- true if valid, false otherwise.
◆ controller_
◆ window_
| ::AppWindow* correlation::app::InputValidator::window_ |
|
private |
The documentation for this class was generated from the following files: