<div>Utkarsh,</div>
<div> </div>
<div>Thanks again, that worked. </div>
<div> </div>
<div>Now that the widget shows and can be interacted with I need to register an oberver with it. I am not sure how to do that, since, again, I don&#39;t see any command properties defined for it in the XML resource file. </div>


<div> </div>
<div>And another question - where or how would I find the information that, for example a widget has to be added to a view before it can be enabled,  so that I wouldn&#39;t be bugging others with my posts to the mailing list? Is there a documentation or a set of examples?</div>


<div> </div>
<div>Jenya</div>
<div><br> </div>
<div class="gmail_quote">On Tue, May 25, 2010 at 12:09 PM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Make sure you are changing the enabled state after the widget has been<br>added to the view i.e. after the following code:<br>


<div class="im"><br> pqSMAdaptor::addProxyProperty(<br>       m_renderView-&gt;getProxy()-&gt;GetProperty(&quot;Representations&quot;), sliceWidget)<br></div>m_renderView-&gt;getProxy()-&gt;UpdateVTKObjects();<br><font color="#888888"><br>

Utkarsh<br></font>
<div>
<div></div>
<div class="h5"><br>On Tue, May 25, 2010 at 2:57 PM, Jenya Burstein &lt;<a href="mailto:taijinian@gmail.com">taijinian@gmail.com</a>&gt; wrote:<br>&gt; Utkarsh,<br>&gt;<br>&gt; Thank you for the response. I think that moved me one step closer to the<br>

&gt; solution.<br>&gt;<br>&gt; However, now I get the following runtime error in the Output window:<br>&gt; ERROR: In ..\..\..\VTK\Widgets\vtkAbstractWidget.cxx, line 119<br>&gt;<br>&gt; vtkImplicitPlaneWidget2 (000000000D01C8C0): The interactor must be set prior<br>

&gt; to enabling the widget<br>&gt;<br>&gt;<br>&gt;<br>&gt; I don&#39;t see an &quot;Interactor&quot; property defined in the XML file for the<br>&gt; ImplicitPlaneWidgetRepresentation and I get a zero pointer if I try to get<br>

&gt; it with:<br>&gt;   vtkSMProperty* p = sliceWidget-&gt;GetProperty(&quot;Interactor&quot;);<br>&gt;<br>&gt; Jenya<br>&gt; On Tue, May 25, 2010 at 11:39 AM, Utkarsh Ayachit<br>&gt; &lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt; wrote:<br>

&gt;&gt;<br>&gt;&gt; pqSMAdaptor::setElementProperty(sliceWidget-&gt;GetProperty(&quot;Enabled&quot;), 1);<br>&gt;<br></div></div></blockquote></div><br>