<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Maybe define the callback on one or more of the vtkTextProperties? i.e. <br>vtkTextProperty *tp = xyplotactor->GetAxisTitleTextProperty();<br>tp->addObserver(....<br><br>Find a list of them here:<br>http://www.vtk.org/doc/nightly/html/classvtkXYPlotActor.html#8325ce9bc384ba655e595e3dd9a5d6bc<br><br><br><br>> Date: Sat, 20 Jun 2009 23:16:32 +0200<br>> From: nundee@gmail.com<br>> To: nasos_i@hotmail.com<br>> CC: vtkusers@vtk.org<br>> Subject: Re: [vtkusers] Help: How to keep the axis labels in a vtkXYPlotActor from being scaled<br>> <br>> Hi Nasos,<br>> thank you very much for the hint.<br>> I actually tried with "xyplot->AddObserver(vtkCommand::ModifiedEvent, <br>> ...)"<br>> but my callback wont get called on resize. Any clue ?<br>> <br>> BR<br>> Nandi<br>> <br>> Nasos Iliopoulos wrote:<br>> > I think there is no vtk-api way to do that. A fast work-around though <br>> > is by creating a callback when the xyplotactor is modified, then <br>> > manually set the fontsize of the title, axis labels etc to appropriate <br>> > scale.<br>> ><br>> > Search for "SetRelativeFontSize", in the implementation of <br>> > vtkxyplotactor <br>> > (http://public.kitware.com/cgi-bin/cvsweb.cgi/VTK/Hybrid/vtkXYPlotActor.cxx?rev=1.69;content-type=text%2Fplain) <br>> > to see how the vtkxyplotactor sizes the fonts and do the inverse to <br>> > get non-resized fonts.<br>> ><br>> > I may try this in my code in the near future and will send you a <br>> > response if I get appropriate results.<br>> ><br>> > Best<br>> > Nasos<br>> ><br>> > > Date: Thu, 18 Jun 2009 19:24:39 +0200<br>> > > From: nundee@gmail.com<br>> > > To: vtkusers@vtk.org<br>> > > Subject: [vtkusers] Help: How to keep the axis labels in a <br>> > vtkXYPlotActor from being scaled<br>> > ><br>> > > Hi,<br>> > ><br>> > > if you resize the render window containing a XYPlotActor the axis labels<br>> > > will get also resized. Is there any way to change this behaviour,<br>> > > leaving the labels unscaled ?<br>> > ><br>> > > Thanks in advance<br>> > > Nandi<br>> > > _______________________________________________<br>> > > Powered by www.kitware.com<br>> > ><br>> > > Visit other Kitware open-source projects at <br>> > http://www.kitware.com/opensource/opensource.html<br>> > ><br>> > > Please keep messages on-topic and check the VTK FAQ at: <br>> > http://www.vtk.org/Wiki/VTK_FAQ<br>> > ><br>> > > Follow this link to subscribe/unsubscribe:<br>> > > http://www.vtk.org/mailman/listinfo/vtkusers<br>> ><br>> > ------------------------------------------------------------------------<br>> > Insert movie times and more without leaving Hotmail®. See how. <br>> > <http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009><br>> <br><br /><hr />Hotmail® has ever-growing storage! Don’t worry about storage limits. <a href='http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009' target='_new'>Check it out.</a></body>
</html>