<div dir="ltr">I got it!<br><br>Create polydata as many as you need ( this defines the positions of the glyphs) then set this as Input and then create a shape using vtkLineSource and set this as Source.<br><br>Will loo into the slice code too.<br>
<br>Thanks<br><br>Jothy<br><br><div class="gmail_quote">On Thu, Apr 15, 2010 at 6:08 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
You could try vtkSlicerImageCrossHari2D which is part of Slicer3.<br>
<a href="http://viewvc.slicer.org/viewcvs.cgi/trunk/Base/GUI/vtkSlicerImageCrossHair2D.h?view=log" target="_blank">http://viewvc.slicer.org/viewcvs.cgi/trunk/Base/GUI/vtkSlicerImageCrossHair2D.h?view=log</a><br>
<a href="http://viewvc.slicer.org/viewcvs.cgi/trunk/Base/GUI/vtkSlicerImageCrossHair2D.cxx?view=log" target="_blank">http://viewvc.slicer.org/viewcvs.cgi/trunk/Base/GUI/vtkSlicerImageCrossHair2D.cxx?view=log</a><br>
<br>
You may have to edit it a bit if there are any slicer dependencies.<br>
<br>
Bill<br>
<br>
<br>
On Thu, Apr 15, 2010 at 11:54 AM, Jothybasu K Selvaraj<br>
<div class="im"><<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>> wrote:<br>
> Thanks Mirko,<br>
><br>
> I tried this but I am able to get only a cross (1 horizontal and 1 vertical<br>
> line).But how to draw smaller lines across along the line.Something like in<br>
> this page<br>
><br>
> <a href="http://en.wikipedia.org/wiki/Coordinate_system" target="_blank">http://en.wikipedia.org/wiki/Coordinate_system</a><br>
><br>
> Thanks again,<br>
><br>
> Jothy<br>
><br>
> On Thu, Apr 15, 2010 at 4:20 PM, mirko heuegger <<a href="mailto:mheuegger@gmail.com">mheuegger@gmail.com</a>> wrote:<br>
>><br>
>> Hello!<br>
>><br>
>> On Thu, Apr 15, 2010 at 4:23 PM, Jothybasu K Selvaraj<br>
>> <<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>> wrote:<br>
>> > Is htere any class in vtk which can create graticule ( scaled<br>
>> > cross-hairs)?<br>
>><br>
>> is vtkGlyphSource2D (and especially SetGlyphTypeToCross or<br>
>> SetGlyphTypeToThickCross) what you are search for?<br>
>><br>
>> hth<br>
>><br>
>> mirko<br>
>> --<br>
>> Real programmers don't document; if it was<br>
>> hard to write, it should be hard to understand.<br>
><br>
><br>
</div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
</blockquote></div><br></div>