<div dir="ltr">I have not tried changing the representation in my application for vtkContourWidget. For vtkSeedWidget, I could do it using seed_representation-&gt;setHandleRepresentaion(). So you might have to insert a similar method into your subclass of (a derived class of) vtkContourRepresentation.<br>
<br>Initializing a wiget should take the following: yourContourRepresention-&gt;AddNodeAt....() and then widget-&gt;SetVisibleOn()<br><br>This will make the widget (with whatever number of points you add) appear by default. More points can always be added to it by the user.<br>
<br>Hope this helps.<br><br><br>Prathamesh<br><br><div class="gmail_quote">On Thu, Jul 22, 2010 at 11:00 AM, Rakesh Patil <span dir="ltr">&lt;<a href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<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..<div class="im"><br><br>Thanks<br><br>---------- Original message ----------<br>From:&quot;Prathamesh Kulkarni&quot;&lt; <a href="mailto:prathameshmkulkarni@gmail.com" target="_blank">prathameshmkulkarni@gmail.com</a> &gt;<br>
</div><div><div></div><div class="h5">Date: 22 Jul 10 20:21:38<br>Subject: Re: Re: What is intermediate nodes in vtkContourWidgets?<br>To: Rakesh Patil &lt;<a href="mailto:rakeshthp@in.com" target="_blank">rakeshthp@in.com</a>&gt;<br>
<br></div></div></font><div><div></div><div class="h5"><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">&lt;<a href="mailto:rakeshthp@in.com" target="_blank">rakeshthp@in.com</a>&gt;</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><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><br><br><br>---------- Original message ----------<br>
From:&quot;Prathamesh Kulkarni&quot;&lt; <a href="mailto:prathameshmkulkarni@gmail.com" target="_blank">prathameshmkulkarni@gmail.com</a> &gt;<br>Date: 21 Jul 10 21:45:46<br>Subject: Re: What is intermediate nodes in vtkContourWidgets?<br>

To: <a 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-&gt;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-&gt;AddNodeOnContour(x, y);<br>


<br><br>Prathamesh<br><br>Message: 30<br>
Date: Wed, 21 Jul 2010 20:18:51 +0530<br>
From: &quot;Rakesh Patil&quot; &lt;<a href="mailto:rakeshthp@in.com" target="_blank">rakeshthp@in.com</a>&gt;<br>
Subject: [vtkusers] What is intermediate nodes in vtkContourWidgets?<br>
To: &quot;vtkusers&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:1279723731.8133415ea4647b6345849fb38311cf32@mail.in.com" target="_blank">1279723731.8133415ea4647b6345849fb38311cf32@mail.in.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<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 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><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 href="http://mail.in.com/mails/new_reg.php?utm_source=invite&amp;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></div></div></blockquote><div><div></div><div class="h5"><br><br><div style="border-top: 1px dashed rgb(204, 204, 204); border-bottom: 1px dashed rgb(204, 204, 204); padding: 5px;"><a href="http://mail.in.com/mails/new_reg.php?utm_source=invite&amp;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></div>

</div></div></blockquote></div><br></div>