Using the following code:<br><br>pqPipelineSource* myVRML;<br>myVRML=builder->createReader(QString("sources"), QString("vrmlreader"),QStringList(temp), myServer);<br>myVRML->getProxy()->UpdateVTKObjects();<br>
myVRML->setModifiedState(pqProxy::UNMODIFIED);<br><br>The "Accept" button acts as if it is pressed! (not green anymore :) )<br><br>In the render view, the object is not shown, BUT if i go to the object inspector in the GUI and press in the Display tab the Visible checkbox, the object is shown. Does anyone know how I can do that via c++ ?<br>
<br><div class="gmail_quote">On Fri, Feb 6, 2009 at 3:53 PM, Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">No (maybe someone else knows). You may try to just replicate the method. The accept operation is not tied to any particular pipeline object; it simultaneously updates all of them.<br>
<br>
-Ken<div class="Ih2E3d"><br>
<br>
<br>
On 2/6/09 1:16 PM, "Juan Fernando Duque Lombana" <<a href="http://jduquelo@eafit.edu.co" target="_blank">jduquelo@eafit.edu.co</a>> wrote:<br>
<br>
</div></span></font><blockquote><div class="Ih2E3d"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
Thanks for your quick answer Ken, do you know a way to get the particular instance of that object given a pipeline?<br>
<br>
<br>
On Thu, Feb 5, 2009 at 5:38 PM, Moreland, Kenneth <<a href="http://kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>> wrote:<br>
</span></font></div><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><div class="Ih2E3d">I don't know the answer to this question, but you may want to look at the code for the pqObjectInspectorWidget::accept() method. This is the method that gets called when you hit the Apply button.<br>
<br>
-Ken<br>
<br>
<br>
<br></div><div class="Ih2E3d">
On 2/5/09 2:49 PM, "Juan Fernando Duque Lombana" <<a href="http://jduquelo@eafit.edu.co" target="_blank">jduquelo@eafit.edu.co</a> <<a href="http://jduquelo@eafit.edu.co" target="_blank">http://jduquelo@eafit.edu.co</a>> > wrote:<br>
<br>
</div></span></font><div class="Ih2E3d"><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Good day,<br>
<br>
I'm a newbie in this big paraview world and I would like to know if there's a way to do the following:<br>
<br>
I'm trying to load a VRML 2.0 file using the following command:<br>
<br>
<br>
myVRML=builder->createReader(QString("sources"), QString("vrmlreader"),QStringList(temp), s);<br>
<br>
Where temp contains the filename and s the pqServer.<br>
The VRML is now shown in the pipeline browser BUT it is needed for me to press by hand the "Accept" button in the correspondant Object Inspector.<br>
<br>
The question is: is there any way to call that button by code? I haven't found a way and its killing me.<br>
<br>
Hope anyone can help me! It will be really appreciated,<br>
<br>
... Juan Fernando Duque Lombana.<br>
<br>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font></div><font size="2"><font face="Consolas, Courier New, Courier"><span style="font-size: 10pt;"><div class="Ih2E3d"><br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br></div>
*** *** *** email: <a href="http://kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a> <<a href="http://kmorel@sandia.gov" target="_blank">http://kmorel@sandia.gov</a>> <br>
** *** ** phone: (505) 844-8919<br>
*** web: <a href="http://www.cs.unm.edu/%7Ekmorel" target="_blank">http://www.cs.unm.edu/~kmorel</a> <<a href="http://www.cs.unm.edu/%7Ekmorel" target="_blank">http://www.cs.unm.edu/%7Ekmorel</a>> <br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
<br>
</span></font></blockquote><div class="Ih2E3d"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font><font size="1"><font face="Monaco, Courier New"><span style="font-size: 7.5pt;"><br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br>
*** *** *** email: <a href="http://kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a><br>
** *** ** phone: (505) 844-8919<br>
*** web: <a href="http://www.cs.unm.edu/%7Ekmorel" target="_blank">http://www.cs.unm.edu/~kmorel</a><br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>... Juan Fernando Duque Lombana.<br>