Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::app::PresetController Class Reference

Manages parameter presets and material type configurations. More...

#include <PresetController.hpp>

Collaboration diagram for correlation::app::PresetController:

Public Member Functions

 PresetController (::AppWindow &window, ProgramOptions &options, AppController &controller)
 Constructs the PresetController with injected options.
 ~PresetController ()=default
 PresetController (const PresetController &)=delete
PresetController & operator= (const PresetController &)=delete
 PresetController (PresetController &&)=delete
PresetController & operator= (PresetController &&)=delete
void handleLoadPreset (int index)
 Loads a preset configuration by UI index.
void handleSavePreset (const std::string &name)
 Saves the current UI configuration as a named preset.
void handleDeletePreset (int index)
 Deletes a saved preset by UI index.
void refreshPresetList ()
 Refreshes the list of available presets in the UI dropdown model.
void handleMaterialTypeChanged (int type)
 Applies default parameters when material type changes.
void initDomainPresets ()
 Initializes the domain presets list in the UI.
void handleApplyDomainPreset (int preset_id)
 Applies a scientific domain preset by ID.

Private Attributes

::AppWindow & window_
ProgramOptions & options_
AppController & controller_
std::vector< Preset > presets_

Detailed Description

Manages parameter presets and material type configurations.

Constructor & Destructor Documentation

◆ PresetController() [1/3]

correlation::app::PresetController::PresetController ( ::AppWindow & window,
ProgramOptions & options,
AppController & controller )

Constructs the PresetController with injected options.

Parameters
[in,out]windowReference to the UI window.
[in,out]optionsReference to program options.
[in,out]controllerReference to the main AppController.
Here is the caller graph for this function:

◆ ~PresetController()

correlation::app::PresetController::~PresetController ( )
default

◆ PresetController() [2/3]

correlation::app::PresetController::PresetController ( const PresetController & )
delete
Here is the call graph for this function:

◆ PresetController() [3/3]

correlation::app::PresetController::PresetController ( PresetController && )
delete
Here is the call graph for this function:

Member Function Documentation

◆ handleApplyDomainPreset()

void correlation::app::PresetController::handleApplyDomainPreset ( int preset_id)

Applies a scientific domain preset by ID.

Parameters
[in]preset_idDomain preset ID.
Here is the call graph for this function:

◆ handleDeletePreset()

void correlation::app::PresetController::handleDeletePreset ( int index)

Deletes a saved preset by UI index.

Parameters
[in]indexTarget index in the preset list.
Here is the call graph for this function:

◆ handleLoadPreset()

void correlation::app::PresetController::handleLoadPreset ( int index)

Loads a preset configuration by UI index.

Parameters
[in]indexTarget index in the preset list.

◆ handleMaterialTypeChanged()

void correlation::app::PresetController::handleMaterialTypeChanged ( int type)

Applies default parameters when material type changes.

Parameters
[in]typeSelected material type enum/index.

◆ handleSavePreset()

void correlation::app::PresetController::handleSavePreset ( const std::string & name)

Saves the current UI configuration as a named preset.

Parameters
[in]nameDescriptive preset identifier string.
Here is the call graph for this function:

◆ initDomainPresets()

void correlation::app::PresetController::initDomainPresets ( )

Initializes the domain presets list in the UI.

Here is the call graph for this function:

◆ operator=() [1/2]

PresetController & correlation::app::PresetController::operator= ( const PresetController & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

PresetController & correlation::app::PresetController::operator= ( PresetController && )
delete
Here is the call graph for this function:

◆ refreshPresetList()

void correlation::app::PresetController::refreshPresetList ( )

Refreshes the list of available presets in the UI dropdown model.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ controller_

AppController& correlation::app::PresetController::controller_
private

◆ options_

ProgramOptions& correlation::app::PresetController::options_
private

◆ presets_

std::vector<Preset> correlation::app::PresetController::presets_
private

◆ window_

::AppWindow& correlation::app::PresetController::window_
private

The documentation for this class was generated from the following files: