[vtkusers] vtkScalarBar Title font issue

John Platt jcplatt at dsl.pipex.com
Wed Dec 7 12:05:33 EST 2011


Hi Sahil,

You cannot set the font size - it is chosen automatically to fit the region occupied by vtkScalarBarActor. 

If you want to change this behaviour, you will need to change vtkScalarBarActor::SizeTitle().

This is the situation for version 5.4. Since the font size is not changing, I suspect this code has not changed.

HTH

John.
  ----- Original Message ----- 
  From: sahil6786 
  To: vtkusers at vtk.org 
  Sent: Wednesday, December 07, 2011 10:12 AM
  Subject: Re: [vtkusers] vtkScalarBar Title font issue


  Hii philippe,
  Im not explicitly setting any mapper to vtkScalarBar object.The default mapper it uses is vtkMapper2D. Im trying to set font by pScalarBarActor->GetTitleTextProperty()->SetFontSize(25);
  Do you know how i can call SetMultipleConstrainedFontSize().


  Thank you for your answer.


  Regards,
  Sahil


  On Tue, Dec 6, 2011 at 2:29 PM, Philippe Pebay [via VTK] <[hidden email]> wrote:

    Hello Sahil,

    The size is set by vtkTextMapper::SetMultipleConstrainedFontSize() in order to fix the scalar bar size and orientation.

    Best regards,
    Philippe 


    On Tue, Dec 6, 2011 at 9:37 AM, sahil6786 <[hidden email]> wrote:

      I have created a vtkScalarBarActor object and rendered it on a window. But
      when i try to change the size of the scalarbar title by
      scalarBar->GetTitleTextProperty()->SetFontSize(25)..the size doesnt change
      at all. What will be the problem?

      --
      View this message in context: http://vtk.1045678.n5.nabble.com/vtkScalarBar-Title-font-issue-tp5051421p5051421.html
      Sent from the VTK - Users mailing list archive at Nabble.com.
      _______________________________________________
      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




    -- 
    Philippe Pébay
    Directeur de la Visualisation et du Calcul Haute Performance
    Kitware SAS
    26 rue Louis Guérin
    69100 Villeurbanne
    France
    +33 (0)4.37.45.04.15
    http://www.kitware.fr

    _______________________________________________ 
    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




----------------------------------------------------------------------------

    If you reply to this email, your message will be added to the discussion below:
    http://vtk.1045678.n5.nabble.com/vtkScalarBar-Title-font-issue-tp5051421p5051466.html 
    To unsubscribe from vtkScalarBar Title font issue, click here.
    NAML 




------------------------------------------------------------------------------
  View this message in context: Re: vtkScalarBar Title font issue
  Sent from the VTK - Users mailing list archive at Nabble.com.



------------------------------------------------------------------------------


  _______________________________________________
  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/20111207/eda19a12/attachment.htm>


More information about the vtkusers mailing list