<br><font color="#000000"></font><blockquote><font color="#000000">Dear Prathamesh,<br><br>I was trying to insert the intermediate nodes.. But i failed to do so.. Well, i went through the documentation of vtkHandleRepresentation..<br>It is an abstract class.. So do i need to derive my own class and implement some functions..?? How do i use this class with <br>vtkContourRepresentation..? <br><br>Well, i create a contour using the mouse clicks.. In this case, how can i initialize a contour with two nodes,,?? As the positions of the nodes<br>will be available only when user clicks on the graphics window..<br><br>Thanks<br><br>---------- Original message ----------<br>From:"Prathamesh Kulkarni"< prathameshmkulkarni@gmail.com ><br>Date: 22 Jul 10 20:21:38<br>Subject: Re: Re: What is intermediate nodes in vtkContourWidgets?<br>To: Rakesh Patil <rakeshthp@in.com><br><br></font><div dir="ltr"><font color="#000000">I have not had the representations changed for my applicat
ion. But this may be achieved by using the vtkHandleRepresentation with your vtkContourRepresentation. <br><br>To handle the intermediate nodes, you can initialize a contour with two nodes (with some representation) and allow the user to add more nodes (with some other representation).<br>
<br>Prathamesh<br><br></font><div class="gmail_quote"><font color="#000000">On Wed, Jul 21, 2010 at 11:42 PM, Rakesh Patil <span dir="ltr"><<a target=\"_blank\" target="\"_blank\"" href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>></span> wrote:<br><font color="#000000"></font><font color="#000000"></font></font><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#000000"><font color="#000000"><font color="#000000"><br><font color="#000000"></font></font><font color="#000000"></font></font></font><blockquote><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000">Hi Prathamesh,<br><br>What i want is a contour having two end nodes displayed as a big circles or any other shape<br>and all the other points in the contour wherever i have clicked must be displayed in a small size<br>
<br>Is it possible to do that..?? I mean except for the first and the last click all other nodes must be intermediate nodes.<br><br>Any idea, how to do this??<br><br>Thanks</font></font></font></font></font><div><div></div><div class="h5"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><br><br><br>---------- Original message ----------<br>
From:"Prathamesh Kulkarni"< <a target=\"_blank\" href="mailto:prathameshmkulkarni@gmail.com" target="\"_blank\"">prathameshmkulkarni@gmail.com</a> ><br>Date: 21 Jul 10 21:45:46<br>Subject: Re: What is intermediate nodes in vtkContourWidgets?<br>
To: <a target=\"_blank\" href="mailto:rakeshthp@in.com" target="\"_blank\"">rakeshthp@in.com</a><br><br></font></font></font></font></font><div dir="ltr"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000">Hello Rakesh, <br><br>Going by the default behavior of vtkContourWidget, the representation should not have any nodes (intermediate or not) until you right click (or close the contour). You can verify this by contour_representation->GetNumberOfNodes();<br>
<br>The intermediate nodes should be (though I have not) used to get the nodes within a certain range. <br><br>There are many ways to adding a node to a contour, for example: contour_representation->AddNodeOnContour(x, y);<br>
<br><br>Prathamesh<br><br>Message: 30<br>
Date: Wed, 21 Jul 2010 20:18:51 +0530<br>
From: "Rakesh Patil" <<a target=\"_blank\" href="mailto:rakeshthp@in.com" target="\"_blank\"">rakeshthp@in.com</a>><br>
Subject: [vtkusers] What is intermediate nodes in vtkContourWidgets?<br>
To: "vtkusers" <<a target=\"_blank\" href="mailto:vtkusers@vtk.org" target="\"_blank\"">vtkusers@vtk.org</a>><br>
Message-ID: <<a target=\"_blank\" href="mailto:1279723731.8133415ea4647b6345849fb38311cf32@mail.in.com" target="\"_blank\"">1279723731.8133415ea4647b6345849fb38311cf32@mail.in.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hello,From the documentation of vtkOrientedGlyphContourReprese</font></font></font></font></font><div><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000">ntation,
i came across intermediate nodes..?? What are these and how to add
them?? When i get the total number of intermediate nodes, i get the
output as zero..what is this intermediate nodes and how to add them and
display?thanks.Dear vtkusers ! Get Yourself a cool, short @<a target=\"_blank\" href="http://in.com/" target="\"_blank\"">in.com</a> Email ID now!</font></font></font></font></font></div></div>
</div></div><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"></font></font></font></font></font></blockquote><div><div></div><div class="h5"><font color="#000000"><font color="#000000"><font color="#000000"><br><br></font></font></font><div style="border-top: 1px dashed rgb(204, 204, 204); border-bottom: 1px dashed rgb(204, 204, 204); padding: 5px;"><font color="#000000"><font color="#000000"><font color="#000000"><a target=\"_blank\" href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font: 13px arial; color: rgb(30, 86, 161); text-decoration: none;" target="\"_blank\"">Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></font></font></font></div>
</div></div><font color="#000000"><font color="#000000"><font color="#000000"></font></font></font></blockquote></div><font color="#000000"><br></font></div>
<font color="#000000"></font></blockquote><br><br><div style="border-top:1px dashed #ccc; border-bottom:1px dashed #ccc; padding:5px;"><a href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font:13px arial; color:#1E56A1; text-decoration:none;">Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>