[vtkusers] Drawing objects on Rendering windows and dragging them	with the mouse
    Cameron Burnett 
    w_e_b_m_a_s_t_e_r_6_9 at hotmail.com
       
    Sun Mar 16 11:33:25 EDT 2008
    
    
  
The dragging can be done with widgets. Have a look at the Cone6 example which shows how to use a vtkBoxWidget in a 3D environment. I would imagine you could use a similar approach for your 2D XY plot. Also check out the other widgets available. They're in the VTK book, but I'm sure you could find a description on the net somewhere.
I'm not too sure about how to draw stuff, but I think vtkPicker might be of use to select some points. Then you could possibly take those points and feed them into something that generates your line or rectangle. Not exactly sure though because I haven't used vtkPicker before. Its just something to look into.
Date: Sat, 15 Mar 2008 16:08:41 -0500
From: msh at cmrl.wustl.edu
To: vtkusers at vtk.org
Subject: [vtkusers] Drawing objects on Rendering windows and dragging them	with the mouse
Does any one have 
example programs demonstrating how draw objects like lines or rectangles on top 
of XY plots?
 
I want to use these 
to set plot bounds on subplots of XY data 
plots
_________________________________________________________________
It's simple! Sell your car for just $30 at CarPoint.com.au
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641&_t=762955845&_r=tig_OCT07&_m=EXT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080317/da05313e/attachment-0004.htm>
    
    
More information about the vtkusers
mailing list