<br>Hi.. <br><br>This is a flat 2D scene.. Actually, by default it has to be in black color with legend box showing big and small arrow. Now if user wants to view vectors in color, then scalarbar will come in picture.. <br><br>Any idea.??<br><br>Thanks<br><blockquote><br>---------- Original message ----------<br>From:Karthik Krishnan&lt; karthik.krishnan@kitware.com &gt;<br>Date: 02 Feb 10 21:22:45<br>Subject:  Re: [vtkusers] How to put a legend box?<br>To: Rakesh Patil <rakeshthp@in.com><br><br>Is this a 3D scene or a flat 2D scene. If its a 3D scene and if you<br>are using perspective projection, its a really bad idea to using an<br>annotation that's driven by size is obviously going to be incorrect.<br>If you are using a parallel projection, you are going to have to<br>redraw the legend with various zoom levels .<br><br>The would be the simplest way to go, is as you've pointed out : color<br>map the vectors by their magnitude and simply use a vtkScalarBarActor.<br>Why do 
 you find it necessary "to use both color and size in the second<br>case" ?<br><br><br>On Mon, Feb 1, 2010 at 12:23 PM, Rakesh Patil <rakeshthp@in.com> wrote:<br>&gt;<br>&gt;<br>&gt; Thanks David,<br>&gt;<br>&gt; I understand the concept of legendboxactor now.. But I hope you know why i<br>&gt; want to<br>&gt; use different sized symbol.. I am displaying vector plots. So to show the<br>&gt; magnitude<br>&gt; range of a vector (min and max size of arrow) i need different sized shapes<br>&gt; in legendboxactor.<br>&gt;<br>&gt; As you said, colors, these vectors can be plotted either in black color, or<br>&gt; with color<br>&gt; scaled by the vector magnitude. So in second case, i need both color and<br>&gt; size to<br>&gt; indicate range. Whereas in first case i only need size...<br>&gt;<br>&gt; So, Apart from writing my own actor, can anyone suggest some other<br>&gt; solution..??<br>&gt;<br>&gt; Thanks 'n' Regards<br>&gt;<br>&gt; ---------- Original message ----------<br>&gt;
  From:David Doria&lt; daviddoria+vtk@gmail.com &gt;<br>&gt; Date: 01 Feb 10 19:29:20<br>&gt; Subject: Re: [vtkusers] How to put a legend box?<br>&gt; To: rakeshthp@in.com<br>&gt;<br>&gt; On Mon, Feb 1, 2010 at 5:24 AM, Rakesh Patil wrote:<br>&gt;&gt; Hello,<br>&gt;&gt;<br>&gt;&gt; I want to di splay a legend box ... The legend should be an arrow. One big<br>&gt;&gt; arrow and one small arrow along with the smallest and the largest length<br>&gt;&gt; of<br>&gt;&gt; the arrow. How do i do this..??<br>&gt;&gt;<br>&gt;&gt; Thanks<br>&gt;&gt;<br>&gt;<br>&gt; The problem was that he was trying to put different sized symbols in<br>&gt; the legend box. Rakesh, the legend actor automatically resizes the<br>&gt; symbols, as we discussed in the last thread about this. Different<br>&gt; sized symbols in a legend is probably not a good idea, hence why<br>&gt; they've written the code as such. You'll probably either want to dig<br>&gt; into the code of the actor or find a different way (m
 aybe color?) to<br>&gt; indicate which arrows are which.<br>&gt;<br>&gt; Thanks,<br>&gt;<br>&gt; David<br>&gt; _______________________________________________<br>&gt; Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a target=\"_blank\" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; <a target=\"_blank\" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a target=\"_blank\" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br>&gt; _______________________________________________<br>&gt; Powered by <a target=\"_blank\" href="h
 ttp://www.kitware.com" target="_blank">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a target=\"_blank\" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt; Please keep messages on-topic and check the VTK FAQ at:<br>&gt; <a target=\"_blank\" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a target=\"_blank\" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;<br>&gt;<br></rakeshthp@in.com></rakeshthp@in.com></blockquote>