[vtkusers] Vertex Position from vtkGraphLayoutView ? vtkRenderedGraphRepresentation::Layout is protected

Jeff Baumes jeff.baumes at kitware.com
Fri Apr 13 17:18:46 EDT 2012


This was an encapsulation decision that the user of the view should not
have access to the laid-out graph, but instead the view manages the layout
internally. To sidestep the issue, you can manually perform the graph
layout outside the view and set the laid-out graph as the input to the
graph layout view. If you do this you should set the PassThrough strategy
on the view so that the view does not further change the layout.

HTH,
Jeff

On Fri, Apr 13, 2012 at 10:31 AM, KrishnaPG <KrishnaPG at yahoo.com> wrote:

> Hello,
>
> How to access the polydata information of the graph laid out and displayed
> by the vtkGraphLayoutView ?
>
> The vtkRenderedGraphRepresentation::Layout->GetGraphOutput() should give
> access to the vtkGraph object  - but vtkRenderedGraphRepresentation::Layout
> is declared as protected and no copy-constructor or assignment operator !!
>
> Is this a bug?
>
> How to access the rendered graph post-layout vertices of the
> vtkGraphLayoutView?
>
> Thank you.
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Vertex-Position-from-vtkGraphLayoutView-vtkRenderedGraphRepresentation-Layout-is-protected-tp5638458p5638458.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120413/2c3525d4/attachment.htm>


More information about the vtkusers mailing list