[vtkusers] after picking rotation went slower

verena kinder verena.kinder at web.de
Tue Apr 19 08:19:10 EDT 2005


Hello!

I have a problem with my program. After I use the 'p' keypress the rotating by mousing is so much slower than befor 'p' is pressed.

Short explanation of the program:

1. When it starts a clear window appears. Now I have the choice to press a few keys -do that by:
	vtkInteraction *interaction=vtkInter::New();
	///defines new KeyPressEvent
	iren->RemoveObservers ( vtkCommand::KeyPressEvent );
	iren->AddObserver ( vtkCommand::KeyPressEvent, interaction );
in the Excecute() of the interaction class I defined the reactions of the diffrent keypresses.

2. When I choise any key a volume is rendered. Now I have the possibillity to pick a coordinate by pressing 'p'. Do that by adding following code in the Execute() of interaction class:
	vtkPointPicker *picker=vtkPointPicker::New();
	vtkPicking *b=vtkPicking::New();
	iren->SetPicker(picker);
	iren->RemoveObservers ( vtkCommand::EndPickEvent);
	iren->AddObserver(vtkCommand::EndPickEvent,b);
In the Execute()of the class vtkPicking picking is defined.
3. Now I press a key 'c'(defined in the execute() of the interaction class) 
and the clipped volume is rendered.

4. The problem occures rotating by mousing is very very slow- nearly nothing happend.
Why???


Thanks
verena
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193




More information about the vtkusers mailing list