MantisBT - VTK
View Issue Details
0009964VTK(No Category)public2009-11-24 17:522016-08-12 09:55
David Doria 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0009964: vtkGraphLayoutView vertex array name
According to
http://www.vtk.org/doc/nightly/html/classvtkGraphLayoutView.html#a9308e088c7bdc9a8824d7ef018754fe5 [^]

the default vertex array name is "label". However, if you name the array "label" but do not explicitly set SetVertexLabelArrayName to "label", the labels are not applied correctly (the numbers are all wrong). Looking at the default array name:

vtkstd::cout << "Vertex label name: " << GraphLayoutView->GetVertexLabelArrayName () << vtkstd::endl;

it seems to be "VertexDegree". However, if I name the array that is added to the graph with G->GetVertexData()->AddArray "VertexDegree", the labels are still applied incorrectly. If I name the array "label" and set the VertexLabelArrayName to "label" the labels are applied properly.

Here is a little demo framework:
http://www.rpi.edu/~doriad/VTK_List/GraphVertexLabels/ [^]
No tags attached.
Issue History
2009-11-24 17:52David DoriaNew Issue
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037121
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0037121)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.