[vtkusers] Size of labels in vtkScalarBarActor

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


Hello,
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:
    _pRenderer->AddActor2D(m_scalarBarActor);


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

I have no issues.

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


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