[Insight-users] Entire contour obtained with vtkContourWidget scalable

Dora Szasz dora.szasz at yahoo.com
Wed Aug 15 13:25:43 EDT 2012


Hello all,

I want to make the entire contour (formed by all points and corresponding lines) scalable. How is this possible?

It is possible to apply vtkAffineWidget on the contour generated by vtkContourWidget? I have tried by my contour need to be an actor.

Basically, there is the code for creating the desired contour:

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();

How can I make it a scalable surface?

Thank you!

Dora Szasz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120815/7eb3550d/attachment.htm>


More information about the Insight-users mailing list