Thanks for your quick answer Utkarsh. However, we are trying to load a VRML file without having to use the menus. We are using vtkVRMLSource, but we don't know to visualize it. We are trying to use the pqObjectBuilder methods, createSource and createDataRepresentation, but it does not work with VRML files. Is there a way for loading and displaying the file without using the menus? Thanks a lot for your help.<br>
<br><div class="gmail_quote">2009/7/13 Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You can simply open a vrml file as if you are loading a data file<br>
using "File |Open". ParaView will create the vtkVRMLSource for you.<br>
<br>
vtkVRMLSource has methods like SetFileName that you use to set the<br>
filename programmatically and they are indeed public.<br>
<br>
Utkarsh<br>
<br>
2009/7/13 Andrés Felipe Padilla <<a href="mailto:anfeken@gmail.com">anfeken@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi,<br>
> I've been trying to load a VRML on ParaView unsucessfully from code. From<br>
> the API and the code i see that the vtkVRMLSource could allow one to load a<br>
> VRML but i have some issues with it. I create a vtkVRMLSource with the New()<br>
> method but from there i cant see where to go. I cannot specify this object<br>
> the file i want to load as all its members are protected. So my question is<br>
> how do i tell the vtkVRMLSource to load my VRML?<br>
> Thanks<br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</blockquote></div><br><div style="display: none;" id="divCleekiAttrib"></div>