<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <br>
    Looks OK. did you return a value ? if not you should return 1. You
    don't need to override RequestDataObject.<br>
    <br>
    On 04/09/2012 12:57 PM, Joshua Murphy wrote:
    <blockquote
      cite="mid:CBA89AA0.1179%25joshua.murphy@lasp.colorado.edu"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="qrichtext" content="1">
      <style type="text/css">
p, li { white-space: pre-wrap; }
</style>
      <div>Burlen,</div>
      <div><br>
      </div>
      <div>Hopefully this will be the last question for a while… :) </div>
      <div><br>
      </div>
      <div>I have FillOutputInformation as follows:</div>
      <div><br>
      </div>
      <div>
        <pre style="margin: 0px; text-indent: 0px;"><!--StartFragment--><span style="color: rgb(255, 255, 85);">int</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 85);">vtkENLILReader</span><span style="color: rgb(170, 170, 170);">::</span><span style="font-style: italic;">FillOutputPortInformation</span><span style="color: rgb(170, 170, 170);">(</span><span style="color: rgb(255, 255, 85);">int</span><span style="color: rgb(192, 192, 192);"> </span>port<span style="color: rgb(170, 170, 170);">,</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 85);">vtkInformation</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">*</span>info<span style="color: rgb(170, 170, 170);">)</span></pre>
        <pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(170, 170, 170);">{</span></pre>
        <pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(255, 255, 85);">switch</span><span style="color: rgb(170, 170, 170);">(</span>port<span style="color: rgb(170, 170, 170);">)</span></pre>
        <pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">    </span><span style="color: rgb(170, 170, 170);">{</span></pre>
        <pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">    </span><span style="color: rgb(255, 255, 85);">case</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(255, 85, 255);">0</span><span style="color: rgb(170, 170, 170);">:</span></pre>
        <pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">      </span>info<span style="color: rgb(170, 170, 170);">-&gt;</span>Set<span style="color: rgb(170, 170, 170);">(</span><span style="color: rgb(85, 255, 85);">vtkDataObject</span><span style="color: rgb(170, 170, 170);">::</span>DATA_TYPE_NAME<span style="color: rgb(170, 170, 170);">(),</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(255, 85, 255);">"vtkStructuredGrid"</span><span style="color: rgb(170, 170, 170);">);</span></pre>
        <pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">      </span><span style="color: rgb(255, 255, 85);">break</span><span style="color: rgb(170, 170, 170);">;</span></pre>
        <pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">    </span><span style="color: rgb(255, 255, 85);">case</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(255, 85, 255);">1</span><span style="color: rgb(170, 170, 170);">:</span></pre>
        <pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">      </span>info<span style="color: rgb(170, 170, 170);">-&gt;</span>Set<span style="color: rgb(170, 170, 170);">(</span><span style="color: rgb(85, 255, 85);">vtkDataObject</span><span style="color: rgb(170, 170, 170);">::</span>DATA_TYPE_NAME<span style="color: rgb(170, 170, 170);">(),</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(255, 85, 255);">"vtkTable"</span><span style="color: rgb(170, 170, 170);">);</span></pre>
        <pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">      </span><span style="color: rgb(255, 255, 85);">break</span><span style="color: rgb(170, 170, 170);">;</span></pre>
        <pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">    </span><span style="color: rgb(170, 170, 170);">}</span></pre>
        <pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(170, 170, 170);">}</span></pre>
        <pre style="margin: 0px; text-indent: 0px;"><!--EndFragment--></pre>
      </div>
      <div><br>
      </div>
      <div>But when I load the plugin and open a file, I get the
        following Error:</div>
      <div><br>
      </div>
      <div>
        <div>ERROR: In
          /Users/jjm390/LASP/release/mpi_config/ParaView-3.12.0/VTK/Filtering/vtkDemandDrivenPipeline.cxx,
          line 689</div>
        <div>vtkPVCompositeDataPipeline (0x1198155f0): Algorithm
          vtkENLILReader(0x119820d80) did not create output for port 0
          when asked by REQUEST_DATA_OBJECT and does not specify any
          DATA_TYPE_NAME.</div>
      </div>
      <div><br>
      </div>
      <div>Any thoughts?  </div>
      <div><br>
      </div>
      <div>Thanks,</div>
      <div>Josh</div>
      <div><br>
      </div>
      <span id="OLK_SRC_BODY_SECTION">
        <div style="font-family: Calibri; font-size: 11pt; text-align:
          left; color: black; border-width: 1pt medium medium;
          border-style: solid none none; border-color: rgb(181, 196,
          223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in
          0in;"><span style="font-weight: bold;">From: </span> Burlen
          Loring &lt;<a moz-do-not-send="true"
            href="mailto:bloring@lbl.gov">bloring@lbl.gov</a>&gt;<br>
          <span style="font-weight: bold;">Date: </span> Mon, 9 Apr
          2012 13:45:43 -0600<br>
          <span style="font-weight: bold;">To: </span> Joshua Murphy
          &lt;<a moz-do-not-send="true"
            href="mailto:joshua.murphy@lasp.colorado.edu">joshua.murphy@lasp.colorado.edu</a>&gt;<br>
          <span style="font-weight: bold;">Cc: </span> burlen &lt;<a
            moz-do-not-send="true" href="mailto:burlen.loring@gmail.com">burlen.loring@gmail.com</a>&gt;,
          "<a moz-do-not-send="true" href="mailto:paraview@paraview.org">paraview@paraview.org</a>"
          &lt;<a moz-do-not-send="true"
            href="mailto:paraview@paraview.org">paraview@paraview.org</a>&gt;<br>
          <span style="font-weight: bold;">Subject: </span> Re:
          [Paraview] Question on Information Objects<br>
        </div>
        <div><br>
        </div>
        <div>
          <div bgcolor="#ffffff" text="#000000"> Joshua, <br>
            <br>
            There was mistake in my previous post, you should override
            FillOutputInformation and set
            info-&gt;Set(vtkDataObject::DATA_TYPE_NAME(), "vtkTable");<br>
            <br>
            Sorry about that.<br>
            Burlen<br>
            <br>
            <br>
            <br>
            On 04/09/2012 12:24 PM, Joshua Murphy wrote:
            <blockquote
              cite="mid:CBA89256.1168%25joshua.murphy@lasp.colorado.edu"
              type="cite">
              <meta name="qrichtext" content="1">
              <style type="text/css">
p, li { white-space: pre-wrap; }
</style>
              <div style="color: rgb(0, 0, 0);">Hi Burlen,</div>
              <div style="color: rgb(0, 0, 0);"><br>
              </div>
              <div style="color: rgb(0, 0, 0);">I think I am getting
                there, but I am having the following problem now..</div>
              <div style="color: rgb(0, 0, 0);"><br>
              </div>
              <div style="color: rgb(0, 0, 0);">The following snippet
                from my RequestData is causing a segfault… </div>
              <div style="color: rgb(0, 0, 0);"><br>
              </div>
              <div style="color: rgb(0, 0, 0);">
                <pre style="margin: 0px; text-indent: 0px;"><!--StartFragment--><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 85);">vtkInformation</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">*</span>outInfo2<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">=</span><span style="color: rgb(192, 192, 192);"> </span>outputVector<span style="color: rgb(170, 170, 170);">-&gt;</span>GetInformationObject<span style="color: rgb(170, 170, 170);">(</span><span style="color: rgb(255, 85, 255);">1</span><span style="color: rgb(170, 170, 170);">);</span></pre>
                <pre style="margin: 0px; text-indent: 0px;"><!--EndFragment--></pre>
              </div>
              <div>
                <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><!--StartFragment--><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 85);">vtkTable</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">*</span>MetaDataOutput<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">=</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 85);">vtkTable</span><span style="color: rgb(170, 170, 170);">::</span>SafeDownCast<span style="color: rgb(170, 170, 170);">(</span>outInfo2<span style="color: rgb(170, 170, 170);">-&gt;</span>Get<span style="color: rgb(170, 170, 170);">(</span><span style="color: rgb(85, 255, 85);">vtkDataObject</span><span style="color: rgb(170, 170, 170);">::</span>DATA_OBJECT<span style="color: rgb(170, 170, 170);">()));</span></pre>
                <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><!--EndFragment--></pre>
              </div>
              <div style="color: rgb(0, 0, 0);"><br>
              </div>
              <div style="color: rgb(0, 0, 0);">Am I grabbing the
                information object incorrectly, or do I need to override
                another method? Do I need to do something with
                RequestDataObject()?</div>
              <div style="color: rgb(0, 0, 0);"><br>
              </div>
              <div style="color: rgb(0, 0, 0);">If you can help, that
                would be great!</div>
              <div style="color: rgb(0, 0, 0);"><br>
              </div>
              <div style="color: rgb(0, 0, 0);">-Josh</div>
              <div style="color: rgb(0, 0, 0);"><br>
              </div>
              <div><br>
              </div>
              <span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0,
                0);">
                <div style="font-family: Calibri; font-size: 11pt;
                  text-align: left; color: black; border-width: 1pt
                  medium medium; border-style: solid none none;
                  border-color: rgb(181, 196, 223) -moz-use-text-color
                  -moz-use-text-color; padding: 3pt 0in 0in;"><span
                    style="font-weight: bold;">From: </span> Burlen
                  Loring &lt;<a moz-do-not-send="true"
                    href="mailto:bloring@lbl.gov">bloring@lbl.gov</a>&gt;<br>
                  <span style="font-weight: bold;">Date: </span> Mon, 9
                  Apr 2012 12:34:02 -0600<br>
                  <span style="font-weight: bold;">To: </span> Joshua
                  Murphy &lt;<a moz-do-not-send="true"
                    href="mailto:joshua.murphy@lasp.colorado.edu">joshua.murphy@lasp.colorado.edu</a>&gt;<br>
                  <span style="font-weight: bold;">Cc: </span> burlen
                  &lt;<a moz-do-not-send="true"
                    href="mailto:burlen.loring@gmail.com">burlen.loring@gmail.com</a>&gt;,

                  "<a moz-do-not-send="true"
                    href="mailto:paraview@paraview.org">paraview@paraview.org</a>"
                  &lt;<a moz-do-not-send="true"
                    href="mailto:paraview@paraview.org">paraview@paraview.org</a>&gt;<br>
                  <span style="font-weight: bold;">Subject: </span> Re:
                  [Paraview] Question on Information Objects<br>
                </div>
                <div><br>
                </div>
                <div>
                  <title></title>
                  <div bgcolor="#ffffff" text="#000000"> Hi Joshua,<br>
                    <br>
                    In your constructor you'd need to call<br>
                    <blockquote>this-&gt;SetNumberOfInputPorts(2);<br>
                    </blockquote>
                    You'd need to override <br>
                    <blockquote>FillInputPortInformation(int port,
                      vtkInformation *info)<br>
                    </blockquote>
                    implement a switch on port number and do something
                    like:<br>
                    <br>
                     288   switch (port)<br>
                     289     {<br>
                     290     // Vector feild data<br>
                     291     case 0:<br>
                     292      
                    info-&gt;Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(),
                    "vtkUnstructuredGrid");<br>
                     293       break;<br>
                     294     // Seed points<br>
                     295     case 1:<br>
                     296      
                    info-&gt;Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(),
                    "vtkTable");<br>
                     297       break;<br>
                     398     }<br>
                    <br>
                    in request data you have to grab the table from the
                    second information object.<br>
                    <br>
                    Hope this helps<br>
                    Burlen<br>
                    <br>
                    <br>
                    <br>
                    On 04/09/2012 11:01 AM, Joshua Murphy wrote:
                    <blockquote
                      cite="mid:CBA87DB3.1133%25joshua.murphy@lasp.colorado.edu"
                      type="cite">
                      <meta name="qrichtext" content="1">
                      <style type="text/css">
p, li { white-space: pre-wrap; }
</style>
                      <div style="color: rgb(0, 0, 0);">Hello,</div>
                      <div style="color: rgb(0, 0, 0);"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0);">So I am trying
                        to figure out how to add an output port to my
                        Reader, but I am having difficulty.</div>
                      <div style="color: rgb(0, 0, 0);"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0);">I am trying to
                        create the new output as outlined in the email
                        below, but when I get to the point of adding the
                        column to the table, ParaView segfaults.</div>
                      <div style="color: rgb(0, 0, 0);"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0);">Having looked
                        through other emails on the list, it looks like
                        the output ports need to be configured somehow,
                        but I am not sure how to do that.</div>
                      <div style="color: rgb(0, 0, 0);"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0);">My reader
                        creates a vtkStructuredGrid for the data, and I
                        need to add the vtkTable for the meta-data… how
                        do I configure the reader for these two outputs?</div>
                      <div style="color: rgb(0, 0, 0);"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0);"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0);">Currently, my
                        getInformation (beginning) looks like this:</div>
                      <div style="color: rgb(0, 0, 0);">------------</div>
                      <div style="color: rgb(0, 0, 0);"><br>
                      </div>
                      <div>
                        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 85);">vtkInformation</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">*</span>outInfo<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">=</span><span style="color: rgb(192, 192, 192);"> </span>outputVector<span style="color: rgb(170, 170, 170);">-&gt;</span>GetInformationObject<span style="color: rgb(170, 170, 170);">(</span><span style="color: rgb(255, 85, 255);">0</span><span style="color: rgb(170, 170, 170);">);</span></pre>
                        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 85);">vtkStructuredGrid</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">*</span>output<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">=</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 85);">vtkStructuredGrid</span><span style="color: rgb(170, 170, 170);">::</span>SafeDownCast<span style="color: rgb(170, 170, 170);">(</span></pre>
                        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">        </span>outInfo<span style="color: rgb(170, 170, 170);">-&gt;</span>Get<span style="color: rgb(170, 170, 170);">(</span><span style="color: rgb(85, 255, 85);">vtkDataObject</span><span style="color: rgb(170, 170, 170);">::</span>DATA_OBJECT<span style="color: rgb(170, 170, 170);">()));</span></pre>
                        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//TODO:</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">Add</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">Meta</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">Data</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">here</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">first</span></pre>
                        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">      </span><span style="color: rgb(85, 255, 255);">Use</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">VTK</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">Table</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">output</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">Port</span></pre>
                        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">Following</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">is</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">from</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">discussion</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">on</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">ParaView</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">Mailing</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);"
>List        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//-----------------------------------------------------------</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">315</span><span style="color: rgb(192, 192, 192);">   </span><span style="color: rgb(85, 255, 255);">vtkInformation</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">*outInfo;</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">316</span><span style="color: rgb(192, 192, 192);">   </span><span style="color: rgb(85, 255, 255);">vtkTable</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">*output;</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">317</span><span style="color: rgb(192, 192, 192);">   </span><span style="color: rgb(85, 255, 255);">vtkStringArray</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">*data;</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">318</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">319</span><span style="color: rgb(192, 192, 192);">   </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">output</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">port</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">1</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">-&gt;</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">bw</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">data</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">320</span><span style="color: rgb(192, 192, 192);">   </span><span style="color: rgb(85, 255, 255);">outInfo=outputVector-&gt;GetInformationObject(0);</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">321</span><span style="color: rgb(192, 192, 192);">   </span><span style="color: rgb(85, 255, 255);">output</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">322</span><span style="color: rgb(192, 192, 192);">     </span><span style="color: rgb(85, 255, 255);">=</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">dynamic_cast&lt;vtkTable*&gt;(outInfo-&gt;Get(vtkDataObject::DATA_OBJECT()));</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">323</span><span style="color: rgb(192, 192, 192);">   </span><span style="color: rgb(85, 255, 255);">data=vtkStringArray::New();</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">324</span><span style="color: rgb(192, 192, 192);">   </span><span style="color: rgb(85, 255, 255);">data-&gt;SetName("BW</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">Data");</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">325</span><span style="color: rgb(192, 192, 192);">   </span><span style="color: rgb(85, 255, 255);">data-&gt;SetNumberOfComponents(1);</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">326</span><span style="color: rgb(192, 192, 192);">   </span><span style="color: rgb(85, 255, 255);">data-&gt;InsertNextValue(bwData.c_str());</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">327</span><span style="color: rgb(192, 192, 192);">   </span><span style="color: rgb(85, 255, 255);">output-&gt;AddColumn(data);</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//</span><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">328</span><span style="color: rgb(192, 192, 192);">   </span><span style="color: rgb(85, 255, 255);">data-&gt;Delete();</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//----------------------------------------------------------</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 85);">vtkTable</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">*</span>MetaDataOutput<span style="color: rgb(170, 170, 170);">;</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 85);">vtkStringArray</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">*</span>MetaString<span style="color: rgb(170, 170, 170);">;</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 255);">//output</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">port</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">for</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">table</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">data</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;">MetaDataOutput<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">=</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(255, 255, 85);">dynamic_cast</span><span style="color: rgb(170, 170, 170);">&lt;</span><span style="color: rgb(85, 255, 85);">vtkTable</span><span style="color: rgb(170, 170, 170);">*&gt;(</span>outInfo<span style="color: rgb(170, 170, 170);">-&gt;</span>Get<span style="color: rgb(170, 170, 170);">(</span><span style="color: rgb(85, 255, 85);">vtkDataObject</span><span style="color: rgb(170, 170, 170);">::</span>DATA_OBJECT<span style="color: rgb(170, 170, 170);">()));</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;">MetaString<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">=</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 85);">vtkStringArray</span><span style="color: rgb(170, 170, 170);">::</span>New<span style="color: rgb(170, 170, 170);">();</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;">MetaString<span style="color: rgb(170, 170, 170);">-&gt;</span><span style="font-style: italic;">SetName</span><span style="color: rgb(170, 170, 170);">(</span><span style="color: rgb(255, 85, 255);">"Meta</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(255, 85, 255);">Data"</span><span style="color: rgb(170, 170, 170);">);</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;">MetaString<span style="color: rgb(170, 170, 170);">-&gt;</span>InsertNextValue<span style="color: rgb(170, 170, 170);">(</span><span style="color: rgb(255, 85, 255);">"This</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(255, 85, 255);">is</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(255, 85, 255);">a</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(255, 85, 255);">Test"</span><span style="color: rgb(170, 170, 170);">);</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;">MetaString<span style="color: rgb(170, 170, 170);">-&gt;</span>InsertNextValue<span style="color: rgb(170, 170, 170);">(</span><span style="color: rgb(255, 85, 255);">"This</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(255, 85, 255);">is</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(255, 85, 255);">Another</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(255, 85, 255);">Test"</span><span style="color: rgb(170, 170, 170);">);</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(85, 255, 255);">//VVVVVVVVV</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">This</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">is</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">making</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">me</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">crash!</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">VVVVVVVVVVVV//</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(85, 255, 255);">//-----</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">Need</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">another</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">output</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">port!</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">How?</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">-------//</span></pre>
        <pre style="margin: 0px; text-indent: 0px;">MetaDataOutput-&gt;AddColumn(MetaString);</pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;">MetaString<span style="color: rgb(170, 170, 170);">-&gt;</span><span style="font-style: italic;">Delete</span><span style="color: rgb(170, 170, 170);">();</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(85, 255, 255);">//structured</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">grid</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">below</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 255);">here....</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);">  </span><span style="color: rgb(85, 255, 85);">vtkStructuredGrid</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">*</span>structOutput<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(170, 170, 170);">=</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(85, 255, 85);">vtkStructuredGrid</span><span style="color: rgb(170, 170, 170);">::</span>SafeDownCast<span style="color: rgb(170, 170, 170);">(</span>output<span style="color: rgb(170, 170, 170);">);</span></pre>
        <pre style="color: rgb(0, 0, 0); margin: 0px; text-indent: 0px;"><span style="color: rgb(170, 170, 170);"></span></pre>
      </span></pre>
                      </div>
                      <div style="color: rgb(0, 0, 0);">--------------</div>
                      <div style="color: rgb(0, 0, 0);"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0);">The reader
                        segfaults on
                        MetaDataOutput-&gt;AddColumn(MetaString);</div>
                      <div style="color: rgb(0, 0, 0);"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0);">If someone could
                        point me in the correct direction (or simply
                        tell me how stupid I am being!, and then point
                        in the correct direction!) I would be very
                        grateful!  I am sure I have a basic
                        misunderstanding of what is supposed to be
                        happening here!</div>
                      <div style="color: rgb(0, 0, 0);"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0);">-Josh</div>
                      <div style="color: rgb(0, 0, 0);"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0);"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0);"><br>
                      </div>
                      <span id="OLK_SRC_BODY_SECTION" style="color:
                        rgb(0, 0, 0);">
                        <div style="font-family: Calibri; font-size:
                          11pt; text-align: left; color: black;
                          border-width: 1pt medium medium; border-style:
                          solid none none; border-color: rgb(181, 196,
                          223) -moz-use-text-color -moz-use-text-color;
                          padding: 3pt 0in 0in;"><span
                            style="font-weight: bold;">From: </span>
                          burlen &lt;<a moz-do-not-send="true"
                            href="mailto:burlen.loring@gmail.com">burlen.loring@gmail.com</a>&gt;<br>
                          <span style="font-weight: bold;">Date: </span>
                          Thu, 22 Mar 2012 22:41:37 -0600<br>
                          <span style="font-weight: bold;">To: </span>
                          Joshua Murphy &lt;<a moz-do-not-send="true"
                            href="mailto:joshua.murphy@lasp.colorado.edu">joshua.murphy@lasp.colorado.edu</a>&gt;<br>
                          <span style="font-weight: bold;">Cc: </span>
                          "<a moz-do-not-send="true"
                            href="mailto:paraview@paraview.org">paraview@paraview.org</a>"
                          &lt;<a moz-do-not-send="true"
                            href="mailto:paraview@paraview.org">paraview@paraview.org</a>&gt;<br>
                          <span style="font-weight: bold;">Subject: </span>
                          Re: [Paraview] Question on Information Objects<br>
                        </div>
                        <div><br>
                        </div>
                        <div>
                          <div bgcolor="#FFFFFF" text="#000000"> hi,
                            information keys are more for passing info
                            between filters through the pipeline. if all
                            you want is to display a string, you could
                            make a second output port to your reader
                            that produces a vtkTable and populate it
                            with the string. This could be displayed in
                            the pv ui. here's a quick example of what
                            you'd do in your request data:<br>
                            <br>
                            <br>
                            315   vtkInformation *outInfo;<br>
                            316   vtkTable *output;<br>
                            317   vtkStringArray *data;<br>
                            318 <br>
                            319   // output port 1 -&gt; bw data<br>
                            320  
                            outInfo=outputVector-&gt;GetInformationObject(0);<br>
                            321   output<br>
                            322     =
dynamic_cast&lt;vtkTable*&gt;(outInfo-&gt;Get(vtkDataObject::DATA_OBJECT()));<br>
                            323   data=vtkStringArray::New();<br>
                            324   data-&gt;SetName("BW Data");<br>
                            325   data-&gt;SetNumberOfComponents(1);<br>
                            326  
                            data-&gt;InsertNextValue(bwData.c_str());<br>
                            327   output-&gt;AddColumn(data);<br>
                            328   data-&gt;Delete();<br>
                            <br>
                            <br>
                            <br>
                            On 03/22/2012 03:38 PM, Joshua Murphy wrote:
                            <blockquote
                              cite="mid:CB91061F.1027%25joshua.murphy@lasp.colorado.edu"
                              type="cite">
                              <div><span class="Apple-style-span"
                                  style="font-family: Helvetica;
                                  font-size: medium;">Hello,</span>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">I am trying to get
                                  meta-data information from a file into
                                  ParaView.  I have successfully built
                                  the information key-value pairs in the
                                  information object in my reader, but I
                                  am uncertain how to get the data out
                                  on the ParaView side of things.</div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">Example:</div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">I want to get the
                                  Calendar date meta-data from my model
                                  file.  I added Key to the information
                                  object to the results info object.</div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">I set keys as
                                  follows:</div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">
                                  <pre style="margin: 0px; text-indent: 0px;"><font class="Apple-style-span" color="#7a7a7a">  request-&gt;AppendUnique(vtkExecutive::KEYS_TO_COPY(), vtkENLILMetaDataKeys::REFDATE_CAL());</font></pre>
                                  <div><br>
                                  </div>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">I have a function
                                  to add the value to the key like such:</div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">
                                  <pre style="margin: 0px; text-indent: 0px;"><font class="Apple-style-span" color="#929292">void vtkENLILMetaDataKeys::populate_meta_data(vtkInformation* request, vtkInformationStringKey *key, char* value)</font></pre>
                                  <pre style="margin: 0px; text-indent: 0px;"><font class="Apple-style-span" color="#929292">{</font></pre>
                                  <pre style="margin: 0px; text-indent: 0px;"><font class="Apple-style-span" color="#929292">  request-&gt;Set(key, value);</font></pre>
                                  <pre style="margin: 0px; text-indent: 0px;"><font class="Apple-style-span" color="#929292">}</font></pre>
                                  <div><br>
                                  </div>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">I then add the
                                  values to the keys as follows:</div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">
                                  <pre style="margin: 0px; text-indent: 0px;"><font class="Apple-style-span" color="#929292">  vtkENLILMetaDataKeys::populate_meta_data(outInfo, vtkENLILMetaDataKeys::REFDATE_CAL(), temp);</font></pre>
                                  <div><br>
                                  </div>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">After I do this, I
                                  can successfully pull the placed data
                                  from the information object from
                                  within the reader.</div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">What I cannot
                                  figure out is how to access this
                                  object from within Paraview.</div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">My goal is to be
                                  able to include the calendar date (as
                                  text) in the render view.  </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">Can someone guide
                                  me in the correct direction on how to
                                  do this?  I am looking for possibly a
                                  python way of getting at this data.</div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">Thanks,</div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </div>
                                <div style="font-family: Helvetica;
                                  font-size: medium;">Josh</div>
                                <span class="Apple-style-span"
                                  style="font-family: Helvetica;
                                  font-size: medium;"><br>
                                </span></div>
                              <br>
                              <fieldset class="mimeAttachmentHeader"></fieldset>
                              <br>
                              <pre wrap="">_______________________________________________
Powered by <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>

Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a></pre>
                            </blockquote>
                            <br>
                          </div>
                        </div>
                      </span>
                      <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>

Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a></pre>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </span></blockquote>
            <br>
          </div>
        </div>
      </span></blockquote>
    <br>
  </body>
</html>