Thanks for pointing me in the right direction. I think I actually want the setActiveView slot from the pqActiveObjects but need a plugin function to run whenever head, wand, joystick and/or buttons are updated and to run in its own thread using a select to wake only when new data is available. Of course, if the function were called once per frame then things would still work. Is there a signal for post-frame (completion of swap) or pre-frame (prior to render start) I could connect to a slot in my plugin?
If not, can I just use pthreads or would qt or vtk threads be preferred or work better? Thanks, Pat On Sun, 2010-09-19 at 11:16 -0400, Utkarsh Ayachit wrote: > You can easily access the camera using a plugin. Look at auto-start > plugins (http://www.paraview.org/Wiki/Plugin_HowTo#Autostart_Plugins). > In the startup code for the plugin,you can add a slot to observe the > viewChanged() signal from pqActiveObjects singleton. Your slot will > then be called every time the active view changes. To get the camera > from the view, use the following code: > > > pqView* view = pqActiveObjects::instance()->activeView(); > if (view) > { > vtkSMRenderViewProxy* proxy = > vtkSMRenderViewProxy::SafeDownCast(view->getProxy()); > if (proxy) > { > vtkCamera* camera = proxy->GetActiveCamera(); > } > } > > Utkarsh > > On Sat, Sep 18, 2010 at 3:38 PM, Patrick Shinpaugh <[email protected]> wrote: > > Hi, > > We're looking to create custom navigation and interaction for ParaView > > in a CAVE using IS900 tracked head and wand devices. What is the best > > way to update the camera? How would the camera be accessed? Can it be > > done through some sort of plugin or would it be necessary to customize > > VTK or ParaView source? > > > > Thanks, > > Pat > > > > Patrick Shinpaugh > > Virginia Tech > > UVAG System Administrator/Programmer > > 540-231-2054 > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the ParaView Wiki at: > > http://paraview.org/Wiki/ParaView > > > > Follow this link to subscribe/unsubscribe: > > http://www.paraview.org/mailman/listinfo/paraview > > Patrick Shinpaugh Virginia Tech UVAG System Administrator/Programmer 540-231-2054 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
