<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div><span>I forgot to say that I want to apply thi contour to an image, so I use vtkImageViewer2.</span></div><div><br></div> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 10pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Dora Szasz <dora.szasz@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> "insight-users@itk.org" <insight-users@itk.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, August 15, 2012 7:25 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Entire contour obtained with vtkContourWidget scalable<br> </font> </div> <br>
<meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv1085992055"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 10pt; "><div style="font-family: times, serif; ">Hello all,</div><div style="font-family: times, serif; "><br></div><div style="font-family: times, serif; ">I want to make the entire contour (formed by all points and corresponding lines) scalable. How is this possible?</div><div style="font-family: times, serif; "><br></div><div style="font-family: times, serif; ">It is possible to apply vtkAffineWidget on the contour generated by vtkContourWidget? I have tried by my contour need to be an actor.</div><div style="font-family: times, serif; "><br></div><div style="font-family: times, serif; ">Basically, there is the code for
creating the desired contour:</div><div style="font-family: times, serif; "><br></div><div><div><span style="font-family: times, serif; font-size: 13px; color: rgb(91, 91, 91); ">vtkContourWidget *ContourWidget = vtkContourWidget::New();</span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); "><br></span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); "> vtkOrientedGlyphContourRepresentation *rep = vtkOrientedGlyphContourRepresentation::New(); </span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); "> rep->GetLinesProperty()->SetColor(1, 0, 0);</span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); "> ContourWidget->SetRepresentation(rep);</span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91);
"> </span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); "> vtkImageActorPointPlacer * imageActorPointPlacer = vtkImageActorPointPlacer::New(); </span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); "> imageActorPointPlacer->SetImageActor(ImageViewer->GetImageActor()); </span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); "> rep->SetPointPlacer(imageActorPointPlacer); </span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); "><br></span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); "> imageActorPointPlacer->Delete(); </span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); ">
rep->Delete(); </span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); "><br></span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); "> ContourWidget->SetInteractor(iren); </span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); "> ContourWidget->SetEnabled(true); </span></div><div><span style="font-family: times, serif; font-size: 13px; color: rgb(91, 91, 91); "> ContourWidget->ProcessEventsOn();</span></div><div><span style="font-family: times, serif; font-size: 13px; color: rgb(91, 91, 91); "><br></span></div><div>How can I make it a scalable surface?</div><div><br></div><div>Thank you!</div><div><br></div><div>Dora Szasz</div><div><span style="font-family: times, serif; font-size: 13px; color: rgb(91, 91, 91); "><br></span></div></div></div></div></div><meta
http-equiv="x-dns-prefetch-control" content="on"><br><br> </div> </div> </div></body></html>