<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< karthik.krishnan@kitware.com ><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>><br>><br>> Thanks David,<br>><br>> I understand the concept of legendboxactor now.. But I hope you know why i<br>> want to<br>> use different sized symbol.. I am displaying vector plots. So to show the<br>> magnitude<br>> range of a vector (min and max size of arrow) i need different sized shapes<br>> in legendboxactor.<br>><br>> As you said, colors, these vectors can be plotted either in black color, or<br>> with color<br>> scaled by the vector magnitude. So in second case, i need both color and<br>> size to<br>> indicate range. Whereas in first case i only need size...<br>><br>> So, Apart from writing my own actor, can anyone suggest some other<br>> solution..??<br>><br>> Thanks 'n' Regards<br>><br>> ---------- Original message ----------<br>>
From:David Doria< daviddoria+vtk@gmail.com ><br>> Date: 01 Feb 10 19:29:20<br>> Subject: Re: [vtkusers] How to put a legend box?<br>> To: rakeshthp@in.com<br>><br>> On Mon, Feb 1, 2010 at 5:24 AM, Rakesh Patil wrote:<br>>> Hello,<br>>><br>>> I want to di splay a legend box ... The legend should be an arrow. One big<br>>> arrow and one small arrow along with the smallest and the largest length<br>>> of<br>>> the arrow. How do i do this..??<br>>><br>>> Thanks<br>>><br>><br>> The problem was that he was trying to put different sized symbols in<br>> the legend box. Rakesh, the legend actor automatically resizes the<br>> symbols, as we discussed in the last thread about this. Different<br>> sized symbols in a legend is probably not a good idea, hence why<br>> they've written the code as such. You'll probably either want to dig<br>> into the code of the actor or find a different way (m
aybe color?) to<br>> indicate which arrows are which.<br>><br>> Thanks,<br>><br>> David<br>> _______________________________________________<br>> Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>><br>> Visit other Kitware open-source projects at<br>> <a target=\"_blank\" 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:<br>> <a target=\"_blank\" 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 target=\"_blank\" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>><br>> _______________________________________________<br>> Powered by <a target=\"_blank\" href="h
ttp://www.kitware.com" target="_blank">www.kitware.com</a><br>><br>> Visit other Kitware open-source projects at<br>> <a target=\"_blank\" 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:<br>> <a target=\"_blank\" 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 target=\"_blank\" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>><br>><br></rakeshthp@in.com></rakeshthp@in.com></blockquote>