<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body 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).<br>
      Miro<br>
      <br>
      <br>
    </font><br>
    <div class="moz-cite-prefix">On 06/17/2014 01:53 AM, Christian Bauer
      wrote:<br>
    </div>
    <blockquote
      cite="mid:4E59A7C9-0DA7-4930-9635-0B92D19489E3@rwth-aachen.de"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      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;
              orphans: auto; text-align: start; text-indent: 0px;
              text-transform: none; white-space: normal; widows: auto;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              word-wrap: break-word; -webkit-nbsp-mode: space;
              -webkit-line-break: after-white-space;">
              <div style="color: rgb(0, 0, 0); letter-spacing: normal;
                orphans: auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                word-wrap: break-word; -webkit-nbsp-mode: space;
                -webkit-line-break: after-white-space;">
                <div style="color: rgb(0, 0, 0); letter-spacing: normal;
                  orphans: auto; text-align: start; text-indent: 0px;
                  text-transform: none; white-space: normal; widows:
                  auto; word-spacing: 0px; -webkit-text-stroke-width:
                  0px; word-wrap: break-word; -webkit-nbsp-mode: space;
                  -webkit-line-break: after-white-space;">
                  <div style="color: rgb(0, 0, 0); letter-spacing:
                    normal; orphans: auto; text-align: start;
                    text-indent: 0px; text-transform: none; white-space:
                    normal; widows: auto; word-spacing: 0px;
                    -webkit-text-stroke-width: 0px; word-wrap:
                    break-word; -webkit-nbsp-mode: space;
                    -webkit-line-break: after-white-space;">
                    <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
                            class="Apple-converted-space"> </span><a
                            moz-do-not-send="true"
                            href="mailto:christian.bauer@rwth-aachen.de?subject="><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
                            moz-do-not-send="true"
href="http://keys.gnupg.net/pks/lookup?op=get&search=0x5AA452D5F31608DA"><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>
  </body>
</html>