vtkLegendScaleActor

Dear All,

I would like to add a vtkLegendScaleActor to my paraview custom application render view, any suggestion on how to do it?

EDIT:
I have added with the following code

 auto legendActorCube = vtkSmartPointer<vtkLegendScaleActor>::New();
    legendActorCube->LegendVisibilityOff();
    auto rw=viewCube->getViewProxy()->GetRenderWindow()->GetRenderers();
    rw->GetFirstRenderer()->AddActor(legendActorCube);

but the actor is displayed only when I interact with the view (and the annotation of the render view display that remote rendering is off).

Thanks

Fabio,
You are targeting the wrong discourse page/community. Please ask your question on the VTK discourse page.
Cheers,
J.

Hi Joachim,

Thanks, but my question is related on how to use vtk classes in a paraview custom application.

Fabio

My bad Fabio.
So where do you put the code that adds the legend actor?
Does your custom application only work in built in mode (with no connection to a remote PV server)?

j.