[vtkusers] VTK6.0 label size problem of vtkScalarBarActor

chasank chasank at gmail.com
Tue Jun 25 09:46:35 EDT 2013


Hi,

In vtk5.10.1 we can arrange label size of vtkScalarBarActor as we want, as
you see below.

<http://vtk.1045678.n5.nabble.com/file/n5721585/colorbar_calisan.png> 

But after we ported our project from vtk5.10.1 to vtk6.0, we cannot arrange
label size.

<http://vtk.1045678.n5.nabble.com/file/n5721585/colorbar_calismayan.png> 

Code we wrote for this operation is below.

    this->colorBar = vtkSmartPointer < vtkScalarBarActor> :: New();
    this->colorBar->SetMaximumNumberOfColors(256);
    this->colorBar->SetLookupTable(this->lookupTable);
    this->colorBar->SetHeight(0.10);
    this->colorBar->SetWidth(0.90);
    this->colorBar->SetPosition(0.04, 0.02);
    this->colorBar->SetOrientationToHorizontal();
    this->colorBar->SetNumberOfLabels(3);
    this->colorBar->SetLabelFormat("%.4g");
    this->colorBar->VisibilityOn();

We ask your help to size label as we wish. Which method(s) do we need to
use?

Sincerely.



--
View this message in context: http://vtk.1045678.n5.nabble.com/VTK6-0-label-size-problem-of-vtkScalarBarActor-tp5721585.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list