[vtkusers] How to create graticule?

Jothybasu K Selvaraj jothybasu at gmail.com
Thu Apr 15 13:24:13 EDT 2010


I got it!

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.

Will loo into the slice code too.

Thanks

Jothy

On Thu, Apr 15, 2010 at 6:08 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:

> You could try vtkSlicerImageCrossHari2D which is part of Slicer3.
>
> http://viewvc.slicer.org/viewcvs.cgi/trunk/Base/GUI/vtkSlicerImageCrossHair2D.h?view=log
>
> http://viewvc.slicer.org/viewcvs.cgi/trunk/Base/GUI/vtkSlicerImageCrossHair2D.cxx?view=log
>
> You may have to edit it a bit if there are any slicer dependencies.
>
> Bill
>
>
> On Thu, Apr 15, 2010 at 11:54 AM, Jothybasu K Selvaraj
> <jothybasu at gmail.com> wrote:
> > Thanks Mirko,
> >
> > I tried this but I am able to get only a cross (1 horizontal and 1
> vertical
> > line).But how to draw smaller lines across along the line.Something like
> in
> > this page
> >
> > http://en.wikipedia.org/wiki/Coordinate_system
> >
> > Thanks again,
> >
> > Jothy
> >
> > On Thu, Apr 15, 2010 at 4:20 PM, mirko heuegger <mheuegger at gmail.com>
> wrote:
> >>
> >> Hello!
> >>
> >> On Thu, Apr 15, 2010 at 4:23 PM, Jothybasu K Selvaraj
> >> <jothybasu at gmail.com> wrote:
> >> > Is htere any class in vtk which can create graticule ( scaled
> >> > cross-hairs)?
> >>
> >> is vtkGlyphSource2D (and especially SetGlyphTypeToCross or
> >> SetGlyphTypeToThickCross) what you are search for?
> >>
> >> hth
> >>
> >> mirko
> >> --
> >> Real programmers don't document; if it was
> >> hard to write, it should be hard to understand.
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100415/f8444c50/attachment.htm>


More information about the vtkusers mailing list