![]() |
ImFusion C++ SDK 4.4.0
|
#include <ImFusion/CT/EventHandler/MemoryManager.h>
Memory manager. More...
Memory manager.
This class provides memory management before and after each subset iteration. The current images are synchronized to GPU before the iteration and deleted after the iteration to free the GPU memory.
Public Types | |
| enum class | MemoryOption { AlwaysUploadToGL , StreamToGL } |
Public Member Functions | |
| MemoryManager (const Solver &solver) | |
| Public Member Functions inherited from ImFusion::CT::EventHandler | |
| void | compute (SharedImageSet &x, Event event, Progress *progress=nullptr, const Selection &sel=Selection()) |
| void | setEnabled (bool enabled) |
| bool | getEnabled () const |
| Public Member Functions inherited from ImFusion::Configurable | |
| virtual void | configure (const Properties *p) |
| Configure this object instance by de-serializing the given Properties. | |
| virtual void | configuration (Properties *p) const |
| Serialize the current object configuration into the given Properties object. | |
| virtual void | configureDefaults () |
| Retrieve the properties of this object, replaces values with their defaults and sets it again. | |
| void | registerParameter (ParameterBase *param) |
| Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration(). | |
| void | unregisterParameter (const ParameterBase *param) |
| Remove the given Parameter or SubProperty from the list of registered parameters. | |
| Configurable (const Configurable &rhs) | |
| Configurable (Configurable &&rhs) noexcept | |
| Configurable & | operator= (const Configurable &) |
| Configurable & | operator= (Configurable &&) noexcept |
Public Attributes | |
| Parameter< MemoryOption > | p_memoryManagement = {"memoryManagement", MemoryOption::AlwaysUploadToGL, *this} |
| Options of memory management. | |
| Public Attributes inherited from ImFusion::Configurable | |
| Signal | signalParametersChanged |
| Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted. | |
Protected Member Functions | |
| void | startImpl (SharedImageSet &x, Event event, Progress *progress) override |
| void | preSubIterationImpl (SharedImageSet &x, Event event, Progress *progress, const Selection &sel) override |
| void | postSubIterationImpl (SharedImageSet &x, Event event, Progress *progress, const Selection &sel) override |
| Protected Member Functions inherited from ImFusion::CT::EventHandler | |
| virtual void | preIterationImpl (SharedImageSet &x, Event event, Progress *progress) |
| virtual void | postIterationImpl (SharedImageSet &x, Event event, Progress *progress) |
| virtual void | endImpl (SharedImageSet &x, Event event, Progress *progress) |
Additional Inherited Members | |
| Protected Attributes inherited from ImFusion::CT::EventHandler | |
| bool | m_enabled = true |
| Protected Attributes inherited from ImFusion::Configurable | |
| std::vector< Param > | m_params |
| List of all registered Parameter and SubProperty instances. | |
|
overrideprotectedvirtual |
Reimplemented from ImFusion::CT::EventHandler.
|
overrideprotectedvirtual |
Reimplemented from ImFusion::CT::EventHandler.
|
overrideprotectedvirtual |
Reimplemented from ImFusion::CT::EventHandler.