|
NetDEM v1.0
|
A class used to manage modifiers in a simulation. More...
#include <modifier_manager.hpp>
Public Member Functions | |
| ModifierManager () | |
| Default constructor for ModifierManager class. | |
| void | Init (Simulation *s) |
| Initializes the ModifierManager instance. | |
| Modifier * | Insert (Modifier *e) |
| Inserts new modifier into the simulation. | |
| void | RemoveModifier (std::string const &label) |
| Removes a modifier from the simulation. | |
| void | Enable (std::string const &label) |
| Enables a modifier in the simulation. | |
| void | Disable (std::string const &label) |
| Disables a modifier in the simulation. | |
| void | Enable (Modifier *const e) |
| Enables a modifier in the simulation. | |
| void | Disable (Modifier *const e) |
| Disables a modifier in the simulation. | |
| Modifier * | FindModifier (std::string const &label) |
| Finds a modifier in the simulation by label. | |
| bool | FindModifier (Modifier *const e) |
| Finds a modifier in the simulation by pointer. | |
| void | UpdateModifiers () |
| Updates the modifiers in the scene_state_subscribers when the scene changes. | |
| void | ExecuteModifiers (DEMSolver::CyclePoint cycle_point) |
| Executes all modifiers during the specified cycle point of the DEM solver. | |
| ~ModifierManager () | |
| Destructor for ModifierManager class. | |
A class used to manage modifiers in a simulation.
The ModifierManager class handles the activation and deactivation of modifiers, as well as the updating of modifier properties when the scene changes.
| netdem::ModifierManager::ModifierManager | ( | ) |
Default constructor for ModifierManager class.
| netdem::ModifierManager::~ModifierManager | ( | ) |
Destructor for ModifierManager class.
| void netdem::ModifierManager::Disable | ( | Modifier *const | e | ) |
Disables a modifier in the simulation.
| e | Pointer to the modifier to be disabled. |
| void netdem::ModifierManager::Disable | ( | std::string const & | label | ) |
Disables a modifier in the simulation.
| label | Label of the modifier to be disabled. |
| void netdem::ModifierManager::Enable | ( | Modifier *const | e | ) |
Enables a modifier in the simulation.
| e | Pointer to the modifier to be enabled. |
| void netdem::ModifierManager::Enable | ( | std::string const & | label | ) |
Enables a modifier in the simulation.
| label | Label of the modifier to be enabled. |
| void netdem::ModifierManager::ExecuteModifiers | ( | DEMSolver::CyclePoint | cycle_point | ) |
Executes all modifiers during the specified cycle point of the DEM solver.
| cycle_point | The cycle point to execute modifiers at. |
| bool netdem::ModifierManager::FindModifier | ( | Modifier *const | e | ) |
Finds a modifier in the simulation by pointer.
| e | Pointer to the modifier to find. |
| Modifier * netdem::ModifierManager::FindModifier | ( | std::string const & | label | ) |
Finds a modifier in the simulation by label.
| label | Label of the modifier to find. |
| void netdem::ModifierManager::Init | ( | Simulation * | s | ) |
Initializes the ModifierManager instance.
| s | Pointer to the current simulation object. |
Inserts new modifier into the simulation.
| e | Pointer to the modifier to be inserted. |
| void netdem::ModifierManager::RemoveModifier | ( | std::string const & | label | ) |
Removes a modifier from the simulation.
| label | Label of the modifier to be removed. |
| void netdem::ModifierManager::UpdateModifiers | ( | ) |
Updates the modifiers in the scene_state_subscribers when the scene changes.