[vtkusers] infovis graph weight as edge thickness
Jeff Baumes
jeff.baumes at kitware.com
Mon Sep 28 08:12:29 EDT 2009
Ahmed,
The graph layout view does not currently support varying the edge
width of each edge. But what I have found to be effective is to set
the opacity range of the lookup table for the edges to go from 0.0 to
1.0. This effectively makes higher-weight edges stand out more.
view->SetEdgeColorArrayName("your edge weight array");
view->ColorEdgesOn();
vtkViewTheme* theme = vtkViewTheme::New();
vtkLookupTable lut = vtkLookupTable::SafeDownCast(theme->GetCellLookupTable());
lut->SetOpacityRange(0.0, 1.0);
view->ApplyViewTheme(lut);
Jeff
On Sat, Sep 26, 2009 at 6:42 AM, Ahmed Saad <ahmedalysaad2004 at yahoo.com> wrote:
> Hello,
> I'm using vtkMutableUndirectedGraph and vtkGraphLayoutView to render an undirected weighted graph. So How can we map the edge weights to edge thickness during the rendering?
>
> Thanks in advance
>
> Best regards,
> Ahmed Saad
>
>
>
>
> _______________________________________________
> 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
>
--
Jeff Baumes, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4932
jeff.baumes at kitware.com
More information about the vtkusers
mailing list