[vtkusers] Size of labels in vtkScalarBarActor

Miguel m.nunes at fratoria.com
Wed Nov 29 09:51:30 EST 2017

I am trying to mimic Fernando's work but after adding the scaleBar to the
renderer, I get a crash when refreshing the render window. 

I am adding the scale bar like this:

However, when I do this:
    vtkScalarBarActor *mybar = vtkScalarBarActor::New();
    mybar->SetLookupTable(m_scalarBarLUT );

I have no issues.

I have also tried adding a basic initialization, but without success:
    vtkContext2DScalarBarActor* m_scalarBarActor =
    m_scalarBarActor->SetLookupTable(m_scalarBarLUT );

Any idea on what could be wrong?
Thank you.

Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html

More information about the vtkusers mailing list