<div>Hello,</div>
<div> </div>
<div>I am trying to figure out how to add a slice widget that has the interactivity behavior just liek in the Paraview application. </div>
<div>When I add the following code, I get the visual representation of the widget. However, performing mouse events on the bounding box or normal of the widget doesn't make the widget change its position, orientation. Instead the whole view's camera position is changing.</div>
<div> </div>
<div><font face="courier new,monospace"> vtkSMProxy* sliceWidget = m_paraviewObjectBuilder->createProxy("representations",<br> "ImplicitPlaneWidgetRepresentation",<br>
m_paraviewActiveObjects->activeServer(),<br> "slice widget");<br> doubleProp = vtkSMDoubleVectorProperty::SafeDownCast(<br>
sliceWidget->GetProperty("PlaceWidget"));<br> double sourceBounds[6];<br> sourceRepresentation.getDataBounds(sourceBounds);<br> doubleProp->SetElements(sourceBounds);<br>
pqSMAdaptor::setElementProperty(sliceWidget->GetProperty("Visibility"), true);<br> sliceWidget->UpdateVTKObjects();</font></div>
<div><font face="courier new,monospace"> // Add the widget to the view.<br> pqSMAdaptor::addProxyProperty(<br> m_renderView->getProxy()->GetProperty("Representations"), sliceWidget);</font></div>
<div><font face="Courier New"></font> </div>
<div><font face="arial,helvetica,sans-serif">Any advise is much appreciated,</font></div>
<div><font face="courier new,monospace"><font face="arial,helvetica,sans-serif">Jenya<br></font></font></div>