<div dir="ltr"><div><div><div><div>Hello,<br></div>short question, probably with an easy answer:<br><br></div>Why is the vtkSMRepresentationProxy, created for a vtkSMSourceProxy of a SphereSource not rendered in the attached c++ code?<br><br></div>I guess I am missing a step which adds the representation to the view. But how?<br><br></div>Peter<br><br>#include "vtkSMSession.h"<br>#include "vtkSMSessionClient.h"<br>#include "vtkProcessModule.h"<br>#include "vtkPVOptions.h"<br>#include "vtkInitializationHelper.h"<br>#include "vtkSMProxy.h"<br>#include "vtkSMProxyManager.h"<br>#include "vtkSMSessionProxyManager.h"<br>#include "vtkSMProxy.h"<br>#include "vtkSMPropertyHelper.h"<br>#include "vtkSMParaViewPipelineController.h"<br>#include "vtkSMProxy.h"<br>#include "vtkSMRepresentationProxy.h"<br>#include "vtkSMRenderViewProxy.h"<br>#include "vtkRenderWindowInteractor.h"<br><br>using namespace std;<br><br>int main(int argc, char* argv[]){<br>  vtkPVOptions *options=vtkPVOptions::New();<br>  vtkInitializationHelper::Initialize(argc,argv,vtkProcessModule::PROCESS_CLIENT,options);<br><br>  vtkSMSessionClient *session=vtkSMSessionClient::New();<br>  session->Connect("cs://localhost:11111");<br><br>  vtkSMParaViewPipelineController* smcontroller=vtkSMParaViewPipelineController::New();<br>  smcontroller->InitializeSession(session);<br><br>  vtkSMSessionProxyManager* pxm = session->GetSessionProxyManager();<br><br>  vtkSMRenderViewProxy *view=vtkSMRenderViewProxy::SafeDownCast(pxm->NewProxy("views","RenderView"));<br><br>  vtkSMSourceProxy *sphere=vtkSMSourceProxy::SafeDownCast(pxm->NewProxy("sources","SphereSource"));<br>  sphere->UpdatePipeline();<br><br>  vtkSMRepresentationProxy *repr=view->CreateDefaultRepresentation(sphere,0);<br>  repr->UpdateVTKObjects();<br><br>  view->MakeRenderWindowInteractor(true);<br>  vtkRenderWindowInteractor *iren=view->GetInteractor();<br>  iren->Initialize();<br>  view->GetInteractor()->Start();<br><br>  session->CloseSession();<br>  vtkInitializationHelper::Finalize();<br>}<br></div>