[Paraview] Adding an interactive slice widget

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue May 25 15:09:39 EDT 2010


Make sure you are changing the enabled state after the widget has been
added to the view i.e. after the following code:

 pqSMAdaptor::addProxyProperty(
        m_renderView->getProxy()->GetProperty("Representations"), sliceWidget)
m_renderView->getProxy()->UpdateVTKObjects();

Utkarsh

On Tue, May 25, 2010 at 2:57 PM, Jenya Burstein <taijinian at gmail.com> wrote:
> Utkarsh,
>
> Thank you for the response. I think that moved me one step closer to the
> solution.
>
> However, now I get the following runtime error in the Output window:
> ERROR: In ..\..\..\VTK\Widgets\vtkAbstractWidget.cxx, line 119
>
> vtkImplicitPlaneWidget2 (000000000D01C8C0): The interactor must be set prior
> to enabling the widget
>
>
>
> I don't see an "Interactor" property defined in the XML file for the
> ImplicitPlaneWidgetRepresentation and I get a zero pointer if I try to get
> it with:
>   vtkSMProperty* p = sliceWidget->GetProperty("Interactor");
>
> Jenya
> On Tue, May 25, 2010 at 11:39 AM, Utkarsh Ayachit
> <utkarsh.ayachit at kitware.com> wrote:
>>
>> pqSMAdaptor::setElementProperty(sliceWidget->GetProperty("Enabled"), 1);
>


More information about the ParaView mailing list