fw4spl
vtkLambdaCommand.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include "fwVtkIO/helper/vtkLambdaCommand.hpp"
8 
9 
10 namespace fwVtkIO
11 {
12 
13 namespace helper
14 {
15 void vtkLambdaCommand::Execute(vtkObject *caller, unsigned long event, void *callData)
16 {
17  if (m_callback)
18  {
19  m_callback(caller, event, callData);
20  }
21 }
22 
23 
24 } // namespace helper
25 } // namespace fwVtkIO
26 
virtual FWVTKIO_API void Execute(vtkObject *caller, unsigned long eid, void *callData) override
vtkCommand::Execute implementation