NetDEM v1.0
Loading...
Searching...
No Matches
netdem::ModifierManager Class Reference

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.
 
ModifierInsert (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.
 
ModifierFindModifier (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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ModifierManager()

netdem::ModifierManager::ModifierManager ( )

Default constructor for ModifierManager class.

◆ ~ModifierManager()

netdem::ModifierManager::~ModifierManager ( )

Destructor for ModifierManager class.

Member Function Documentation

◆ Disable() [1/2]

void netdem::ModifierManager::Disable ( Modifier *const e)

Disables a modifier in the simulation.

Parameters
ePointer to the modifier to be disabled.

◆ Disable() [2/2]

void netdem::ModifierManager::Disable ( std::string const & label)

Disables a modifier in the simulation.

Parameters
labelLabel of the modifier to be disabled.
Examples
0_plane_case.cpp, 1_test_triaxial_comp.cpp, 91_triaixal_comp.cpp, 91_triaixal_comp_trimesh.cpp, 93_triaixal_comp_trimesh.cpp, and 97_triaixal_comp_sphere_geom.cpp.

◆ Enable() [1/2]

void netdem::ModifierManager::Enable ( Modifier *const e)

Enables a modifier in the simulation.

Parameters
ePointer to the modifier to be enabled.

◆ Enable() [2/2]

◆ ExecuteModifiers()

void netdem::ModifierManager::ExecuteModifiers ( DEMSolver::CyclePoint cycle_point)

Executes all modifiers during the specified cycle point of the DEM solver.

Parameters
cycle_pointThe cycle point to execute modifiers at.

◆ FindModifier() [1/2]

bool netdem::ModifierManager::FindModifier ( Modifier *const e)

Finds a modifier in the simulation by pointer.

Parameters
ePointer to the modifier to find.
Returns
True if the modifier is found, false otherwise.

◆ FindModifier() [2/2]

Modifier * netdem::ModifierManager::FindModifier ( std::string const & label)

Finds a modifier in the simulation by label.

Parameters
labelLabel of the modifier to find.
Returns
Pointer to the found Modifier object.

◆ Init()

void netdem::ModifierManager::Init ( Simulation * s)

Initializes the ModifierManager instance.

Parameters
sPointer to the current simulation object.

◆ Insert()

◆ RemoveModifier()

void netdem::ModifierManager::RemoveModifier ( std::string const & label)

Removes a modifier from the simulation.

Parameters
labelLabel of the modifier to be removed.

◆ UpdateModifiers()

void netdem::ModifierManager::UpdateModifiers ( )

Updates the modifiers in the scene_state_subscribers when the scene changes.


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