[Paraview-developers] Getting representation pointer of a source

Jean-Noël Chiganne jean-noel.chiganne at limsi.fr
Tue Jun 26 04:38:19 EDT 2012


Hi everybody,

I'm trying to obtain the representation of a source, in order to
hide/unhide it on the renderview (using the "Visibility" property).
In order to achieve that, I tried to use
pqPipelineSource->GetDataRepresentation(myRenderView), but the only thing I
got is a segmentation fault...
Through vtkSMSourceProxy I tried to obtain the vtkSMOutputPort but was
unable to find how to finally have the representation.

Another problem I have, is when I create from scracth (using the session
manager and vtkSMProxy subclasses) cut plane filter->surface representation
associated with an existing source (what I want to do is applying a cut
plane on a source already in the render view) and register them in the
vtkSMSessionProxyManager, I got the following error "Representation could
not locate the pqPipelineSource object".

I tried to use the pqObjectBuilder instead but when I try to get the output
port of the existing source, I got an error "paraview invalid output port.
pqPipelineSource->GetOutputPort(0). Aborted"

Thanks in advance for your help :)

Regards

Jean-Noël
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120626/a3eb95d5/attachment.htm>


More information about the Paraview-developers mailing list