Hi,<br><br>I want to have two sphere widgets with the same interactor. The code I have written like this..<br><br>
<meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;">iren->SetInteractorStyle(vtkInteractorStyleTerrain::New());</p>
<p style="margin: 0px; text-indent: 0px;">// pointwidget1->SetInteractor(iren);</p>
<p style="margin: 0px; text-indent: 0px;">// pointwidget1->PlaceWidget();</p>
<p style="margin: 0px; text-indent: 0px;">// pointwidget2->SetInteractor(iren);</p>
<p style="margin: 0px; text-indent: 0px;">// pointwidget2->PlaceWidget();</p>
<p style="margin: 0px; text-indent: 0px;">// linewidget1->SetInteractor(iren);</p>
<p style="margin: 0px; text-indent: 0px;">// linewidget1->PlaceWidget();</p>
<p style="margin: 0px; text-indent: 0px;">// linewidget2->SetInteractor(iren);</p>
<p style="margin: 0px; text-indent: 0px;">// linewidget2->PlaceWidget();</p>
<p style="margin: 0px; text-indent: 0px;"> spherewidget1->SetInteractor(iren);</p>
<p style="margin: 0px; text-indent: 0px;"> spherewidget1->PlaceWidget();</p>
<p style="margin: 0px; text-indent: 0px;"> spherewidget1->SetCenter(10,10,-100);</p>
<p style="margin: 0px; text-indent: 0px;"> spherewidget1->SetPriority(0.2);</p>
<p style="margin: 0px; text-indent: 0px;"> spherewidget2->SetInteractor(iren);</p>
<p style="margin: 0px; text-indent: 0px;"> spherewidget2->PlaceWidget();</p>
<p style="margin: 0px; text-indent: 0px;"> spherewidget2->SetCenter(0,0,-100);</p>
<p style="margin: 0px; text-indent: 0px;">spherewidget2->SetPriority(0.5);</p>
<p style="margin: 0px; text-indent: 0px;"> iren->Initialize();</p>
<p style="margin: 0px; text-indent: 0px;"> iren->Start();</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">Each sphere widget is working fine when used individually. But when I tried to have both of them only one is coming. And it is the same for point and line widgets also..</p>
<p style="margin: 0px; text-indent: 0px;">Some one plz help on this. Thanx in advance..</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">Regards,</p><p style="margin: 0px; text-indent: 0px;">
Satya..<br></p>