<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>ScalarBar and LookupTable</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Hi vtkusers,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I color my objects using vtkUnsignedCharArray instead of vtkLookUpTable. To create a vtkScalarBarActor, I have to do</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&nbsp; scalarBar-&gt;SetLookupTable(mapper-&gt;GetLookupTable());</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">However, I have never created any lookup table explicitly, so my scalar bar always shows a color spectrum from Red to Blue. My questions are: Do I have to explicitly create a lookup table to reflect my custom color scheme? How do I let my scalar bar show my custom color scheme defined by vtkUnsignedCharArray?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Thanks a lot</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Yang</FONT>
</P>

</BODY>
</HTML>