<div dir="ltr">Slight correction to what Miro said, QUERY() seems to be a paraview specific extension.<div><br></div><div>You can see the implementation of it in ParaViewCore/ClientServerCore/Core/vtkPVExtractSelection.cxx <br>

</div><div><div><br></div><div><br><div><br></div></div></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>

Phone: 518-881-4909</div>
<br><br><div class="gmail_quote">On Tue, Jun 17, 2014 at 3:15 PM, Miro Drahos <span dir="ltr"><<a href="mailto:mdrahos@robodoc.com" target="_blank">mdrahos@robodoc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    It seems <font face="Source Code Pro">vtkSelectionNode::QUERY is
      not implemented. If you look at the source code, there is no case
      for it, so it defaults to error message and returns. Use an
      alternative selection (e.g. by indices).<span class="HOEnZb"><font color="#888888"><br>
      Miro<br>
      <br>
      <br>
    </font></span></font><div><div class="h5"><br>
    <div>On 06/17/2014 01:53 AM, Christian Bauer
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      Hi all,
      <div><br>
      </div>
      <div>I currently try to use the VTK C++ library, more precisely I
        try to extract a selection by using a query string. </div>
      <div>Sadly I receive this error message from within vtk:</div>
      <div><br>
      </div>
      <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
        <div>
          <div><font face="Source Code Pro">ERROR: In
              ~/git/VTK/Filters/Extraction/vtkExtractSelection.cxx, line
              365</font></div>
        </div>
        <div>
          <div><font face="Source Code Pro">vtkExtractSelection
              (0x7f8dd061ed30): Unrecognized CONTENT_TYPE: 9</font></div>
        </div>
      </blockquote>
      <div>
        <div><br>
        </div>
        <div>The following part of the code produces the error:</div>
        <div><br>
        </div>
      </div>
      <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
        <div>
          <div>
            <div><font face="Source Code Pro">selection_node->SetFieldType(vtkSelectionNode::CELL);
                // select cells</font></div>
          </div>
        </div>
        <div>
          <div>
            <div><font face="Source Code Pro">selection_node->SetContentType(vtkSelectionNode::QUERY);
                // use query string for selection</font></div>
          </div>
        </div>
        <div>
          <div>
            <div><font face="Source Code Pro">selection_node->SetQueryString("scalars[:,0]
                == 1");</font></div>
          </div>
        </div>
        <div>
          <div>
            <div><font face="Source Code Pro">selection->AddNode(selection_node);</font></div>
          </div>
        </div>
        <div>
          <div>
            <div><font face="Source Code Pro">extract_selection->SetInputData(0,bounding_poly);
                // a vtkPolyData object containing a triangulation</font></div>
          </div>
        </div>
        <div>
          <div>
            <div><font face="Source Code Pro">extract_selection->SetInputData(1,selection);</font></div>
          </div>
        </div>
        <div>
          <div>
            <div><font face="Source Code Pro">extract_selection->Update();</font></div>
          </div>
        </div>
      </blockquote>
      <div>
        <div><br>
        </div>
        <div>So my question is: How can I implement the selection by a
          query string?</div>
        <div><br>
        </div>
        <div>Best</div>
        <div>Christian Bauer<br>
          <div>
            <div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
              <div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
                <div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
                  <div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
                    <div>
                      <div style="margin:0px;font-size:10px;color:rgb(127,127,127)"><span style="letter-spacing:0px">--</span></div>
                      <div style="margin:0px;font-size:10px;color:rgb(127,127,127)"><span style="letter-spacing:0px">Christian Bauer</span></div>
                      <div style="margin:0px;font-size:10px;color:rgb(127,127,127)"><span style="letter-spacing:0px">Student</span></div>
                      <div style="margin:0px;font-size:10px;color:rgb(127,127,127)"><span style="letter-spacing:0px">Computational
                          Engineering Science, B. Sc.</span></div>
                      <div style="margin:0px;font-size:10px;color:rgb(127,127,127)"><span style="letter-spacing:0px">RWTH Aachen
                          University</span></div>
                      <div style="margin:0px;font-size:10px;color:rgb(127,127,127)"><span style="letter-spacing:0px">E-Mail:<span> </span><a href="mailto:christian.bauer@rwth-aachen.de?subject=" target="_blank"><span style="letter-spacing:0px">christian.bauer@rwth-aachen.de</span></a></span></div>


                      <div style="margin:0px;font-size:10px;color:rgb(127,127,127)"><span style="letter-spacing:0px">OpenPGP: <a href="http://keys.gnupg.net/pks/lookup?op=get&search=0x5AA452D5F31608DA" target="_blank"><span style="letter-spacing:0px">http://keys.gnupg.net/pks/lookup?op=get&search=0x5AA452D5F31608DA</span></a></span></div>


                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>