<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">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.<br><br>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.<br></div><br><div></div><br><br><blockquote><hr id="EC_stopSpelling">Date: Sat, 15 Mar 2008 16:08:41 -0500<br>From: msh@cmrl.wustl.edu<br>To: vtkusers@vtk.org<br>Subject: [vtkusers] Drawing objects on Rendering windows and dragging them        with the mouse<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<div><font face="Arial" size="2"><span class="EC_777570521-15032008">Does any one have
example programs demonstrating how draw objects like lines or rectangles on top
of XY plots?</span></font></div>
<div><font face="Arial" size="2"><span class="EC_777570521-15032008"></span></font> </div>
<div><font face="Arial" size="2"><span class="EC_777570521-15032008">I want to use these
to set plot bounds on subplots of XY data
plots</span></font></div>
</blockquote><br /><hr />Find a new job on Seek <a href='http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau%2F%3Ftracking%3Dsk%3Amtl%3Ask%3Anine%3A0%3Ahot%3Atext&_t=764565661&_r=JAN08_endtext_increase&_m=EXT' target='_new'>Increase your salary. </a></body>
</html>