Change text properties in the visualizer (VTK)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Change text properties in the visualizer (VTK)

bodun
Hi,
 
I'm trying to change the text properties of the legend of the color scale. I found out that PCLVisualizerInteractorStyle::lut_actor_ is the object responsible for proprties of the color scale. In the PCLVisualizerInteractorStyle::Initialize () routine, I changed the default font size from 10 to 30:
 
  vtkSmartPointer<vtkTextProperty> prop = lut_actor_->GetLabelTextProperty ();
//  prop->SetFontSize (10);
  prop->SetFontSize(30);  // Change font size from 10 to 30!!
  lut_actor_->SetLabelTextProperty (prop);
  lut_actor_->SetTitleTextProperty (prop);
 
After recompiling the application, I see no effect: the labels on the color bar are unchanged.
 
I checked: the settings in the lut_actor_ are used in the display. For example, there is a line
 
  lut_actor_->SetNumberOfLabels (lut_actor_->GetNumberOfLabels () * 2);
 
which (really) changes the number of labels from 5 (VTK default) to 10.
 
Does anyone know, why it does not work with the labels?!
 
Thanks,
Philipp

_______________________________________________
PCL-developers mailing list
[hidden email]
http://pointclouds.org/mailman/listinfo/pcl-developers
http://pointclouds.org