<div>Thanks a lotUtkarsh, we can now load our model. We are trying now to create a transform filter for moving the model around. We are creating it the same way we create a source (with pqObjectBuilder) but we have not found a way to specify the transformation attributes (rotation, translation, scaling) without using the GUI. We have read the filters.xml and there are such propeties specifying those attributes. However, it is not clear how we can manipulate those attributes via pqObjectBuilder or via pqPipelineSource.</div>
<div></div><div>Thanks.<br></div> <br><div class="gmail_quote">2009/7/15 Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
For some reason the proxy is named &quot;vrmlreader&quot; (all lowercase). Try<br>
using that name when calling createSource().<br>
<br>
If you run into such issues, you can always look at<br>
ParaView3Source/Servers/ServerManager/Resources/readers.xml to<br>
determine the name of the proxy for the reader you want to create.<br>
<div><div class="h5"><br>
Utkarsh<br>
<br>
2009/7/15 Andrés Felipe Padilla &lt;<a href="mailto:anfeken@gmail.com">anfeken@gmail.com</a>&gt;:<br>
&gt; We tried the following using the vtkVRMLSource<br>
&gt;<br>
&gt; std::string file = &quot;/models/flag.wrl&quot;;<br>
&gt; leVRML = vtkVRMLSource::New();<br>
&gt; leVRML-&gt;SetFileName(file.c_str());<br>
&gt;<br>
&gt; However, we do not know how to visualize the VRMLObject in the Active View.<br>
&gt;<br>
&gt; We tried the following using pqObjectBuilder:<br>
&gt;<br>
&gt;  pqPendingDisplayManager *pdm =<br>
&gt; qobject_cast&lt;pqPendingDisplayManager*&gt;(pqApplicationCore::instance()-&gt;manager(&quot;PENDING_DI<br>
&gt; SPLAY_MANAGER&quot;));<br>
&gt; pdm-&gt;setAddSourceIgnored(true);<br>
&gt; leSource = builder-&gt;createSource(&quot;sources&quot;, &quot;VRMLSource&quot;, s);<br>
&gt; leSource-&gt;getProxy()-&gt;UpdateVTKObjects();<br>
&gt; pdm-&gt;setAddSourceIgnored(false);<br>
&gt; leSource-&gt;setModifiedState(pqProxy::UNMODIFIED);<br>
&gt; pqOutputPort* oPort = leSource-&gt;getOutputPort(0);<br>
&gt; builder-&gt;createDataRepresentation(oPort,<br>
&gt; pqActiveView::instance().current());<br>
&gt; (pqActiveView::instance().current())-&gt;render();<br>
&gt;<br>
&gt; but VRMLSource does not exist, so this approach fails. We were trying to<br>
&gt; look if creating a proxy with the vtkVRMLSource would work but we haven&#39;t<br>
&gt; figure that out yet. Can this source be added via an XML or something<br>
&gt; (*throwing some ideas) so it can be used with the objectBuilder?<br>
&gt;<br>
&gt; Thanks.<br>
&gt;<br>
&gt; Andrés<br>
&gt;<br>
&gt; 2009/7/15 Utkarsh Ayachit &lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; What you described should work. Can you post relevant sections of the<br>
&gt;&gt; code?<br>
&gt;&gt;<br>
&gt;&gt; Utkarsh<br>
&gt;&gt;<br>
&gt;&gt; 2009/7/15 Andrés Felipe Padilla &lt;<a href="mailto:anfeken@gmail.com">anfeken@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; Thanks for your quick answer Utkarsh. However, we are trying to load a<br>
&gt;&gt; &gt; VRML<br>
&gt;&gt; &gt; file without having to use the menus. We are using vtkVRMLSource, but we<br>
&gt;&gt; &gt; don&#39;t know to visualize it. We are trying to use the pqObjectBuilder<br>
&gt;&gt; &gt; methods, createSource and createDataRepresentation, but it does not work<br>
&gt;&gt; &gt; with VRML files. Is there a way for loading and displaying the file<br>
&gt;&gt; &gt; without<br>
&gt;&gt; &gt; using the menus? Thanks a lot for your help.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 2009/7/13 Utkarsh Ayachit &lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; You can simply open a vrml file as if you are loading a data file<br>
&gt;&gt; &gt;&gt; using &quot;File |Open&quot;. ParaView will create the vtkVRMLSource for you.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; vtkVRMLSource has methods like SetFileName that you use to set the<br>
&gt;&gt; &gt;&gt; filename programmatically and they are indeed public.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Utkarsh<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 2009/7/13 Andrés Felipe Padilla &lt;<a href="mailto:anfeken@gmail.com">anfeken@gmail.com</a>&gt;:<br>
&gt;&gt; &gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;&gt; &gt; I&#39;ve been trying to load a VRML on ParaView unsucessfully from code.<br>
&gt;&gt; &gt;&gt; &gt; From<br>
&gt;&gt; &gt;&gt; &gt; the API and the code i see that the vtkVRMLSource could allow one to<br>
&gt;&gt; &gt;&gt; &gt; load a<br>
&gt;&gt; &gt;&gt; &gt; VRML but i have some issues with it. I create a vtkVRMLSource with<br>
&gt;&gt; &gt;&gt; &gt; the<br>
&gt;&gt; &gt;&gt; &gt; New()<br>
&gt;&gt; &gt;&gt; &gt; method but from there i cant see where to go. I cannot specify this<br>
&gt;&gt; &gt;&gt; &gt; object<br>
&gt;&gt; &gt;&gt; &gt; the file i want to load as all its members are protected. So my<br>
&gt;&gt; &gt;&gt; &gt; question<br>
&gt;&gt; &gt;&gt; &gt; is<br>
&gt;&gt; &gt;&gt; &gt; how do i tell the vtkVRMLSource to load my VRML?<br>
&gt;&gt; &gt;&gt; &gt; Thanks<br>
&gt;&gt; &gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; &gt;&gt; &gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt;&gt; &gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>