[vtkusers] Help: How to keep the axis labels in a vtkXYPlotActor from being scaled
adnand dragoti
nundee at gmail.com
Sat Jun 20 17:16:32 EDT 2009
Hi Nasos,
thank you very much for the hint.
I actually tried with "xyplot->AddObserver(vtkCommand::ModifiedEvent,
...)"
but my callback wont get called on resize. Any clue ?
BR
Nandi
Nasos Iliopoulos wrote:
> I think there is no vtk-api way to do that. A fast work-around though
> is by creating a callback when the xyplotactor is modified, then
> manually set the fontsize of the title, axis labels etc to appropriate
> scale.
>
> Search for "SetRelativeFontSize", in the implementation of
> vtkxyplotactor
> (http://public.kitware.com/cgi-bin/cvsweb.cgi/VTK/Hybrid/vtkXYPlotActor.cxx?rev=1.69;content-type=text%2Fplain)
> to see how the vtkxyplotactor sizes the fonts and do the inverse to
> get non-resized fonts.
>
> I may try this in my code in the near future and will send you a
> response if I get appropriate results.
>
> Best
> Nasos
>
> > Date: Thu, 18 Jun 2009 19:24:39 +0200
> > From: nundee at gmail.com
> > To: vtkusers at vtk.org
> > Subject: [vtkusers] Help: How to keep the axis labels in a
> vtkXYPlotActor from being scaled
> >
> > Hi,
> >
> > if you resize the render window containing a XYPlotActor the axis labels
> > will get also resized. Is there any way to change this behaviour,
> > leaving the labels unscaled ?
> >
> > Thanks in advance
> > Nandi
> > _______________________________________________
> > 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
>
> ------------------------------------------------------------------------
> Insert movie times and more without leaving Hotmail®. See how.
> <http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009>
More information about the vtkusers
mailing list