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
>
_______________________________________________
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

Reply via email to