Classes | Functions
vtkMemberFunctionCommand.h File Reference
#include "vtkCommand.h"
Include dependency graph for vtkMemberFunctionCommand.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 *))
 

Function Documentation

◆ vtkMakeMemberFunctionCommand() [1/2]

template<class ClassT >
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.

◆ vtkMakeMemberFunctionCommand() [2/2]

template<class ClassT >
vtkMemberFunctionCommand<ClassT>* vtkMakeMemberFunctionCommand ( ClassT &  object,
void(ClassT::*)(vtkObject *, unsigned long, void *)  method 
)

Definition at line 146 of file vtkMemberFunctionCommand.h.