<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks guys for all your answers. </DIV>
<DIV>&nbsp;</DIV>
<DIV>I tried vtkDisksource and&nbsp;I think this is the best and easiest way to do it.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Isabelle<BR><BR><BR><B><I>David.Pont@ensisjv.com</I></B> a écrit :</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>Renaud Isabelle <RENAUISA@YAHOO.FR>wrote on 17/08/2005 08:22:43:<BR><BR>&gt; Hi,<BR>&gt;<BR>&gt; I would like to draw a circle each time and where exactly the user<BR>&gt; clicks on my displayed image.<BR>&gt;<BR>&gt; I saw examples to draw a sphere:<BR>&gt;<BR>&gt; vtkSphereSource* m_sphere = vtkSphereSource::New();<BR>&gt; vtkActor* m_sphereActor = vtkActor::New();<BR>&gt; vtkPolyDataMapper* sphereMapper = vtkPolyDataMapper::New();<BR>&gt; sphereMapper-&gt;SetInput(m_sphere-&gt;GetOutput());<BR>&gt; m_sphereActor-&gt;SetMapper(sphereMapper);<BR>&gt; m_Renderer-&gt;AddActor( m_sphereActor );<BR>&gt;<BR>&gt; But is there a way to draw a circle (that is empty disk and in 2D)<BR>&gt; instead of a filled sphere in 3D? Maybe vtkSphereSource added to<BR>vtkActor2D<BR>&gt; could be a way?<BR>&gt;<BR>&gt; I am not familiar with VTK for the moment, so, please, excuse me if<BR>&gt; this
 seems obvious....<BR><BR>You could try:<BR>vtkCutter with vtkPlane and your vtkSphereSource<BR>vtkDiskSource<BR>vtkTexture loaded with an image of a circle on a transparent (alpha=0)<BR>background and placed on a vtkPlaneSource<BR>vtkImageViewer (never used this but worth a look I think...) with an<BR>image of a circle...<BR><BR>Dave P<BR><BR>&gt;<BR>&gt; Isabelle<BR>&gt; Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo!<BR>Messenger<BR>&gt; Téléchargez le ici ! _______________________________________________<BR>&gt; This is the private VTK discussion list.<BR>&gt; Please keep messages on-topic. Check the FAQ at: http://www.vtk.<BR>&gt; org/Wiki/VTK_FAQ<BR>&gt; Follow this link to subscribe/unsubscribe:<BR>&gt; http://www.vtk.org/mailman/listinfo/vtkusers<BR><BR></BLOCKQUOTE><p>
                <hr size=1> 
<b><font color=#FF0000>Appel audio GRATUIT</font> partout dans le monde</b> avec le nouveau Yahoo! Messenger<br> 
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez le ici !</a>