[vtkusers] Scale ticks and labels based on zoom in vtkCubeAxesActor?
Dan Lipsa
dan.lipsa at kitware.com
Fri Aug 28 15:24:54 EDT 2015
Serge,
Take a look at the new AxesGrid in ParaView from git master. I think it
does what you need. You may be able to use the classes that do that from
ParaView.
find . -name '*GridAxes*'
You'll have to either upgrade to latest VTK or backport these classes to
your VTK.
Dan
On Fri, Aug 28, 2015 at 11:57 AM, Serge Lalonde <serge at infolytica.com>
wrote:
> Does anyone know how (or if it's even possible) to scale the tick marks
> and labels based on the zoom factor.
> That is, as we zoom in, more tick marks and labels are added and as we
> zoom out, fewer tick marks are rendered since they get squeezed in the
> pixels.
>
> Basically, I'd like to avoid this situation when I zoom in:
>
>
> I'm currently using vtkCubeAxesActor with VTK 6.1.
>
> Thanks.
> --
> www.infolytica.com
> 300 Leo Pariseau, Suite 2222, Montreal, QC, Canada, H2X 4B3
> (514) 849-8752 x236, Fax: (514) 849-4239
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150828/60a74fd9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: R2015-2-14spr.png
Type: image/png
Size: 92711 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150828/60a74fd9/attachment.png>
More information about the vtkusers
mailing list