1 |
francois |
1061 |
// nUtil - An utility Library for gnurbs |
2 |
|
|
// Copyright (C) 2008-2019 Eric Bechet |
3 |
|
|
// |
4 |
|
|
// See the LICENSE file for contributions and license information. |
5 |
|
|
// Please report all bugs and problems to <bechet@cadxfem.org>. |
6 |
|
|
// |
7 |
|
|
|
8 |
|
|
#ifndef __KEYBOARDCALLBACK_H |
9 |
|
|
#define __KEYBOARDCALLBACK_H |
10 |
|
|
|
11 |
|
|
#include "vtkCommand.h" |
12 |
francois |
1156 |
#include "vtkdisplay.hxx" |
13 |
francois |
1061 |
|
14 |
|
|
class keyboardCallback : public vtkCommand |
15 |
|
|
{ |
16 |
|
|
private: |
17 |
|
|
vtkdisplay* myDisplay; |
18 |
|
|
keyboardCallback(vtkdisplay * diplay) :vtkCommand() |
19 |
|
|
{ |
20 |
|
|
myDisplay=diplay; |
21 |
|
|
} |
22 |
|
|
public: |
23 |
|
|
static keyboardCallback* New(vtkdisplay * display) |
24 |
|
|
{ |
25 |
|
|
return new keyboardCallback(display); |
26 |
|
|
} |
27 |
|
|
void Delete() |
28 |
|
|
{ |
29 |
|
|
delete this; |
30 |
|
|
} |
31 |
|
|
virtual void Execute(vtkObject *caller, unsigned long, void*); |
32 |
|
|
}; |
33 |
|
|
|
34 |
|
|
#endif |