[Insight-users] Entire contour obtained with vtkContourWidget scalable

Dora Szasz dora.szasz at yahoo.com
Wed Aug 15 14:18:09 EDT 2012


I forgot to say that I want to apply thi contour to an image, so I use  vtkImageViewer2.


________________________________
 From: Dora Szasz <dora.szasz at yahoo.com>
To: "insight-users at itk.org" <insight-users at itk.org> 
Sent: Wednesday, August 15, 2012 7:25 PM
Subject: Entire contour obtained with vtkContourWidget scalable
 

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/57246e5d/attachment.htm>


More information about the Insight-users mailing list