<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div style="font-family: 'times new roman', 'new york', times, serif; ">Hello all,</div><div style="font-family: 'times new roman', 'new york', times, serif; "><br></div><div style="font-family: 'times new roman', 'new york', 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 new roman', 'new york', times, serif; "><br></div><div style="font-family: 'times new roman', 'new york', 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 new roman', 'new york', times, serif; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; ">Basically, there is the code for
creating the desired contour:</div><div style="font-family: 'times new roman', 'new york', times, serif; "><br></div><div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 13px; color: rgb(91, 91, 91);">vtkContourWidget *ContourWidget = vtkContourWidget::New();</span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small; color: rgb(91, 91, 91);"><br></span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small; color: rgb(91, 91, 91);"> vtkOrientedGlyphContourRepresentation *rep = vtkOrientedGlyphContourRepresentation::New(); </span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small; color: rgb(91, 91, 91);"> rep->GetLinesProperty()->SetColor(1, 0, 0);</span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small;
color: rgb(91, 91, 91);"> ContourWidget->SetRepresentation(rep);</span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small; color: rgb(91, 91, 91);"> </span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small; color: rgb(91, 91, 91);"> vtkImageActorPointPlacer * imageActorPointPlacer = vtkImageActorPointPlacer::New(); </span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small; color: rgb(91, 91, 91);"> imageActorPointPlacer->SetImageActor(ImageViewer->GetImageActor()); </span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small; color: rgb(91, 91, 91);"> rep->SetPointPlacer(imageActorPointPlacer); </span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small; color:
rgb(91, 91, 91);"><br></span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small; color: rgb(91, 91, 91);"> imageActorPointPlacer->Delete(); </span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small; color: rgb(91, 91, 91);"> rep->Delete(); </span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small; color: rgb(91, 91, 91);"><br></span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small; color: rgb(91, 91, 91);"> ContourWidget->SetInteractor(iren); </span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: small; color: rgb(91, 91, 91);"> ContourWidget->SetEnabled(true); </span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size:
13px; color: rgb(91, 91, 91); "> ContourWidget->ProcessEventsOn();</span></div><div><span style="font-family: 'times new roman', 'new york', 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 new roman', 'new york', times, serif; font-size: 13px; color: rgb(91, 91, 91); "><br></span></div></div></div></body></html>