[vtkusers] VTK6.0 label size problem of vtkScalarBarActor

Bill Lorensen bill.lorensen at gmail.com
Tue Jun 25 15:06:13 EDT 2013


Can you provide a small, compilable example that illustrates the problem?

Bill



On Tue, Jun 25, 2013 at 9:46 AM, chasank <chasank at gmail.com> wrote:

> 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.
> _______________________________________________
> 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
>



-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130625/159799d2/attachment.htm>


More information about the vtkusers mailing list