<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>Thanks guys for all your answers. </DIV>
<DIV> </DIV>
<DIV>I tried vtkDisksource and I think this is the best and easiest way to do it.</DIV>
<DIV> </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>> Hi,<BR>><BR>> I would like to draw a circle each time and where exactly the user<BR>> clicks on my displayed image.<BR>><BR>> I saw examples to draw a sphere:<BR>><BR>> vtkSphereSource* m_sphere = vtkSphereSource::New();<BR>> vtkActor* m_sphereActor = vtkActor::New();<BR>> vtkPolyDataMapper* sphereMapper = vtkPolyDataMapper::New();<BR>> sphereMapper->SetInput(m_sphere->GetOutput());<BR>> m_sphereActor->SetMapper(sphereMapper);<BR>> m_Renderer->AddActor( m_sphereActor );<BR>><BR>> But is there a way to draw a circle (that is empty disk and in 2D)<BR>> instead of a filled sphere in 3D? Maybe vtkSphereSource added to<BR>vtkActor2D<BR>> could be a way?<BR>><BR>> I am not familiar with VTK for the moment, so, please, excuse me if<BR>> 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>><BR>> Isabelle<BR>> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo!<BR>Messenger<BR>> Téléchargez le ici ! _______________________________________________<BR>> This is the private VTK discussion list.<BR>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.<BR>> org/Wiki/VTK_FAQ<BR>> Follow this link to subscribe/unsubscribe:<BR>> 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>