[vtkusers] Picking in Win32

Peter Böttcher p.boettcher at anat.vetmed.uni-muenchen.de
Mon Oct 30 10:10:09 EST 2000


I try to implement vtkRenderWindowInteractor into a dialog-based
MFC-Application. I don't use the Win32-Interactor! Unfortunately I don't
find the right decleration for iren->SetEndPickMethod(????).
In a DOS-based application I used:

static void PickCells(void *)

void main(void)
{
vtkPointPicker *picker = vtkPointPicker::New();
    picker->SetTolerance(0.01);

  vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
    iren->SetRenderWindow(renWin);
    iren->SetPicker(picker);

iren->SetEndPickMethod(PickCells,(void *)iren);
  iren->Start();
}

static void PickCells(void *arg)
{
  vtkRenderWindowInteractor *iren = (vtkRenderWindowInteractor *)arg;
  vtkPointPicker *picker = (vtkPointPicker *)iren->GetPicker();
  ....
}

This works fine for DOS-bases application, unfortunately the decleration
isn't the same for windows-based applications? Any example code or
suggestions, how to get this work?

Peter.

--
Peter Böttcher
|
|-Chirurgische Tierklinik
| Lehrstuhl für Allgemeine und Spezielle Chirurgie, einschließlich
Augenkrankheiten
|
|-Institut für TieranatomieI
|
Ludwig-Maximilians-Universität München
Veterinärstr. 13
D-80539 München
Germany






More information about the vtkusers mailing list