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).
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)?