My understanding is that scalar bars were a beta feature that never was fully functional and should either be completed or removed.<div><br></div><div>You are however free to set up your own vtkScalarBarActor with your lookup tables from your theme and call view->GetRenderer()->AddActor(scalarbar).</div>
<div><br></div><div>Jeff<br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 7:35 AM, Steffen Oeltze <span dir="ltr"><<a href="mailto:stoeltze@isg.cs.uni-magdeburg.de">stoeltze@isg.cs.uni-magdeburg.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
I am using a vtkGraphLayoutView as follows:<br>
<br>
vtkSmartPointer<vtkGraphLayoutView> glv = vtkSmartPointer<vtkGraphLayoutView>::New();<br>
glv->SetLayoutStrategyToCircular();<br>
glv ->SetRepresentationFromInput(this);<br>
glv ->VertexLabelVisibilityOn();<br>
glv ->SetVertexColorArrayName("VertexDegree");<br>
glv ->SetVertexLabelArrayName("VertexNames");<br>
glv ->ColorVerticesOn();<br>
glv ->SetEdgeColorArrayName("ColorIndices");<br>
glv ->ColorEdgesOn();<br>
glv ->SetEdgeLayoutStrategyToArcParallel();<br>
// glv ->SetEdgeScalarBarVisibility(true);<br>
// glv ->SetVertexScalarBarVisibility(true);<br>
<br>
When I uncomment the last two lines in order to visualize the corresponding scalar bars, I receive the following errors:<br>
<br>
Warning: In ..\..\Rendering\vtkScalarBarActor.cxx, line 240<br>
vtkScalarBarActor (000000000CE56140): Need a mapper to render a scalar bar<br>
<br>
Warning: In ..\..\Rendering\vtkScalarBarActor.cxx, line 263<br>
vtkScalarBarActor (000000000CE55E80): Need a mapper to render a scalar bar<br>
...<br>
<br>
Do you have any idea why this is happening?<br>
<br>
Best Regards,<br>
Steffen<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jeff Baumes, Ph.D.<br>Technical Lead, Kitware Inc.<br>(518) 881-4932<br>
</div>