VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
vtkOldStyleCallbackCommand.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkOldStyleCallbackCommand.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
33
#ifndef __vtkOldStyleCallbackCommand_h
34
#define __vtkOldStyleCallbackCommand_h
35
36
#include "
vtkCommand.h
"
37
38
// the old style void fund(void *) callbacks
39
class
VTK_COMMON_EXPORT
vtkOldStyleCallbackCommand
:
public
vtkCommand
40
{
41
public
:
42
vtkTypeMacro(
vtkOldStyleCallbackCommand
,
vtkCommand
);
43
44
static
vtkOldStyleCallbackCommand
*
New
()
45
{
return
new
vtkOldStyleCallbackCommand
;};
46
48
void
Execute
(
vtkObject
*invoker,
unsigned
long
eid,
void
*calldata);
49
51
52
void
SetClientData
(
void
*cd)
53
{this->ClientData = cd;};
54
void
SetCallback
(
void
(*f)(
void
*clientdata))
55
{this->Callback = f;};
56
void
SetClientDataDeleteCallback
(
void
(*f)(
void
*))
57
{this->ClientDataDeleteCallback = f;};
59
60
void
*ClientData;
61
void (*Callback)(
void
*);
62
void (*ClientDataDeleteCallback)(
void
*);
63
64
protected
:
65
vtkOldStyleCallbackCommand
();
66
~
vtkOldStyleCallbackCommand
();
67
};
68
69
70
#endif
/* __vtkOldStyleCallbackCommand_h */
71
Generated on Fri Aug 2 2013 12:19:46 for VTK by
1.8.4