ControlSubsamplingVertexVTKWriter class for writing VTK files with subsampling based on control messages. More...
#include <ikarus/utils/listener/controlvtkwriter.hh>
| Public Types | |
| using | Token = std::shared_ptr< void > | 
| Public Member Functions | |
| ControlSubsamplingVertexVTKWriter (const Basis &basis, int refinementLevels=0) | |
| Constructor for ControlSubsamplingVertexVTKWriter.  More... | |
| template<typename BC > | |
| ControlSubsamplingVertexVTKWriter & | subscribeTo (BC &bc) | 
| auto | setFieldInfo (std::string &&name, Dune::VTK::FieldInfo::Type type, std::size_t size, Dune::VTK::Precision prec=Dune::VTK::Precision::float32) | 
| Set field information for the VTK file.  More... | |
| auto | setFileNamePrefix (std::string &&name) | 
| Set the file name prefix for VTK files.  More... | |
| void | update (ControlMessages message, const Concepts::ControlRoutineState auto &state) | 
| Implementation of the update method.  More... | |
| template<typename Broadcaster > | |
| auto | subscribe (Broadcaster &broadcaster, std::function< void(typename Broadcaster::MessageType, const typename Broadcaster::State &)> callback) | 
| Function to subscribe to a broadcaster with a given function (either a lambda, std::function or function pointer).  More... | |
| void | unSubscribeAll () | 
| Unsubscribe from all listeners. At the moment unsubscribing can't be done more granularly.  More... | |
| void | unSubscribeLast () | 
| Unsubscribe from the last subscribed listener.  More... | |
| void | unSubscribe (const Token &token) | 
| Unsubscribe from a specific token.  More... | |
It inherits from the Listener class and is specifically designed for handling SOLUTION_CHANGED messages.
| B | The type of the grid basis. | 
| 
 | inherited | 
| 
 | inline | 
Initializes the VTK writer with the provided basis, solution, and refinement levels.
| basis | The grid basis. | 
| refinementLevels | The refinement levels for subsampling. | 
| 
 | inline | 
| name | The name of the field. | 
| type | The type of the field. | 
| size | The size of the field. | 
| prec | The precision of the field. | 
| 
 | inline | 
| p_name | The file name prefix. | 
| 
 | inlineinherited | 
| Broadcaster | the type of the Broadcaster (for example a NonlinearSolver or ControlRoutine) | 
| broadcaster | the broadcaster | 
| callback | the function | 
| 
 | inline | 
| 
 | inlineinherited | 
| 
 | inlineinherited | 
| 
 | inlineinherited | 
| 
 | inline | 
This method is called upon receiving a SOLUTION_CHANGED control message. It writes VTK files with subsampling based on the provided field information.
| message | The received control message. | 
| state | The received control state. |