[vtkusers] issue in vtkGraphLayoutView

Steffen Oeltze stoeltze at isg.cs.uni-magdeburg.de
Tue Feb 15 07:35:35 EST 2011


Hi,

I am using a vtkGraphLayoutView as follows:

vtkSmartPointer<vtkGraphLayoutView> glv = 
vtkSmartPointer<vtkGraphLayoutView>::New();
glv->SetLayoutStrategyToCircular();
glv ->SetRepresentationFromInput(this);
glv ->VertexLabelVisibilityOn();
glv ->SetVertexColorArrayName("VertexDegree");
glv ->SetVertexLabelArrayName("VertexNames");
glv ->ColorVerticesOn();
glv ->SetEdgeColorArrayName("ColorIndices");
glv ->ColorEdgesOn();
glv ->SetEdgeLayoutStrategyToArcParallel();
// glv ->SetEdgeScalarBarVisibility(true);
// glv ->SetVertexScalarBarVisibility(true);

When I uncomment the last two lines in order to visualize the 
corresponding scalar bars, I receive the following errors:

Warning: In ..\..\Rendering\vtkScalarBarActor.cxx, line 240
vtkScalarBarActor (000000000CE56140): Need a mapper to render a scalar bar

Warning: In ..\..\Rendering\vtkScalarBarActor.cxx, line 263
vtkScalarBarActor (000000000CE55E80): Need a mapper to render a scalar bar
...

Do you have any idea why this is happening?

Best Regards,
Steffen



More information about the vtkusers mailing list