[vtkusers] Size of labels in vtkScalarBarActor

Cory Quammen cory.quammen at kitware.com
Wed Nov 29 10:07:27 EST 2017


If you could provide a stack trace from the crash, that would help
identify what additional initialization you might need to do.

Thanks,
Cory

On Wed, Nov 29, 2017 at 9:51 AM, Miguel <m.nunes at fratoria.com> wrote:
> 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
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.


More information about the vtkusers mailing list