I am interested in porting the vtkCameraManipulatorGUIHelper to paraview 3, is there any reference material on how this is done?<br><br><br><div><span class="gmail_quote">On 10/9/07, <b class="gmail_sendername">Utkarsh Ayachit
</b> &lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Look at Server/Filters/vtkPVTrackballMoveActor.* (it&#39;s present even in<br>the ParaView 3 repository).<br><br>The code relies on vtkCameraManipulatorGUIHelper to locate the &quot;active<br>source&quot; and then move it to some position. In PV3 we haven&#39;t implemented
<br>this helper (in Paraview 2.6 there&#39;s vtkPVCameraManipulatorGUIHelper).<br>We&#39;ll have to create one which uses the GUI knowledge about which source<br>is currently active etc etc to provide the implementation for the
<br>interface.<br><br>As I look at the interface of vtkCameraManipulatorGUIHelper, I think it<br>can be improved to be able to pick the active source based on the<br>location of mouse down. Then the GUI (read Qt) specific knowledge about
<br>which is the current source will no longer be needed. However, we&#39;ll<br>still need to provide an implementation for the<br>vtkCameraManipulatorGUIHelper at the server manager level since this<br>class is not aware of proxies and does not know how to change the
<br>properties of a proxy.<br><br>Utkarsh<br><br><br><br>Robert Maynard wrote:<br>&gt; Could you please explain this a bit more? Or point me in the right<br>&gt; direction inside the 2.6 code?<br>&gt;<br>&gt; On 10/9/07, *Utkarsh Ayachit* &lt; 
<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a><br>&gt; &lt;mailto:<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; It just as easily be implemented as a CameraManipulator where as the
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; user interacts the &quot;Transform&quot; properties on the display tab are<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; updated. I believe this used to be supported in ParaView 2.6.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Utkarsh<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; David E DeMarle wrote:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; I don&#39;t know of any plans to put this in, but it would certainly<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; be a<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; nice feature to add.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; Two avenues to explore for implementing this:
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp; One, use the transform filter and add a widget to modify the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; transform with the mouse. (I assume there isn&#39;t one in now but I<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; could<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; be wrong).<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp; Two, look at how Qt/Core/pqRubberBandHelper.cxx swaps out the
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; normal<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; camera manipulation interactor style for the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; vtkInteractorStyleRubberBandPick. Something similar could be done to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; swap in a vtkInteractorStyle{Joystick|Trackball}Actor.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; hth<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; Dave DeMarle<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; On 10/9/07, Robert Maynard &lt;<a href="mailto:RobertJMaynard@gmail.com">RobertJMaynard@gmail.com</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:
<a href="mailto:RobertJMaynard@gmail.com">RobertJMaynard@gmail.com</a>&gt; &gt; wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; I have been reading about an object mode in vtk, that allows the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; user to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; actually move object with the mouse. Is there any plans in the
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; paraview<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; development to change the transform filter, to use a more intuitive<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; interface? If this is not planned, what would be required to get<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; something<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; like this working in paraview by my self?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; _______________________________________________<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; ParaView mailing list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; <a href="mailto:ParaView@paraview.org">
ParaView@paraview.org</a> &lt;mailto:<a href="mailto:ParaView@paraview.org">ParaView@paraview.org</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview
</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; _______________________________________________<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; ParaView mailing list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; <a href="mailto:ParaView@paraview.org">ParaView@paraview.org
</a> &lt;mailto:<a href="mailto:ParaView@paraview.org">ParaView@paraview.org</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;
<br>&gt;<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; ParaView mailing list<br>&gt; <a href="mailto:ParaView@paraview.org">
ParaView@paraview.org</a><br>&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br></blockquote></div><br>