ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/addin/vtkdisplay/src/keyboardCallback.cc
Revision: 1061
Committed: Thu May 27 18:50:20 2021 UTC (4 years, 2 months ago) by francois
Original Path: magic/addin/vtkdisplay/src/keyboardCallback.cpp
File size: 626 byte(s)
Log Message:
reorganisation des repertoires de magic avec import de la visu vtk

File Contents

# User Rev Content
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     #include "keyboardCallback.h"
9     #include "vtkRenderWindowInteractor.h"
10     #include "vtkRenderWindow.h"
11    
12     void
13     keyboardCallback::Execute(vtkObject *caller, unsigned long, void*)
14     {
15     vtkRenderWindowInteractor *interactor = reinterpret_cast<vtkRenderWindowInteractor*>(caller);
16     int key=interactor->GetKeyCode();
17     //std::cerr<<"keyboardCallBack::Execute : called "<<key<<std::endl;
18    
19     myDisplay->kbCallback(key);
20     }