7 #ifndef __FWVTKIO_HELPER_VTKLAMBDACOMMAND_HPP__ 8 #define __FWVTKIO_HELPER_VTKLAMBDACOMMAND_HPP__ 10 #include "fwVtkIO/config.hpp" 12 #include <vtkCommand.h> 28 typedef std::function< void (vtkObject*, unsigned long, void*) > Callback;
43 FWVTKIO_API
virtual void Execute(vtkObject* caller,
unsigned long eid,
void* callData)
override;
50 this->m_callback = callback;
68 #endif // __FWVTKIO_HELPER_VTKLAMBDACOMMAND_HPP__ Allows use of vtkCommand with lambdas.
vtkTypeMacro(vtkLambdaCommand, vtkCommand) static vtkLambdaCommand *New()
returns a new vtkLambdaCommand
virtual void SetCallback(Callback callback)
Sets callback.