Hi,<div>I did it by accessing the interaction event with vtkCommand and if the interaction is with the point we need to set as fixed, set the active node position to the</div><div>coordinates of that point.</div><div>So it remains fixed. Below is the code.</div>
<div><br></div><div>                    double point[3] = {0.32722276735030559,0.086951000000000001,0};</div><div><div><font color="#4665a2" face="monospace"><span style="font-size:14.166666030883789px;line-height:18.333332061767578px">        this-&gt;Representation-&gt;GetNthNodeWorldPosition(0,pos2);</span></font></div>
<div><font color="#4665a2" face="monospace"><span style="font-size:14.166666030883789px;line-height:18.333332061767578px"><span class="Apple-tab-span" style="white-space:pre">        </span>this-&gt;Representation-&gt;GetActiveNodeWorldPosition(pos);</span></font></div>
<div><font color="#4665a2" face="monospace"><span style="font-size:14.166666030883789px;line-height:18.333332061767578px"><span class="Apple-tab-span" style="white-space:pre">        </span></span></font></div><div><font color="#4665a2" face="monospace"><span style="font-size:14.166666030883789px;line-height:18.333332061767578px"><span class="Apple-tab-span" style="white-space:pre">        </span>if( (pos[0] == pos2[0]) &amp;&amp; (pos[1]==pos2[1])){</span></font></div>
<div><font color="#4665a2" face="monospace"><span style="font-size:14.166666030883789px;line-height:18.333332061767578px"><span class="Apple-tab-span" style="white-space:pre">                </span>this-&gt;Representation-&gt;SetActiveNodeToWorldPosition(point)</span></font></div>
<div><font color="#4665a2" face="monospace"><span style="font-size:14.166666030883789px;line-height:18.333332061767578px">}</span></font></div><div><font color="#4665a2" face="monospace"><span style="font-size:14.166666030883789px;line-height:18.333332061767578px"><br>
</span></font></div><div><font color="#4665a2" face="monospace"><span style="font-size:14.166666030883789px;line-height:18.333332061767578px">Thanks.</span></font></div><br><div class="gmail_quote">On Tue, Jul 24, 2012 at 4:33 PM, Gishara Indeewarie <span dir="ltr">&lt;<a href="mailto:gish.777@gmail.com" target="_blank">gish.777@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi all,</div><div><br></div><div>I am doing a contour widget in VTK according to the example below:</div><div><br>
</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ContourWidget" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ContourWidget</a>
</div><div><br></div><div>I want to make a certain control point as fixed, so the user can&#39;t drag it.</div><div>I want to do it for that particular point only.</div><div>I tried many methods, such as keypressactivationoff, draggableoff etc but did not work out.</div>

<div>Is there any way to do this?</div><div><br></div><div>Thanks.</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div></div><font color="#666666">Gish</font><br>
</div>