<div>Hi all,</div>
<div> </div>
<div>Finally I drew the line in this way, but it's not very correct :</div>
<div> </div>
<div>. . .</div>
<div> </div>
<div>// The line definition</div><font size="2">
<div>seeds = vtkLineSource::New();</div>
<div>seeds->SetPoint1(0.0,0.0,0.0);</div>
<div>seeds->SetPoint2(0.0,0.1,0.0);</div>
<div>seeds->SetResolution(20);</div>
<div> </div>
<div>// The Line Mapper</div>
<div>seedsMapper = vtkPolyDataMapper::New();</div>
<div>seedsMapper->SetInputConnection(seeds->GetOutputPort());</div>
<div> </div>
<div>// The line Actor</div>
<div>seedsActor = vtkActor::New();</div>
<div>seedsActor->SetMapper(seedsMapper);</div>
<div>seedsActor->GetProperty()->SetColor(1.0,1.0,1.0);</div>
<div>seedsActor->GetProperty()->SetRepresentationToPoints();</div>
<div>seedsActor->GetProperty()->SetOpacity(0.95);</div>
<div> </div>
<div>// The line Render</div>
<div>seedsRen = vtkRenderer::New();</div>
<div>seedsRen->AddActor(seedsActor);</div>
<div>seedsRen->SetViewport(0.499,0.0,0.501,1.0);</div>
<div> </div>
<div>// The ImageViewer Render</div>
<div></div></font><font size="2">ren = vtkRenderer::New();
<div> </div>
<div>// The general RenderWindow</div>
<div>renWindow = vtkRenderWindow::New();</div>
<div>renWindow->AddRenderer(ren);</div>
<div>renWindow->AddRenderer(seedsRen);</div>
<div> </div>
<div>// The Actor2D of ImageViewer</div></font><font size="2">
<div>ren->AddActor2D(viewer->GetActor2D());</div>
<div> </div>
<div>// Render the entire world </div>
<div></div></font><font color="#0000ff" size="2">this</font><font size="2">->GetInteractor()->Render(); </font>
<div><font size="2"></font> </div>
<div><font size="2">. . .</font></div>
<div><font size="2"> </font></div>
<div>All better ideas are welcome!</div>
<div>Thanks</div>
<div><br><br> </div>
<div class="gmail_quote">2008/5/13 Romuald BERTRAND <<a href="mailto:beromuald@wanadoo.fr">beromuald@wanadoo.fr</a>>:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<p style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px" align="left">Hi Stefano,<br><br>I think you have to draw your line at +0.01 on the image, because the line is draw under your image.<br>
<br>Bye<br></p><br><br><br><br>
<blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #ff0000 2px solid">> Message du 13/05/08 15:53<br>> De : "Stefano Sclaverano" <br>> A : <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
> Copie à : <br>> Objet : [vtkusers] vtkImageViewer and vtkLine
<div>
<div></div>
<div class="Wj3C7c"><br>> <br>>
<p style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px">Hi all,</p>
<p style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"> </p>
<p style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px">I think it could be a stupid question but I would know if it's possible and if someone has just done it...</p>
<p style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px">I'm tring to render an image Analyze 7.5 with vtkImageViewer and I want to put over this image a line to indicate me where I am with</p>
<p style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px">my cursor in the differents views (CORONAL, AXIAL, SAGITTAL). </p>
<p style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px">Not Problem with the visualisation but I cant arrive to render the line over the images...</p>
<p style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"> </p>
<p style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px">Someone knows how I can do it?</p>
<p style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"> </p>
<p style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px">Thanks.</p>
<p style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px">Stefano</p><br>><br></div></div>> [ (pas de nom de fichier) (0.3 Ko) ]</blockquote></blockquote></div><br>