[vtk-developers] How to use vtkAffineWidget on vtkContourWidget?

darkcminor darkcminor at gmail.com
Mon Jan 6 17:14:52 EST 2014


How to use vtkAffineWidget on the contour generated by vtkContourWidget? 

To create a ContourWidget:

/vtkContourWidget *ContourWidget = vtkContourWidget::New();

  vtkOrientedGlyphContourRepresentation *rep =
vtkOrientedGlyphContourRepresentation::New(); 
  rep->GetLinesProperty()->SetColor(1, 0, 0);
  ContourWidget->SetRepresentation(rep);
  
  vtkImageActorPointPlacer * imageActorPointPlacer =
vtkImageActorPointPlacer::New(); 
  imageActorPointPlacer->SetImageActor(ImageViewer->GetImageActor()); 
  rep->SetPointPlacer(imageActorPointPlacer); 

  imageActorPointPlacer->Delete(); 
  rep->Delete(); 

  ContourWidget->SetInteractor(iren); 
  ContourWidget->SetEnabled(true); 
  ContourWidget->ProcessEventsOn();/


Is it possible to use vtkAffineWidget   with vtkpolyData gotten from
vtkContourWidget representation?
How can I use AffineWidget on it?



--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-use-vtkAffineWidget-on-vtkContourWidget-tp5725245.html
Sent from the VTK - Dev mailing list archive at Nabble.com.



More information about the vtk-developers mailing list