<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jan 9, 2015 at 3:03 AM, mbcx9rb9 <span dir="ltr"><<a href="mailto:richard.j.brown@live.co.uk" target="_blank">richard.j.brown@live.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
1. the coordinates returned by the interactor use the Display coordinate<br>
system, so they depend on the window size, zoom, rotation, etc. of the<br>
viewer - can I get it to return the nearest DICOM world(?) coordinate such<br>
that, for a DICOM of 500 x 500 x 500 slices, I return x, y, z coordinates<br>
between 0 and 500?<br></blockquote><div><br></div><div>The vtkCellPicker can do this. With it, you can do a "Pick" at your display</div><div>coordinates, and then you can call GetPointIJK() to get the i,j,k coordinates.</div><div>The "IJK" coordinates are what VTK calls "structured coordinates" and they</div><div>are what you want. </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
2. When I draw the circle or sphere, it removes the previous slice or 3D<br>
render. I saw in this example<br>
<<a href="http://vtk.1045678.n5.nabble.com/render-a-sphere-at-a-point-in-a-volume-td1246875.html#a1246876" target="_blank">http://vtk.1045678.n5.nabble.com/render-a-sphere-at-a-point-in-a-volume-td1246875.html#a1246876</a>><br>
, he added both actors at the same time. Short of redrawing everything I<br>
can't do that - it seems that adding one in later removes the previous<br>
render?<br></blockquote><div><br></div><div>The way you are describing this suggests that you don't yet understand</div><div>how VTK rendering works... drawing the sphere cannot "remove" the slice.</div><div><br></div><div>All of the actors exist in the scene at the same time. If you can't see an</div><div>actor, it probably just means that (a) it is hidden underneath another</div><div>actor, or (b) it is not within the viewing frustum.</div><div><br></div><div>I think that what you want to do is show just the outline of where the sphere</div><div>intersects the slice. This can be done by applying vtkCutter to the sphere.</div></div><br></div><div class="gmail_extra"> - David</div></div>