[vtkusers] How to put a legend box?
Rakesh Patil
rakeshthp at in.com
Thu Feb 11 07:51:51 EST 2010
Hi.. 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.. Any idea.??Thanks Original message From:Karthik Krishnan< karthik.krishnan at kitware.com >Date: 02 Feb 10 21:22:45Subject:Re: [vtkusers] How to put a legend box?To: Rakesh Patil Is this a 3D scene or a flat 2D scene. If its a 3D scene and if youare using perspective projection, its a really bad idea to using anannotation that's driven by size is obviously going to be incorrect.If you are using a parallel projection, you are going to have toredraw the legend with various zoom levels .The would be the simplest way to go, is as you've pointed out : colormap the vectors by their magnitude and simply use a vtkScalarBarActor.Why do you find it necessary "to use both color and size in the secondcase" ?On Mon, Feb 1, 2010 at 12:23 PM, Rakesh Patilwrote:>>> Thanks David,>> I underst
and the concept of legendboxactor now.. But I hope you know why i> want to> use different sized symbol.. I am displaying vector plots. So to show the> magnitude> range of a vector (min and max size of arrow) i need different sized shapes> in legendboxactor.>> As you said, colors, these vectors can be plotted either in black color, or> with color> scaled by the vector magnitude. So in second case, i need both color and> size to> indicate range. Whereas in first case i only need size...>> So, Apart from writing my own actor, can anyone suggest some other> solution..??>> Thanks 'n' Regards>> Original message > From:David Doria< daviddoria+vtk at gmail.com >> Date: 01 Feb 10 19:29:20> Subject: Re: [vtkusers] How to put a legend box?> To: rakeshthp at in.com>> On Mon, Feb 1, 2010 at 5:24 AM, Rakesh Patil wrote:>> Hello,>>>> I want to di splay a legend box ... The legend should be an arrow. One big>> arrow and one small arrow along with the smallest and the largest length>> of>> the ar
row. How do i do this..??>>>> Thanks>>>> The problem was that he was trying to put different sized symbols in> the legend box. Rakesh, the legend actor automatically resizes the> symbols, as we discussed in the last thread about this. Different> sized symbols in a legend is probably not a good idea, hence why> they've written the code as such. You'll probably either want to dig> into the code of the actor or find a different way (maybe color?) to> indicate which arrows are which.>> Thanks,>> David> > Powered by www.kitware.com>> Visit other Kitware opensource projects at> http://www.kitware.com/opensource/opensource.html>> Please keep messages ontopic and check the VTK FAQ at:> http://www.vtk.org/Wiki/VTKFAQ>> Follow this link to subscribe/unsubscribe:> http://www.vtk.org/mailman/listinfo/vtkusers>> > Powered by www.kitware.com>> Visit other Kitware opensource projects at> http://www.kitware.com/opensource/opensource.html>> Please keep messages ontopic and check the VTK FAQ
at:> http://www.vtk.org/Wiki/VTKFAQ>> Follow this link to subscribe/unsubscribe:> http://www.vtk.org/mailman/listinfo/vtkusers>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100211/9dfa6c34/attachment.htm>
More information about the vtkusers
mailing list