#include "vtkCommand.h"
Go to the source code of this file.
Classes | |
class | vtkMemberFunctionCommand< ClassT > |
Call a class member method in response to a VTK event. More... | |
Functions | |
template<class ClassT > | |
vtkMemberFunctionCommand< ClassT > * | vtkMakeMemberFunctionCommand (ClassT &object, void(ClassT::*method)()) |
Convenience function for creating vtkMemberFunctionCommand instances that automatically deduces its arguments. More... | |
template<class ClassT > | |
vtkMemberFunctionCommand< ClassT > * | vtkMakeMemberFunctionCommand (ClassT &object, void(ClassT::*method)(vtkObject *, unsigned long, void *)) |
vtkMemberFunctionCommand<ClassT>* vtkMakeMemberFunctionCommand | ( | ClassT & | object, |
void(ClassT::*)() | method | ||
) |
Convenience function for creating vtkMemberFunctionCommand instances that automatically deduces its arguments.
Usage:
vtkObject* subject = ... foo* observer = ... vtkCommand* adapter = vtkMakeMemberFunctionCommand(observer, &foo::bar); subject->AddObserver(vtkCommand::AnyEvent, adapter);
See Also: vtkMemberFunctionCommand, vtkCallbackCommand
Definition at line 137 of file vtkMemberFunctionCommand.h.
vtkMemberFunctionCommand<ClassT>* vtkMakeMemberFunctionCommand | ( | ClassT & | object, |
void(ClassT::*)(vtkObject *, unsigned long, void *) | method | ||
) |
Definition at line 146 of file vtkMemberFunctionCommand.h.