<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&nbsp;&nbsp;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 &lt;dora.szasz@yahoo.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> "insight-users@itk.org" &lt;insight-users@itk.org&gt; <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); ">&nbsp; vtkOrientedGlyphContourRepresentation *rep = vtkOrientedGlyphContourRepresentation::New();&nbsp;</span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); ">&nbsp; rep-&gt;GetLinesProperty()-&gt;SetColor(1, 0, 0);</span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); ">&nbsp; ContourWidget-&gt;SetRepresentation(rep);</span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91);
 ">&nbsp;&nbsp;</span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); ">&nbsp; vtkImageActorPointPlacer * imageActorPointPlacer = vtkImageActorPointPlacer::New();&nbsp;</span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); ">&nbsp; imageActorPointPlacer-&gt;SetImageActor(ImageViewer-&gt;GetImageActor());&nbsp;</span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); ">&nbsp; rep-&gt;SetPointPlacer(imageActorPointPlacer);&nbsp;</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); ">&nbsp; imageActorPointPlacer-&gt;Delete();&nbsp;</span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); ">&nbsp;
 rep-&gt;Delete();&nbsp;</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); ">&nbsp; ContourWidget-&gt;SetInteractor(iren);&nbsp;</span></div><div><span style="font-family: times, serif; font-size: small; color: rgb(91, 91, 91); ">&nbsp; ContourWidget-&gt;SetEnabled(true);&nbsp;</span></div><div><span style="font-family: times, serif; font-size: 13px; color: rgb(91, 91, 91); ">&nbsp; ContourWidget-&gt;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>