[vtkusers] vtkInteractionStyle
verena kinder
verena.kinder at web.de
Wed Apr 13 12:00:49 EDT 2005
I test it and derive my class from "vtkInteractorStyleSwitch" :
For preventing overwriting the vtkInteractorStyleSwitch behavior I copy the whole stuff from vtkInteractorStyleSwitch and add my case.
But now normal interacting is possible but if I press w nothing happend?!
void vtkMyInteractorStyle::OnChar()
{
switch (this->Interactor->GetKeyCode())
{
case 'j':
case 'J':
this->JoystickOrTrackball = VTKIS_JOYSTICK;
this->EventCallbackCommand->SetAbortFlag(1);
break;
case 't':
case 'T':
this->JoystickOrTrackball = VTKIS_TRACKBALL;
this->EventCallbackCommand->SetAbortFlag(1);
break;
case 'c':
case 'C':
this->CameraOrActor = VTKIS_CAMERA;
this->EventCallbackCommand->SetAbortFlag(1);
break;
case 'a':
case 'A':
this->CameraOrActor = VTKIS_ACTOR;
this->EventCallbackCommand->SetAbortFlag(1);
break;
case 'w':
case 'W':
cout<<"CFGGFGFG"<<endl;
break;
}
// Set the CurrentStyle pointer to the picked style
this->SetCurrentStyle();
}
Thanks
verena
-----Ursprüngliche Nachricht (HTML) wurde als Anlage beigefügt.-----
Von: David Cole <david.cole at kitware.com>
Gesendet: 13.04.05 17:16:45
An: "verena kinder" <verena.kinder at web.de>
Betreff: Re: [vtkusers] vtkInteractionStyle
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050413/deec4e2f/attachment.html>
More information about the vtkusers
mailing list