<div dir="ltr">vtkObject::GetClassName()<div style>and/or</div><div style>vtkObject::IsA(&quot;classname&quot;)</div><div style><br></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>

R&amp;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 Thu, Jul 11, 2013 at 7:00 AM, rahul indoria <span dir="ltr">&lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hi,<div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">    I just want to ask, if i have any vtk class then how would i know the return type this class object.</span><br style="font-family:arial,sans-serif;font-size:12.800000190734863px">


</div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">Looking forward your reply soon.</span></div>


<div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div><div class="gmail_extra"><br>


<br><div class="gmail_quote">On Wed, Jul 10, 2013 at 3:16 PM, rahul indoria <span dir="ltr">&lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div dir="ltr">Hi All,<div>         I am just modifying this example (<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation</a>). </div>



<div><br></div><div>At this portion of this example, </div><div><br></div><div><br></div><div><pre style="vertical-align:top;line-height:1.2em;font-size:10px;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none">

<span style="color:rgb(102,102,102)">// Create a mapper and actor.</span>
  vtkSmartPointer<span style="color:rgb(0,0,128)">&lt;</span>vtkDataSetMapper<span style="color:rgb(0,0,128)">&gt;</span> mapper <span style="color:rgb(0,0,128)">=</span>
    vtkSmartPointer<span style="color:rgb(0,0,128)">&lt;</span>vtkDataSetMapper<span style="color:rgb(0,0,128)">&gt;</span><span style="color:rgb(0,128,128)">::</span><span style="color:rgb(0,119,136)">New</span><span style="color:rgb(0,128,0)">(</span><span style="color:rgb(0,128,0)">)</span><span style="color:rgb(0,128,128)">;</span>
  mapper<span style="color:rgb(0,0,64)">-</span><span style="color:rgb(0,0,128)">&gt;</span>SetInputConnection<span style="color:rgb(0,128,0)">(</span>sampleVolume<span style="color:rgb(0,0,64)">-</span><span style="color:rgb(0,0,128)">&gt;</span>GetOutputPort<span style="color:rgb(0,128,0)">(</span><span style="color:rgb(0,128,0)">)</span><span style="color:rgb(0,128,0)">)</span><span style="color:rgb(0,128,128)">;</span>
<br></pre><pre style="vertical-align:top;line-height:1.2em;font-size:10px;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none"><br></pre><pre style="vertical-align:top;line-height:1.2em;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none">

<span style="font-size:10px">and this statement in function SetInputConnection:</span><font size="4"> <b>sampleVolume-&gt;GetOutputPort()</b></font><font size="1">, is giving me values on the surface.</font></pre><pre style="vertical-align:top;line-height:1.2em;font-size:10px;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none">

<br></pre><pre style="vertical-align:top;line-height:1.2em;font-size:10px;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none">My Query:</pre><pre style="vertical-align:top;line-height:1.2em;font-size:10px;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none">

I have to use these values and using this values i have to generate a 2D image.</pre><pre style="vertical-align:top;line-height:1.2em;font-size:10px;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none">

could you please suggest me some class or the way(method), by which i can achieve this task. it`s really very urgent for me, please help.</pre><pre style="vertical-align:top;line-height:1.2em;font-size:10px;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none">

<br></pre><pre style="vertical-align:top;line-height:1.2em;font-size:10px;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none"><br></pre><pre style="vertical-align:top;line-height:1.2em;font-size:10px;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none">

Looking forward your reply.</pre><pre style="vertical-align:top;line-height:1.2em;font-size:10px;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none"><br></pre>
<pre style="vertical-align:top;line-height:1.2em;font-size:10px;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none"><br></pre><pre style="vertical-align:top;line-height:1.2em;font-size:10px;margin-bottom:0px;margin-top:0px;border:0px none white;padding:0px;background-image:none">

<br></pre></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 9, 2013 at 9:00 PM,  <span dir="ltr">&lt;<a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Send vtkusers mailing list submissions to<br>
        <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:vtkusers-owner@vtk.org" target="_blank">vtkusers-owner@vtk.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of vtkusers digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: My point cloud data won&#39;t display in the renderer.<br>
      (Bill Lorensen)<br>
   2. Re: vtkusers Digest, Vol 111, Issue 16 (rahul indoria)<br>
   3. Re: vtkusers Digest, Vol 111, Issue 16 (Bill Lorensen)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 9 Jul 2013 12:10:24 -0400<br>
From: Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] My point cloud data won&#39;t display in the<br>
        renderer.<br>
To: Ruff &lt;<a href="mailto:albin.nilsson@gmail.com" target="_blank">albin.nilsson@gmail.com</a>&gt;<br>
Cc: VTK Users &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;CADZJ4hOT2J5Pg9C=<a href="mailto:SxkQ%2BWOisqxcqefh6r5GQhLAc%2B_2cCTMiA@mail.gmail.com" target="_blank">SxkQ+WOisqxcqefh6r5GQhLAc+_2cCTMiA@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
A vtkPoint is a geometric location. You need cells to visualize your data.<br>
in your case, you need Vert&#39;s, one for each Point. An easy way to create<br>
the verts is to use vtkVertexGlyphFilter.<br>
<br>
See for example:<br>
<a href="http://vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadTextFile" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadTextFile</a><br>
<a href="http://vtk.org/Wiki/VTK/Examples/Cxx/Filtering/VertexGlyphFilter" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/Filtering/VertexGlyphFilter</a><br>
<br>
<br>
<br>
On Tue, Jul 9, 2013 at 11:46 AM, Ruff &lt;<a href="mailto:albin.nilsson@gmail.com" target="_blank">albin.nilsson@gmail.com</a>&gt; wrote:<br>
<br>
&gt; All i get is an empty renderWindow. I get no errors, but no data is<br>
&gt; rendered<br>
&gt; either. What am I doing wrong?<br>
&gt;<br>
&gt; What I do is pretty much this:<br>
&gt;<br>
&gt; AtomGrid=vtk.vtkUnstructuredGrid()<br>
&gt; AtomGrid.SetPoints(    vtkPoints with [index,x,y,z]    )<br>
&gt; AtomGrid.GetPointData().SetScalars(    vtkFloatArray with [index, scalar]<br>
&gt; )<br>
&gt;<br>
&gt; volMapper = vtk.vtkUnstructuredGridVolumeRayCastMapper()<br>
&gt; volMapper.SetBlendModeToComposite()<br>
&gt; volMapper.SetInput(AtomGrid)<br>
&gt;<br>
&gt;<br>
&gt; I tried volMapper.SetScalarModeToUsePointFieldData(), but then it claims<br>
&gt; that I have no scalar values to use(!!)<br>
&gt;<br>
&gt; (I cheated before, and was satisfied using ImageData for this, but now I<br>
&gt; really need to get this to work with UnstructuredGrid)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html" target="_blank">http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html</a><br>




&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/0b18f194/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/0b18f194/attachment-0001.htm</a>&gt;<br>




<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 9 Jul 2013 20:43:19 +0200<br>
From: rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] vtkusers Digest, Vol 111, Issue 16<br>
To: &quot;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;CAGQ+16JOmQ6-kXGLVqk=p5PUo9eY-scAhxsxfZ1vnanY4bY=<a href="mailto:YQ@mail.gmail.com" target="_blank">YQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi,<br>
   Can you explain me some portion of the code of this example (<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation</a>)?<br>
<br>
i need to ask the line by line documentation of this function, how these<br>
points and surface is formed?<br>
<br>
<br>
vtkSmartPointer&lt;vtkPolyData&gt; SweepLine (vtkPolyData *line,<br>
                                        double direction[3],<br>
                                        double distance,<br>
                                        unsigned int cols)<br>
<br>
{<br>
<br>
unsigned int rows = line-&gt;GetNumberOfPoints();<br>
<br>
  double spacing = distance / cols;<br>
  vtkSmartPointer&lt;vtkPolyData&gt; surface =<br>
    vtkSmartPointer&lt;vtkPolyData&gt;::New();<br>
<br>
  // Generate the points<br>
  cols++; // why this statement ?<br>
  unsigned int numberOfPoints = rows * cols; // how these number<br>
points are generated<br>
  unsigned int numberOfPolys = (rows - 1) * (cols - 1); // what is this???<br>
<br>
<br>
vtkSmartPointer&lt;vtkPoints&gt; points =<br>
    vtkSmartPointer&lt;vtkPoints&gt;::New();<br>
  points-&gt;Allocate(numberOfPoints);<br>
  vtkSmartPointer&lt;vtkCellArray&gt; polys =<br>
    vtkSmartPointer&lt;vtkCellArray&gt;::New();<br>
  polys-&gt;Allocate(numberOfPolys*4);<br>
<br>
  double x[3];<br>
  unsigned int cnt = 0;<br>
  for (unsigned int row = 0; row &lt; rows; row++)<br>
    {<br>
      for (unsigned int col = 0; col &lt; cols; col++)<br>
        {<br>
          double p[3];<br>
          line-&gt;GetPoint(row, p);<br>
          x[0] = p[0] + direction[0] * col * spacing;<br>
          x[1] = p[1] + direction[1] * col * spacing;<br>
          x[2] = p[2] + direction[2] * col * spacing;<br>
          points-&gt;InsertPoint(cnt++, x);<br>
        }<br>
    }<br>
  // Generate the quads<br>
  vtkIdType pts[4];<br>
  for (unsigned int row = 0; row &lt; rows - 1; row++)<br>
    {<br>
      for (unsigned int col = 0; col &lt; cols - 1; col++)<br>
        {<br>
          pts[0] = col + row * (cols);<br>
          pts[1] = pts[0] + 1;<br>
          pts[2] = pts[0] + cols + 1;<br>
          pts[3] = pts[0] + cols;<br>
          polys-&gt;InsertNextCell(4,pts);<br>
        }<br>
    }<br>
  surface-&gt;SetPoints(points);<br>
  surface-&gt;SetPolys(polys);<br>
<br>
  return surface;}<br>
<br>
<br>
<br>
<br>
please reply as soon as possible<br>
<br>
<br>
<br>
On Tue, Jul 9, 2013 at 6:00 PM, &lt;<a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a>&gt; wrote:<br>
<br>
&gt; Send vtkusers mailing list submissions to<br>
&gt;         <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt;<br>
&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;         <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt; or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt;         <a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a><br>
&gt;<br>
&gt; You can reach the person managing the list at<br>
&gt;         <a href="mailto:vtkusers-owner@vtk.org" target="_blank">vtkusers-owner@vtk.org</a><br>
&gt;<br>
&gt; When replying, please edit your Subject line so it is more specific<br>
&gt; than &quot;Re: Contents of vtkusers digest...&quot;<br>
&gt;<br>
&gt;<br>
&gt; Today&#39;s Topics:<br>
&gt;<br>
&gt;    1. Re: Vtk 6.0 dotnet (David Cole)<br>
&gt;    2. Re: Regarding example VTKimagereslicemapper (rahul indoria)<br>
&gt;    3. FindCell method of vtkCellLocator (shinpei)<br>
&gt;    4. Re: FindCell method of vtkCellLocator (Alex Malyushytskyy)<br>
&gt;    5. VTK Stereo Rendering (mailagentrus)<br>
&gt;    6. [vtkUsers] About Different RenderWindowInteractor (hongsongyang)<br>
&gt;    7. using vtkGL2PSExporter in python [ under pythonXY() ]<br>
&gt;       (Gideon Valch)<br>
&gt;    8. Re: Help with image planes example (Ruff)<br>
&gt;    9. adding texture to a wavefront .obj  file in vtk (Umer Rafi)<br>
&gt;   10. Unexpected actor orientation results (divya)<br>
&gt;   11. Re: FindCell method of vtkCellLocator (shinpei)<br>
&gt;   12. VTK application running on Linux loads VNC server (Haroon Showgan)<br>
&gt;   13. .RAW file (Massinissa Bandou)<br>
&gt;   14. Re: .RAW file (Bill Lorensen)<br>
&gt;   15. My point cloud data won&#39;t display in the renderer. (Ruff)<br>
&gt;<br>
&gt;<br>
&gt; ----------------------------------------------------------------------<br>
&gt;<br>
&gt; Message: 1<br>
&gt; Date: Mon, 8 Jul 2013 16:21:52 +0000<br>
&gt; From: David Cole &lt;<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] Vtk 6.0 dotnet<br>
&gt; To: &quot; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a> &quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;, Serge Lalonde<br>
&gt;         &lt;<a href="mailto:serge@infolytica.com" target="_blank">serge@infolytica.com</a>&gt;<br>
&gt; Message-ID: &lt;<a href="mailto:20130708165306.6B0E66504F@public.kitware.com" target="_blank">20130708165306.6B0E66504F@public.kitware.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt;<br>
&gt; Thanks, Serge. It *is* too bad that the kickstarter approach did not yield<br>
&gt; a funded project this time around. Perhaps later, another one will be<br>
&gt; successful.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Alex, you wrote ?as for me I would trust more in the results of free<br>
&gt; development than in results of the projects developed using such financing.?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; In response, I would simply point out the results of free development are<br>
&gt; that ActiViz is presently ?stuck? on the VTK 5.8 version. And it was only<br>
&gt; ?free as in beer? to those of you who didn?t pay for it.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; It?s also too bad that nobody else has stepped up and said, ?hey, how can<br>
&gt; I contribute and help to make this happen?? (Aside from the 20 kickstarter<br>
&gt; project backers [1] -- thanks again, guys...)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; For those willing to contribute effort and manpower to the problem, rather<br>
&gt; than money, go for it. VTK and ActiViz are both open source, and may be<br>
&gt; built and extended by any interested party. I recently abandoned the topic<br>
&gt; integrating the two [2] due to lack of activity. Anybody who wants to,<br>
&gt; please feel free to resurrect it, rebase it on current ?master?, and try<br>
&gt; again. Alternatively, you could simply extend the ActiViz git repo with<br>
&gt; commits to make it build against an external VTK 5.10 or 6.0 [3].<br>
&gt;<br>
&gt;<br>
&gt; While I am capable and mildly interested in furthering ActiViz .NET, I<br>
&gt; prefer to spend much of my free time on non-computer related activities<br>
&gt; these days. I get quite enough compute time just doing my job. But money<br>
&gt; actually does motivate me... and I would be willing to do the work if paid<br>
&gt; for it. So, that, plus gauging actual interest level, were my primary<br>
&gt; motivations for seeking funding via kickstarter.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; David Cole<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; [1]<br>
&gt; <a href="http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510/backers" target="_blank">http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510/backers</a><br>




&gt;<br>
&gt; [2] <a href="http://review.source.kitware.com/#/t/1615/" target="_blank">http://review.source.kitware.com/#/t/1615/</a><br>
&gt;<br>
&gt; [3] <a href="http://public.kitware.com/gitweb?p=activizdotnet.git" target="_blank">http://public.kitware.com/gitweb?p=activizdotnet.git</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; P.S. ---<br>
&gt;<br>
&gt;<br>
&gt; I would also like to point out that nowadays, you can simply build a<br>
&gt; managed-C++ project with VS 2012, and ?just link for free? to the native<br>
&gt; VTK C++ libraries. That doesn?t help folks using other .NET languages, but<br>
&gt; it is a nice feature of the modern C++ compiler from MS that you can link<br>
&gt; in both managed and un-managed code together. If you are starting a new<br>
&gt; Windows Forms application, consider using managed C++ as your language.<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/0cc105c5/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/0cc105c5/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 2<br>
&gt; Date: Mon, 8 Jul 2013 20:12:06 +0200<br>
&gt; From: rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] Regarding example VTKimagereslicemapper<br>
&gt; To: David Doria &lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;, &quot;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&quot;<br>
&gt;         &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID:<br>
&gt;         &lt;CAGQ+16KkyGkkjmWQ86Xh5=<br>
&gt; <a href="mailto:VfUnbABFEquKOdKEDKfm9_F1eyaA@mail.gmail.com" target="_blank">VfUnbABFEquKOdKEDKfm9_F1eyaA@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; Hi,<br>
&gt;     Could you please tell me, what are port index in VTK functions?<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jul 8, 2013 at 5:51 PM, David Doria &lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; In the future, please keep the conversation on the mailing list so that<br>
&gt; &gt; everyone can participate/benefit from the discussion.<br>
&gt; &gt;<br>
&gt; &gt; I believe what you&#39;re seeing is a contrast adjustment mechanism (called<br>
&gt; &gt; &quot;window level events&quot; -<br>
&gt; &gt;<br>
&gt; <a href="http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html#details" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html#details</a><br>
&gt; &gt; ).<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; David<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Mon, Jul 8, 2013 at 11:48 AM, rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a><br>
&gt; &gt;wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Hi David,<br>
&gt; &gt;&gt;                I have one more question regarding this example, in the<br>
&gt; &gt;&gt; output of this example(<br>
&gt; &gt;&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper</a>), why<br>
&gt; &gt;&gt; we are getting different colors of the image, when i am left-clicking on<br>
&gt; &gt;&gt; the image and moving mouse up and down?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Looking forward your reply soon.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; rahul indoria<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Mon, Jul 8, 2013 at 3:22 PM, David Doria &lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&gt; On Mon, Jul 8, 2013 at 9:05 AM, rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a><br>
&gt; &gt;wrote:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Hi,<br>
&gt; &gt;&gt;&gt;&gt;    I was modifying this example:<br>
&gt; &gt;&gt;&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper</a><br>
&gt; &gt;&gt;&gt;&gt;  in this example, i am deleting the object vtkImageSlice, and when i<br>
&gt; am<br>
&gt; &gt;&gt;&gt;&gt; putting the object &quot;imageSliceMapper&quot; i getting an error?<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; As vtkimageslice class used to represent an image in a 3D scene, i<br>
&gt; &gt;&gt;&gt;&gt; don`t want to display this in 3D scene, just want to display on the<br>
&gt; screen<br>
&gt; &gt;&gt;&gt;&gt; that`s why i am deleting this class, so why i am getting this error?<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; I modified this code like this :<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; What do you want to do if not display the image? The problem is that<br>
&gt; you<br>
&gt; &gt;&gt;&gt; can&#39;t call AddViewProp on a mapper - it has to be a vtkProp subclass<br>
&gt; &gt;&gt;&gt; (like the vtkImageSlice was). In the future, please include the exact<br>
&gt; &gt;&gt;&gt; error that you are getting.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; David<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; --<br>
&gt; &gt;&gt; *Best  Regards<br>
&gt; &gt;&gt; Rahul Indoria<br>
&gt; &gt;&gt; Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212" target="_blank">+49-157-35652212</a>*<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; *Best  Regards<br>
&gt; Rahul Indoria<br>
&gt; Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212" target="_blank">+49-157-35652212</a>*<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/8de03097/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/8de03097/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 3<br>
&gt; Date: Mon, 8 Jul 2013 15:44:56 -0700 (PDT)<br>
&gt; From: shinpei &lt;<a href="mailto:noro_shinpei@web.de" target="_blank">noro_shinpei@web.de</a>&gt;<br>
&gt; Subject: [vtkusers] FindCell method of vtkCellLocator<br>
&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; Message-ID: &lt;<a href="mailto:1373323496433-5721831.post@n5.nabble.com" target="_blank">1373323496433-5721831.post@n5.nabble.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I have two triangle cells in my vtkCellLocator and I create a little bb<br>
&gt; around a point of one triangle (see picture). Now I use FindCell(bb,<br>
&gt; idList)<br>
&gt; and I should get one id, but I get two. Is this a bug, or must I change<br>
&gt; something?<br>
&gt;<br>
&gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png</a>&gt;<br>
&gt; - two trinagles (red)<br>
&gt; - bb (blue)<br>
&gt;<br>
&gt; My code:<br>
&gt;<br>
&gt;     for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints(); ++ptId)<br>
&gt;     {<br>
&gt;         bounds[0] = trianglePoint[0] - 0.01;<br>
&gt;         bounds[1] = trianglePoint[0] + 0.01;<br>
&gt;         bounds[2] = trianglePoint[1] - 0.01;<br>
&gt;         bounds[3] = trianglePoint[1] + 0.01;<br>
&gt;         bounds[4] = trianglePoint[2] - 0.01;<br>
&gt;         bounds[5] = trianglePoint[2] + 0.01;<br>
&gt;<br>
&gt;         cellLocator-&gt;FindCellsWithinBounds(bounds, foundCells);<br>
&gt;<br>
&gt;         int size = foundCells-&gt;GetNumberOfIds(); // is always two<br>
&gt;     }<br>
&gt;<br>
&gt;<br>
&gt; Thx<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 4<br>
&gt; Date: Mon, 8 Jul 2013 19:00:25 -0700<br>
&gt; From: Alex Malyushytskyy &lt;<a href="mailto:alexmalvtk@gmail.com" target="_blank">alexmalvtk@gmail.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
&gt; To: shinpei &lt;<a href="mailto:noro_shinpei@web.de" target="_blank">noro_shinpei@web.de</a>&gt;<br>
&gt; Cc: VTK &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID:<br>
&gt;         &lt;<br>
&gt; <a href="mailto:CAHR9pJ0m4dYdghFRjZ5Y6YffT23dv3Q%2BScsu4JEK8yMLQZ7rbg@mail.gmail.com" target="_blank">CAHR9pJ0m4dYdghFRjZ5Y6YffT23dv3Q+Scsu4JEK8yMLQZ7rbg@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; It is not clear that attached picture corresponds to your claims.<br>
&gt; There is no visible  relation between trianglePoint and<br>
&gt; geometry-&gt;GetNumberOfPoints().<br>
&gt; Also  for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints();<br>
&gt; ++ptId)<br>
&gt; loop does not make any sense cause nothing changes in the loop.<br>
&gt;<br>
&gt; So I guess your trianglePoint is not what you think it is.<br>
&gt; For example if this point is shared by 2 triangles you will have the same<br>
&gt; effect.<br>
&gt; Another possible problem might be absolute value 0.1 used.<br>
&gt; For example your triangle may have size smaller than it, which will be a<br>
&gt; source of such effect too.<br>
&gt;<br>
&gt; Your example is not complete , you could create much better example<br>
&gt; initializing all available variables so the behavior can be reproduced.<br>
&gt;<br>
&gt; Alex<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jul 8, 2013 at 3:44 PM, shinpei &lt;<a href="mailto:noro_shinpei@web.de" target="_blank">noro_shinpei@web.de</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; I have two triangle cells in my vtkCellLocator and I create a little bb<br>
&gt; &gt; around a point of one triangle (see picture). Now I use FindCell(bb,<br>
&gt; &gt; idList)<br>
&gt; &gt; and I should get one id, but I get two. Is this a bug, or must I change<br>
&gt; &gt; something?<br>
&gt; &gt;<br>
&gt; &gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png</a>&gt;<br>
&gt; &gt; - two trinagles (red)<br>
&gt; &gt; - bb (blue)<br>
&gt; &gt;<br>
&gt; &gt; My code:<br>
&gt; &gt;<br>
&gt; &gt;     for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints();<br>
&gt; ++ptId)<br>
&gt; &gt;     {<br>
&gt; &gt;         bounds[0] = trianglePoint[0] - 0.01;<br>
&gt; &gt;         bounds[1] = trianglePoint[0] + 0.01;<br>
&gt; &gt;         bounds[2] = trianglePoint[1] - 0.01;<br>
&gt; &gt;         bounds[3] = trianglePoint[1] + 0.01;<br>
&gt; &gt;         bounds[4] = trianglePoint[2] - 0.01;<br>
&gt; &gt;         bounds[5] = trianglePoint[2] + 0.01;<br>
&gt; &gt;<br>
&gt; &gt;         cellLocator-&gt;FindCellsWithinBounds(bounds, foundCells);<br>
&gt; &gt;<br>
&gt; &gt;         int size = foundCells-&gt;GetNumberOfIds(); // is always two<br>
&gt; &gt;     }<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Thx<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; View this message in context:<br>
&gt; &gt;<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html</a><br>
&gt; &gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt; &gt;<br>
&gt; &gt; Visit other Kitware open-source projects at<br>
&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt; &gt;<br>
&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt; &gt;<br>
&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt; &gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt; &gt;<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/533f4d72/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/533f4d72/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 5<br>
&gt; Date: Mon, 8 Jul 2013 22:09:00 -0700 (PDT)<br>
&gt; From: mailagentrus &lt;<a href="mailto:mailagentrus@mail.ru" target="_blank">mailagentrus@mail.ru</a>&gt;<br>
&gt; Subject: [vtkusers] VTK Stereo Rendering<br>
&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; Message-ID: &lt;<a href="mailto:1373346540408-5721833.post@n5.nabble.com" target="_blank">1373346540408-5721833.post@n5.nabble.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;<br>
&gt; Hi! I want to add a stereo mode to my program. Program wil be show pairs of<br>
&gt; images image in stereo mode (with Nvidia 3d vision). I set up NVidia Qudro<br>
&gt; 410 and saw stereo mode with Polydata object with using Paraview.<br>
&gt; But, when I try to make own program i see inly the firs pair images in<br>
&gt; stereo mode, after that image in right eye does not update... Updates inly<br>
&gt; the left eye image.<br>
&gt; Help me, please!<br>
&gt;<br>
&gt; Code:<br>
&gt;<br>
&gt; #include &lt;vtkPolyDataReader.h&gt;<br>
&gt; #include &lt;vtkSmartPointer.h&gt;<br>
&gt; #include &lt;vtkDataSetMapper.h&gt;<br>
&gt; #include &lt;vtkActor.h&gt;<br>
&gt; #include &lt;vtkRenderWindow.h&gt;<br>
&gt; #include &lt;vtkRenderer.h&gt;<br>
&gt; #include &lt;vtkRenderWindowInteractor.h&gt;<br>
&gt; #include &lt;vtkCamera.h&gt;<br>
&gt; #include &quot;vtkCommand.h&quot;<br>
&gt; #include &quot;vtkImageData.h&quot;<br>
&gt; #include &lt;vtkBMPReader.h&gt;<br>
&gt; #include &lt;vtkImageViewer2.h&gt;<br>
&gt; #include &lt;vtkImageActor.h&gt;<br>
&gt;<br>
&gt; vtkSmartPointer&lt;vtkBMPReader&gt; readerR;<br>
&gt; vtkSmartPointer&lt;vtkBMPReader&gt; readerL;<br>
&gt; vtkSmartPointer&lt;vtkImageViewer2&gt; imageViewer;<br>
&gt;<br>
&gt; class vtkTimerCallback : public vtkCommand<br>
&gt; {<br>
&gt;   public:<br>
&gt;     static vtkTimerCallback *New()<br>
&gt;     {<br>
&gt;       vtkTimerCallback *cb = new vtkTimerCallback;<br>
&gt;       cb-&gt;TimerCount = 0;<br>
&gt;       return cb;<br>
&gt;     }<br>
&gt;<br>
&gt;     virtual void Execute(vtkObject *vtkNotUsed(caller), unsigned long<br>
&gt; eventId,<br>
&gt;                          void *vtkNotUsed(callData))<br>
&gt;     {<br>
&gt;       if (vtkCommand::TimerEvent == eventId)<br>
&gt;         {<br>
&gt;<br>
&gt; // for example name for left eye image is<br>
&gt;                 readerL-&gt;SetFileName ( &quot;D:/1234/-40.bmp&quot;);<br>
&gt;                 readerL-&gt;Update();<br>
&gt;<br>
&gt; // for example name for right eye image is<br>
&gt;                 readerR-&gt;SetFileName ( &quot;D:/1234/40.bmp&quot;);<br>
&gt;                 readerR-&gt;Update();<br>
&gt;<br>
&gt;                 imageViewer-&gt;SetInput(readerL-&gt;GetOutput());<br>
&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;SetStereoTypeToLeft();<br>
&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt;   imageViewer-&gt;GetRenderer()-&gt;ResetCamera();<br>
&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt;<br>
&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;StereoUpdate();<br>
&gt;<br>
&gt;                 imageViewer-&gt;SetInput(readerL-&gt;GetOutput());<br>
&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;SetStereoTypeToRight();<br>
&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt;   imageViewer-&gt;GetRenderer()-&gt;ResetCamera();<br>
&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt;<br>
&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;StereoUpdate();<br>
&gt;<br>
&gt;         ++this-&gt;TimerCount;<br>
&gt;         }<br>
&gt;         cout &lt;&lt; this-&gt;TimerCount &lt;&lt; endl;<br>
&gt;     }<br>
&gt;<br>
&gt;   private:<br>
&gt;     int TimerCount;<br>
&gt;<br>
&gt; };<br>
&gt;<br>
&gt;<br>
&gt; int main ( int argc, char *argv[] )<br>
&gt; {<br>
&gt;   //Read the image<br>
&gt;    readerL =<br>
&gt;     vtkSmartPointer&lt;vtkBMPReader&gt;::New();<br>
&gt;   readerL-&gt;SetFileName ( &quot;D:/1234/-5.bmp&quot;);<br>
&gt;   readerL-&gt;Update();<br>
&gt;<br>
&gt;    readerR =<br>
&gt;     vtkSmartPointer&lt;vtkBMPReader&gt;::New();<br>
&gt;   readerR-&gt;SetFileName ( &quot;D:/1234/5.bmp&quot;);<br>
&gt;   readerR-&gt;Update();<br>
&gt;<br>
&gt;   // Visualize<br>
&gt;   imageViewer =<br>
&gt;     vtkSmartPointer&lt;vtkImageViewer2&gt;::New();<br>
&gt;<br>
&gt;    vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; renderWindowInteractor =<br>
&gt;     vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>
&gt;   imageViewer-&gt;SetupInteractor(renderWindowInteractor);<br>
&gt;<br>
&gt;     imageViewer-&gt;GetRenderWindow()-&gt;SetSize( 800, 600 );<br>
&gt;<br>
&gt;   imageViewer-&gt;GetRenderWindow()-&gt;StereoCapableWindowOn();<br>
&gt;   imageViewer-&gt;GetRenderWindow()-&gt;SetStereoTypeToCrystalEyes();<br>
&gt;   imageViewer-&gt;GetRenderWindow()-&gt;SetStereoRender(1);<br>
&gt;   imageViewer-&gt;GetRenderWindow()-&gt;StereoUpdate();<br>
&gt;<br>
&gt;  renderWindowInteractor-&gt;Initialize();<br>
&gt;<br>
&gt;   imageViewer-&gt;SetInput(readerBase-&gt;GetOutput());<br>
&gt;   imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt;   imageViewer-&gt;GetRenderer()-&gt;ResetCamera();<br>
&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt;<br>
&gt;    // Sign up to receive TimerEvent<br>
&gt;   vtkSmartPointer&lt;vtkTimerCallback&gt; cb =<br>
&gt;     vtkSmartPointer&lt;vtkTimerCallback&gt;::New();<br>
&gt;   renderWindowInteractor-&gt;AddObserver(vtkCommand::TimerEvent, cb);<br>
&gt;<br>
&gt;   int timerId = renderWindowInteractor-&gt;CreateRepeatingTimer(100);<br>
&gt;   std::cout &lt;&lt; &quot;timerId: &quot; &lt;&lt; timerId &lt;&lt; std::endl;<br>
&gt;<br>
&gt;   renderWindowInteractor-&gt;Start();<br>
&gt;<br>
&gt;    return EXIT_SUCCESS;<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/VTK-Stereo-Rendering-tp5721833.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Stereo-Rendering-tp5721833.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 6<br>
&gt; Date: Tue, 9 Jul 2013 14:08:36 +0800<br>
&gt; From: &quot;hongsongyang&quot; &lt;<a href="mailto:hongsongyang@163.com" target="_blank">hongsongyang@163.com</a>&gt;<br>
&gt; Subject: [vtkusers] [vtkUsers] About Different RenderWindowInteractor<br>
&gt; To: &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID: &lt;D36F8CD489D643279CDEF9B7802D2D8F@WlfPC&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
&gt;<br>
&gt; Dear All:<br>
&gt;<br>
&gt;      I have several renders (e.g 4 render), and we could use SetViewport to<br>
&gt; display all of them in one RenderWindow.<br>
&gt;<br>
&gt; My question is that could I set different interactor for each of the<br>
&gt; render?<br>
&gt;<br>
&gt; For example, for render1, I only need zoom and ww/wl operation, but for<br>
&gt; render2, I need zoom, pan and rotate operation.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thanks a lot.<br>
&gt;<br>
&gt; Hongsongyang<br>
&gt;<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/73d6e3a8/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/73d6e3a8/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 7<br>
&gt; Date: Mon, 8 Jul 2013 23:34:35 -0700<br>
&gt; From: Gideon Valch &lt;<a href="mailto:gvalch1237@gmail.com" target="_blank">gvalch1237@gmail.com</a>&gt;<br>
&gt; Subject: [vtkusers] using vtkGL2PSExporter in python [ under<br>
&gt;         pythonXY() ]<br>
&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; Message-ID:<br>
&gt;         &lt;<br>
&gt; <a href="mailto:CAEEGk3YCKrV6gQCtRoPXZZQXQ%2BQr7J%2BKPgK%2BzLAAeF2e6%2BKpgw@mail.gmail.com" target="_blank">CAEEGk3YCKrV6gQCtRoPXZZQXQ+Qr7J+KPgK+zLAAeF2e6+Kpgw@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; I use pythonxy() as my platform for python supported vtk.     Currently,<br>
&gt; I&#39;m trying to export a vtk render window to post script using the sample<br>
&gt; code (at bottom) but I&#39;m getting an error (see below).   I suspect this<br>
&gt; relates to how pythonxy() is compiled.  Can anyone suggest a workaround?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; GV<br>
&gt;<br>
&gt; exporter = vtk.vtkGL2PSExporter()<br>
&gt; AttributeError: &#39;module&#39; object has no attribute &#39;vtkGL2PSExporter&#39;<br>
&gt;<br>
&gt; ----------------------------<br>
&gt;<br>
&gt; prefix=&quot;c:\\temp\\foo444&quot;<br>
&gt; exporter = vtk.vtkGL2PSExporter()<br>
&gt; exporter.SetFilePrefix(prefix)<br>
&gt; exporter.SetFileFormatToSVG()<br>
&gt; exporter.SetRenderWindow(renWin)<br>
&gt; exporter.CompressOff()<br>
&gt; exporter.SetSortToOff()<br>
&gt; #exporter.DrawBackgroundOn()<br>
&gt; #exporter.Write3DPropsAsRasterImageOn()<br>
&gt; exporter.Write()<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/2dfee622/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/2dfee622/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 8<br>
&gt; Date: Tue, 9 Jul 2013 00:44:38 -0700 (PDT)<br>
&gt; From: Ruff &lt;<a href="mailto:albin.nilsson@gmail.com" target="_blank">albin.nilsson@gmail.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] Help with image planes example<br>
&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; Message-ID: &lt;<a href="mailto:1373355878399-5721836.post@n5.nabble.com" target="_blank">1373355878399-5721836.post@n5.nabble.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;<br>
&gt; Thank you!<br>
&gt; The problem is that when I tried with ImageData as input in volume16reader<br>
&gt; I<br>
&gt; got the error &quot;Attempt to connect input port index 0 for an algorithm with<br>
&gt; 0<br>
&gt; input ports&quot;<br>
&gt; Using ImageData as input directly to vtkImagePlaneWidget worked fine<br>
&gt; though,<br>
&gt; so I guess that solves it.<br>
&gt; (My VTK-programming right now is mostly trial and error along with trying<br>
&gt; to<br>
&gt; understand the different data structures and the pipeline)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/Help-with-image-planes-example-tp5721813p5721836.html" target="_blank">http://vtk.1045678.n5.nabble.com/Help-with-image-planes-example-tp5721813p5721836.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 9<br>
&gt; Date: Tue, 09 Jul 2013 11:23:11 +0200<br>
&gt; From: Umer Rafi &lt;<a href="mailto:umer.rafi@rwth-aachen.de" target="_blank">umer.rafi@rwth-aachen.de</a>&gt;<br>
&gt; Subject: [vtkusers] adding texture to a wavefront .obj  file in vtk<br>
&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; Message-ID: &lt;<a href="mailto:fb959ae41b00e3.51dbf29f@rwth-aachen.de" target="_blank">fb959ae41b00e3.51dbf29f@rwth-aachen.de</a>&gt;<br>
&gt; Content-Type: text/plain; CHARSET=US-ASCII<br>
&gt;<br>
&gt; Hello everyone,<br>
&gt;<br>
&gt;     I am new to vtk. I am having a wavefront file of a 3d human model.<br>
&gt; What I want to do is to render it using vtk and apply different textures to<br>
&gt; different parts of the 3d human model. For example I have a texture image<br>
&gt; containing a shirt that I want to apply to torso and arms only.  Another<br>
&gt; one for jeans that I want to apply to legs and thighs only. I will really<br>
&gt; appreciate if anyone can provide a sample code snippet to get me started.<br>
&gt;<br>
&gt;<br>
&gt; thanks in advance.<br>
&gt;<br>
&gt; Regards<br>
&gt; Umer<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 10<br>
&gt; Date: Tue, 9 Jul 2013 16:53:12 +0530<br>
&gt; From: &quot;divya&quot; &lt;<a href="mailto:divya@triassicsolutions.com" target="_blank">divya@triassicsolutions.com</a>&gt;<br>
&gt; Subject: [vtkusers] Unexpected actor orientation results<br>
&gt; To: &quot;Vtk Users&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID: &lt;004201ce7c96$b5c358a0$214a09e0$@<a href="http://triassicsolutions.com" target="_blank">triassicsolutions.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Dear vtkUsers,<br>
&gt;<br>
&gt; I am trying to find the orientation of an actor while I&#39;m rotating it, the<br>
&gt; z<br>
&gt; and y are correct, but the value range for  the x axis is [-90, 90],<br>
&gt; whereas<br>
&gt; the value range for  z and y axis is [-180, 180].<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Also the rotation doesn&#39;t happen in the chosen axis, for example when I<br>
&gt; chose to rotate the actor by 15 degrees on y-axis, the value of the z-axis<br>
&gt; increases.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt; -------------- next part --------------<br>
&gt; A non-text attachment was scrubbed...<br>
&gt; Name: not available<br>
&gt; Type: image/jpeg<br>
&gt; Size: 10515 bytes<br>
&gt; Desc: not available<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0002.jpeg" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0002.jpeg</a><br>
&gt; &gt;<br>
&gt; -------------- next part --------------<br>
&gt; A non-text attachment was scrubbed...<br>
&gt; Name: not available<br>
&gt; Type: image/jpeg<br>
&gt; Size: 13048 bytes<br>
&gt; Desc: not available<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0003.jpeg" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0003.jpeg</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 11<br>
&gt; Date: Tue, 9 Jul 2013 05:23:41 -0700 (PDT)<br>
&gt; From: shinpei &lt;<a href="mailto:noro_shinpei@web.de" target="_blank">noro_shinpei@web.de</a>&gt;<br>
&gt; Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; Message-ID: &lt;<a href="mailto:1373372621955-5721840.post@n5.nabble.com" target="_blank">1373372621955-5721840.post@n5.nabble.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;<br>
&gt; Sry... I thought it would be clear what I mean.<br>
&gt;<br>
&gt; The geometry contains two triangles:<br>
&gt; Points are:<br>
&gt; (0 0 0)<br>
&gt; (0 10 0)<br>
&gt; (10 0 0)<br>
&gt; (10 10 0)<br>
&gt;<br>
&gt; with connection:<br>
&gt; (0 1 2)<br>
&gt; (1 2 3)<br>
&gt;<br>
&gt;      for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints(); ++ptId)<br>
&gt;     {<br>
&gt;         geometry-&gt;getPoints()-&gt;GetPoint(ptId, trianglePoint);<br>
&gt;<br>
&gt;         bounds[0] = trianglePoint[0] - 0.01;<br>
&gt;         bounds[1] = trianglePoint[0] + 0.01;<br>
&gt;         bounds[2] = trianglePoint[1] - 0.01;<br>
&gt;         bounds[3] = trianglePoint[1] + 0.01;<br>
&gt;         bounds[4] = trianglePoint[2] - 0.01;<br>
&gt;         bounds[5] = trianglePoint[2] + 0.01;<br>
&gt;<br>
&gt;         cellLocator-&gt;FindCellsWithinBounds(bounds, foundCells);<br>
&gt;<br>
&gt;         int size = foundCells-&gt;GetNumberOfIds(); // is always two<br>
&gt;     }<br>
&gt;<br>
&gt; The trianglePoint is e.g. (0 0 0) (first iteration of the loop) so I should<br>
&gt; get only one triangle, but I get always two triangles. The bb is small<br>
&gt; enough and there is a point which correspons to only one triangle.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721840.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721840.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 12<br>
&gt; Date: Tue, 9 Jul 2013 15:43:23 +0300<br>
&gt; From: Haroon Showgan &lt;<a href="mailto:haroon.showgan@gmail.com" target="_blank">haroon.showgan@gmail.com</a>&gt;<br>
&gt; Subject: [vtkusers] VTK application running on Linux loads VNC server<br>
&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; Message-ID:<br>
&gt;         &lt;CAJ=<br>
&gt; <a href="mailto:gTgXfT44oBK1Qz5idLBRDt0kdiZuLh0iA%2BmrtAChwR_-Pkw@mail.gmail.com" target="_blank">gTgXfT44oBK1Qz5idLBRDt0kdiZuLh0iA+mrtAChwR_-Pkw@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m implementing a VTK application for visualizing geometrical 3D objects.<br>
&gt; Most of the code is written in C++, and I use TCL-TK widgets for the GUI (I<br>
&gt; use *vtkTkRenderWidget* for the main canvas).<br>
&gt;<br>
&gt; Most of my objects are *vtkVoxel* objects inserted into a *<br>
&gt; vtkUnstructuredGrid*.<br>
&gt;<br>
&gt; I run this application on a Linux server and I connect to this server from<br>
&gt; Windows using VNC. I noticed that when I load a very large data set into<br>
&gt; the application then the *VNC server* (on the Linux machine) consumes a lot<br>
&gt; of memory and uses 100% CPU. I didn&#39;t realize that the memory and CPU<br>
&gt; usages of a VNC server would be affected so much like this.<br>
&gt;<br>
&gt;  Note that my VTK application is also consuming a lot of memory and CPU,<br>
&gt; but what I find strange is that the VNC server is also affected (the<br>
&gt; process is called *Xvnc_core*).<br>
&gt;<br>
&gt; Does anyone know how this is caused and do you have any suggestion how to<br>
&gt; mitigate the problem?<br>
&gt;<br>
&gt; Regards,<br>
&gt; Haroon<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/621fefc2/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/621fefc2/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 13<br>
&gt; Date: Tue, 9 Jul 2013 07:25:46 -0700 (PDT)<br>
&gt; From: Massinissa Bandou &lt;Massinissa.Bandou@USherbrooke.ca&gt;<br>
&gt; Subject: [vtkusers] .RAW file<br>
&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; Message-ID: &lt;<a href="mailto:1373379946181-5721842.post@n5.nabble.com" target="_blank">1373379946181-5721842.post@n5.nabble.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;<br>
&gt; Hello everyone,<br>
&gt;<br>
&gt; I tried to read a (.raw) file with the following code but it displays a RED<br>
&gt; CUBE. Here is some information about my file  dataInfo.txt<br>
&gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt</a>&gt;  . Is there<br>
&gt; something wrong in my code?<br>
&gt;<br>
&gt; thx for your time and help!<br>
&gt;<br>
&gt; sorry my file is too large to be send.<br>
&gt;<br>
&gt; #include &lt;vtkSmartPointer.h&gt;<br>
&gt; #include &lt;vtkRenderWindow.h&gt;<br>
&gt; #include &lt;vtkRenderWindowInteractor.h&gt;<br>
&gt; #include &lt;vtkRenderer.h&gt;<br>
&gt; #include &lt;vtkActor&gt;<br>
&gt; #include &lt;vtkImageReader&gt;<br>
&gt; #include &lt;vtkDataSetMapper&gt;<br>
&gt;<br>
&gt; int main(int argc, char *argv[])<br>
&gt; {<br>
&gt;         vtkImageReader *reader = vtkImageReader::New();<br>
&gt;         reader-&gt;SetFileName(file.c_str());<br>
&gt;         reader-&gt;SetFileDimensionality(3);<br>
&gt;         reader-&gt;SetNumberOfScalarComponents(1);<br>
&gt;         reader-&gt;SetDataExtent(0,512,0,512,0,512);<br>
&gt;         reader-&gt;SetDataSpacing(0.145, 0.145, 0.145);<br>
&gt;         reader-&gt;SetDataByteOrderToBigEndian();<br>
&gt;         reader-&gt;SetDataScalarTypeToChar();<br>
&gt;         reader-&gt;Update();<br>
&gt;<br>
&gt;         vtkSmartPointer&lt;vtkDataSetMapper&gt; map =<br>
&gt; vtkSmartPointer&lt;vtkDataSetMapper&gt;::New();<br>
&gt;         map-&gt;SetInputConnection(reader-&gt;GetOutputPort());<br>
&gt;<br>
&gt;<br>
&gt;         vtkSmartPointer&lt;vtkActor&gt; actor = vtkSmartPointer&lt;vtkActor&gt;::New();<br>
&gt;         actor-&gt;SetMapper(map);<br>
&gt;<br>
&gt;         vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; interactor =<br>
&gt; vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>
&gt;<br>
&gt;         vtkSmartPointer&lt;vtkRenderWindow&gt; renderWindow =<br>
&gt; vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<br>
&gt;         interactor-&gt;SetRenderWindow(renderWindow);<br>
&gt;         vtkSmartPointer&lt;vtkRenderer&gt; renderer =<br>
&gt; vtkSmartPointer&lt;vtkRenderer&gt;::New();<br>
&gt;         renderWindow-&gt;AddRenderer(renderer);<br>
&gt;         renderer-&gt;AddActor(actor);<br>
&gt;<br>
&gt;         renderWindow-&gt;Render();<br>
&gt;         interactor-&gt;Start();<br>
&gt; }<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html" target="_blank">http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 14<br>
&gt; Date: Tue, 9 Jul 2013 11:38:50 -0400<br>
&gt; From: Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;<br>
&gt; Subject: Re: [vtkusers] .RAW file<br>
&gt; To: Massinissa Bandou &lt;<a href="mailto:Massinissa.Bandou@usherbrooke.ca" target="_blank">Massinissa.Bandou@usherbrooke.ca</a>&gt;<br>
&gt; Cc: VTK Users &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt; Message-ID:<br>
&gt;         &lt;<br>
&gt; <a href="mailto:CADZJ4hNXVuS_7L9ocCzex3XHpqyg5dpdKJ2NmxfQn_DnaSDp_Q@mail.gmail.com" target="_blank">CADZJ4hNXVuS_7L9ocCzex3XHpqyg5dpdKJ2NmxfQn_DnaSDp_Q@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;<br>
&gt; If your data is 512x512x512 then<br>
&gt; reader-&gt;SetDataExtent(0,512,0,512,0,512);<br>
&gt; should be:<br>
&gt; reader-&gt;SetDataExtent(0,511,0,511,0,511);<br>
&gt;<br>
&gt; Also be certain you are setting the correct endianness.<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 9, 2013 at 10:25 AM, Massinissa Bandou &lt;<br>
&gt; <a href="mailto:Massinissa.Bandou@usherbrooke.ca" target="_blank">Massinissa.Bandou@usherbrooke.ca</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hello everyone,<br>
&gt; &gt;<br>
&gt; &gt; I tried to read a (.raw) file with the following code but it displays a<br>
&gt; RED<br>
&gt; &gt; CUBE. Here is some information about my file  dataInfo.txt<br>
&gt; &gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt</a>&gt;  . Is<br>
&gt; there<br>
&gt; &gt; something wrong in my code?<br>
&gt; &gt;<br>
&gt; &gt; thx for your time and help!<br>
&gt; &gt;<br>
&gt; &gt; sorry my file is too large to be send.<br>
&gt; &gt;<br>
&gt; &gt; #include &lt;vtkSmartPointer.h&gt;<br>
&gt; &gt; #include &lt;vtkRenderWindow.h&gt;<br>
&gt; &gt; #include &lt;vtkRenderWindowInteractor.h&gt;<br>
&gt; &gt; #include &lt;vtkRenderer.h&gt;<br>
&gt; &gt; #include &lt;vtkActor&gt;<br>
&gt; &gt; #include &lt;vtkImageReader&gt;<br>
&gt; &gt; #include &lt;vtkDataSetMapper&gt;<br>
&gt; &gt;<br>
&gt; &gt; int main(int argc, char *argv[])<br>
&gt; &gt; {<br>
&gt; &gt;         vtkImageReader *reader = vtkImageReader::New();<br>
&gt; &gt;         reader-&gt;SetFileName(file.c_str());<br>
&gt; &gt;         reader-&gt;SetFileDimensionality(3);<br>
&gt; &gt;         reader-&gt;SetNumberOfScalarComponents(1);<br>
&gt; &gt;         reader-&gt;SetDataExtent(0,512,0,512,0,512);<br>
&gt; &gt;         reader-&gt;SetDataSpacing(0.145, 0.145, 0.145);<br>
&gt; &gt;         reader-&gt;SetDataByteOrderToBigEndian();<br>
&gt; &gt;         reader-&gt;SetDataScalarTypeToChar();<br>
&gt; &gt;         reader-&gt;Update();<br>
&gt; &gt;<br>
&gt; &gt;         vtkSmartPointer&lt;vtkDataSetMapper&gt; map =<br>
&gt; &gt; vtkSmartPointer&lt;vtkDataSetMapper&gt;::New();<br>
&gt; &gt;         map-&gt;SetInputConnection(reader-&gt;GetOutputPort());<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;         vtkSmartPointer&lt;vtkActor&gt; actor =<br>
&gt; vtkSmartPointer&lt;vtkActor&gt;::New();<br>
&gt; &gt;         actor-&gt;SetMapper(map);<br>
&gt; &gt;<br>
&gt; &gt;         vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; interactor =<br>
&gt; &gt; vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>
&gt; &gt;<br>
&gt; &gt;         vtkSmartPointer&lt;vtkRenderWindow&gt; renderWindow =<br>
&gt; &gt; vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<br>
&gt; &gt;         interactor-&gt;SetRenderWindow(renderWindow);<br>
&gt; &gt;         vtkSmartPointer&lt;vtkRenderer&gt; renderer =<br>
&gt; &gt; vtkSmartPointer&lt;vtkRenderer&gt;::New();<br>
&gt; &gt;         renderWindow-&gt;AddRenderer(renderer);<br>
&gt; &gt;         renderer-&gt;AddActor(actor);<br>
&gt; &gt;<br>
&gt; &gt;         renderWindow-&gt;Render();<br>
&gt; &gt;         interactor-&gt;Start();<br>
&gt; &gt; }<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; View this message in context:<br>
&gt; &gt; <a href="http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html" target="_blank">http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html</a><br>
&gt; &gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt; &gt;<br>
&gt; &gt; Visit other Kitware open-source projects at<br>
&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt; &gt;<br>
&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt; &gt;<br>
&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt; &gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Unpaid intern in BillsBasement at noware dot com<br>
&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<br>
&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/b188c2b1/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/b188c2b1/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 15<br>
&gt; Date: Tue, 9 Jul 2013 08:46:33 -0700 (PDT)<br>
&gt; From: Ruff &lt;<a href="mailto:albin.nilsson@gmail.com" target="_blank">albin.nilsson@gmail.com</a>&gt;<br>
&gt; Subject: [vtkusers] My point cloud data won&#39;t display in the renderer.<br>
&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; Message-ID: &lt;<a href="mailto:1373384793963-5721844.post@n5.nabble.com" target="_blank">1373384793963-5721844.post@n5.nabble.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;<br>
&gt; All i get is an empty renderWindow. I get no errors, but no data is<br>
&gt; rendered<br>
&gt; either. What am I doing wrong?<br>
&gt;<br>
&gt; What I do is pretty much this:<br>
&gt;<br>
&gt; AtomGrid=vtk.vtkUnstructuredGrid()<br>
&gt; AtomGrid.SetPoints(    vtkPoints with [index,x,y,z]    )<br>
&gt; AtomGrid.GetPointData().SetScalars(    vtkFloatArray with [index, scalar]<br>
&gt; )<br>
&gt;<br>
&gt; volMapper = vtk.vtkUnstructuredGridVolumeRayCastMapper()<br>
&gt; volMapper.SetBlendModeToComposite()<br>
&gt; volMapper.SetInput(AtomGrid)<br>
&gt;<br>
&gt;<br>
&gt; I tried volMapper.SetScalarModeToUsePointFieldData(), but then it claims<br>
&gt; that I have no scalar values to use(!!)<br>
&gt;<br>
&gt; (I cheated before, and was satisfied using ImageData for this, but now I<br>
&gt; really need to get this to work with UnstructuredGrid)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html" target="_blank">http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html</a><br>




&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; vtkusers mailing list<br>
&gt; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
&gt; End of vtkusers Digest, Vol 111, Issue 16<br>
&gt; *****************************************<br>
&gt;<br>
<br>
<br>
<br>
--<br>
*Best  Regards<br>
Rahul Indoria<br>
Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212" target="_blank">+49-157-35652212</a>*<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/ce46c409/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/ce46c409/attachment-0001.htm</a>&gt;<br>




<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 9 Jul 2013 15:00:16 -0400<br>
From: Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] vtkusers Digest, Vol 111, Issue 16<br>
To: rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>&gt;<br>
Cc: &quot;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;CADZJ4hMNYM4Rp7Fn0Kt+yvxbje_3eeD+F0-=<a href="mailto:Ti%2Ba4JGRBQp5Yw@mail.gmail.com" target="_blank">Ti+a4JGRBQp5Yw@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
The points and cells are generated in the for loops.<br>
<br>
<br>
<br>
On Tue, Jul 9, 2013 at 2:43 PM, rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>&gt;wrote:<br>
<br>
&gt; Hi,<br>
&gt;    Can you explain me some portion of the code of this example (<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation</a>)?<br>
&gt;<br>
&gt; i need to ask the line by line documentation of this function, how these<br>
&gt; points and surface is formed?<br>
&gt;<br>
&gt;<br>
&gt; vtkSmartPointer&lt;vtkPolyData&gt; SweepLine (vtkPolyData *line,<br>
&gt;                                         double direction[3],<br>
&gt;                                         double distance,<br>
&gt;                                         unsigned int cols)<br>
&gt;<br>
&gt; {<br>
&gt;<br>
&gt; unsigned int rows = line-&gt;GetNumberOfPoints();<br>
&gt;<br>
&gt;   double spacing = distance / cols;<br>
&gt;   vtkSmartPointer&lt;vtkPolyData&gt; surface =<br>
&gt;     vtkSmartPointer&lt;vtkPolyData&gt;::New();<br>
&gt;<br>
&gt;   // Generate the points<br>
&gt;   cols++; // why this statement ?<br>
&gt;   unsigned int numberOfPoints = rows * cols; // how these number points are generated<br>
&gt;   unsigned int numberOfPolys = (rows - 1) * (cols - 1); // what is this???<br>
&gt;<br>
&gt;<br>
&gt; vtkSmartPointer&lt;vtkPoints&gt; points =<br>
&gt;     vtkSmartPointer&lt;vtkPoints&gt;::New();<br>
&gt;   points-&gt;Allocate(numberOfPoints);<br>
&gt;   vtkSmartPointer&lt;vtkCellArray&gt; polys =<br>
&gt;     vtkSmartPointer&lt;vtkCellArray&gt;::New();<br>
&gt;   polys-&gt;Allocate(numberOfPolys*4);<br>
&gt;<br>
&gt;   double x[3];<br>
&gt;   unsigned int cnt = 0;<br>
&gt;   for (unsigned int row = 0; row &lt; rows; row++)<br>
&gt;     {<br>
&gt;       for (unsigned int col = 0; col &lt; cols; col++)<br>
&gt;         {<br>
&gt;           double p[3];<br>
&gt;           line-&gt;GetPoint(row, p);<br>
&gt;           x[0] = p[0] + direction[0] * col * spacing;<br>
&gt;           x[1] = p[1] + direction[1] * col * spacing;<br>
&gt;           x[2] = p[2] + direction[2] * col * spacing;<br>
&gt;           points-&gt;InsertPoint(cnt++, x);<br>
&gt;         }<br>
&gt;     }<br>
&gt;   // Generate the quads<br>
&gt;   vtkIdType pts[4];<br>
&gt;   for (unsigned int row = 0; row &lt; rows - 1; row++)<br>
&gt;     {<br>
&gt;       for (unsigned int col = 0; col &lt; cols - 1; col++)<br>
&gt;         {<br>
&gt;           pts[0] = col + row * (cols);<br>
&gt;           pts[1] = pts[0] + 1;<br>
&gt;           pts[2] = pts[0] + cols + 1;<br>
&gt;           pts[3] = pts[0] + cols;<br>
&gt;           polys-&gt;InsertNextCell(4,pts);<br>
&gt;         }<br>
&gt;     }<br>
&gt;   surface-&gt;SetPoints(points);<br>
&gt;   surface-&gt;SetPolys(polys);<br>
&gt;<br>
&gt;   return surface;}<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; please reply as soon as possible<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 9, 2013 at 6:00 PM, &lt;<a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Send vtkusers mailing list submissions to<br>
&gt;&gt;         <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt;&gt;<br>
&gt;&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;&gt;         <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt; or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt;&gt;         <a href="mailto:vtkusers-request@vtk.org" target="_blank">vtkusers-request@vtk.org</a><br>
&gt;&gt;<br>
&gt;&gt; You can reach the person managing the list at<br>
&gt;&gt;         <a href="mailto:vtkusers-owner@vtk.org" target="_blank">vtkusers-owner@vtk.org</a><br>
&gt;&gt;<br>
&gt;&gt; When replying, please edit your Subject line so it is more specific<br>
&gt;&gt; than &quot;Re: Contents of vtkusers digest...&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Today&#39;s Topics:<br>
&gt;&gt;<br>
&gt;&gt;    1. Re: Vtk 6.0 dotnet (David Cole)<br>
&gt;&gt;    2. Re: Regarding example VTKimagereslicemapper (rahul indoria)<br>
&gt;&gt;    3. FindCell method of vtkCellLocator (shinpei)<br>
&gt;&gt;    4. Re: FindCell method of vtkCellLocator (Alex Malyushytskyy)<br>
&gt;&gt;    5. VTK Stereo Rendering (mailagentrus)<br>
&gt;&gt;    6. [vtkUsers] About Different RenderWindowInteractor (hongsongyang)<br>
&gt;&gt;    7. using vtkGL2PSExporter in python [ under pythonXY() ]<br>
&gt;&gt;       (Gideon Valch)<br>
&gt;&gt;    8. Re: Help with image planes example (Ruff)<br>
&gt;&gt;    9. adding texture to a wavefront .obj  file in vtk (Umer Rafi)<br>
&gt;&gt;   10. Unexpected actor orientation results (divya)<br>
&gt;&gt;   11. Re: FindCell method of vtkCellLocator (shinpei)<br>
&gt;&gt;   12. VTK application running on Linux loads VNC server (Haroon Showgan)<br>
&gt;&gt;   13. .RAW file (Massinissa Bandou)<br>
&gt;&gt;   14. Re: .RAW file (Bill Lorensen)<br>
&gt;&gt;   15. My point cloud data won&#39;t display in the renderer. (Ruff)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ----------------------------------------------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 1<br>
&gt;&gt; Date: Mon, 8 Jul 2013 16:21:52 +0000<br>
&gt;&gt; From: David Cole &lt;<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>&gt;<br>
&gt;&gt; Subject: Re: [vtkusers] Vtk 6.0 dotnet<br>
&gt;&gt; To: &quot; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a> &quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;, Serge Lalonde<br>
&gt;&gt;         &lt;<a href="mailto:serge@infolytica.com" target="_blank">serge@infolytica.com</a>&gt;<br>
&gt;&gt; Message-ID: &lt;<a href="mailto:20130708165306.6B0E66504F@public.kitware.com" target="_blank">20130708165306.6B0E66504F@public.kitware.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
&gt;&gt;<br>
&gt;&gt; Thanks, Serge. It *is* too bad that the kickstarter approach did not<br>
&gt;&gt; yield a funded project this time around. Perhaps later, another one will be<br>
&gt;&gt; successful.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Alex, you wrote ?as for me I would trust more in the results of free<br>
&gt;&gt; development than in results of the projects developed using such financing.?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; In response, I would simply point out the results of free development are<br>
&gt;&gt; that ActiViz is presently ?stuck? on the VTK 5.8 version. And it was only<br>
&gt;&gt; ?free as in beer? to those of you who didn?t pay for it.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; It?s also too bad that nobody else has stepped up and said, ?hey, how can<br>
&gt;&gt; I contribute and help to make this happen?? (Aside from the 20 kickstarter<br>
&gt;&gt; project backers [1] -- thanks again, guys...)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; For those willing to contribute effort and manpower to the problem,<br>
&gt;&gt; rather than money, go for it. VTK and ActiViz are both open source, and may<br>
&gt;&gt; be built and extended by any interested party. I recently abandoned the<br>
&gt;&gt; topic integrating the two [2] due to lack of activity. Anybody who wants<br>
&gt;&gt; to, please feel free to resurrect it, rebase it on current ?master?, and<br>
&gt;&gt; try again. Alternatively, you could simply extend the ActiViz git repo with<br>
&gt;&gt; commits to make it build against an external VTK 5.10 or 6.0 [3].<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; While I am capable and mildly interested in furthering ActiViz .NET, I<br>
&gt;&gt; prefer to spend much of my free time on non-computer related activities<br>
&gt;&gt; these days. I get quite enough compute time just doing my job. But money<br>
&gt;&gt; actually does motivate me... and I would be willing to do the work if paid<br>
&gt;&gt; for it. So, that, plus gauging actual interest level, were my primary<br>
&gt;&gt; motivations for seeking funding via kickstarter.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt;<br>
&gt;&gt; David Cole<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; [1]<br>
&gt;&gt; <a href="http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510/backers" target="_blank">http://www.kickstarter.com/projects/dlrdave/activiz-net-installers-featuring-vtk-510/backers</a><br>




&gt;&gt;<br>
&gt;&gt; [2] <a href="http://review.source.kitware.com/#/t/1615/" target="_blank">http://review.source.kitware.com/#/t/1615/</a><br>
&gt;&gt;<br>
&gt;&gt; [3] <a href="http://public.kitware.com/gitweb?p=activizdotnet.git" target="_blank">http://public.kitware.com/gitweb?p=activizdotnet.git</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; P.S. ---<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I would also like to point out that nowadays, you can simply build a<br>
&gt;&gt; managed-C++ project with VS 2012, and ?just link for free? to the native<br>
&gt;&gt; VTK C++ libraries. That doesn?t help folks using other .NET languages, but<br>
&gt;&gt; it is a nice feature of the modern C++ compiler from MS that you can link<br>
&gt;&gt; in both managed and un-managed code together. If you are starting a new<br>
&gt;&gt; Windows Forms application, consider using managed C++ as your language.<br>
&gt;&gt; -------------- next part --------------<br>
&gt;&gt; An HTML attachment was scrubbed...<br>
&gt;&gt; URL: &lt;<br>
&gt;&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/0cc105c5/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/0cc105c5/attachment-0001.htm</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 2<br>
&gt;&gt; Date: Mon, 8 Jul 2013 20:12:06 +0200<br>
&gt;&gt; From: rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>&gt;<br>
&gt;&gt; Subject: Re: [vtkusers] Regarding example VTKimagereslicemapper<br>
&gt;&gt; To: David Doria &lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;, &quot;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&quot;<br>
&gt;&gt;         &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt;&gt; Message-ID:<br>
&gt;&gt;         &lt;CAGQ+16KkyGkkjmWQ86Xh5=<br>
&gt;&gt; <a href="mailto:VfUnbABFEquKOdKEDKfm9_F1eyaA@mail.gmail.com" target="_blank">VfUnbABFEquKOdKEDKfm9_F1eyaA@mail.gmail.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;     Could you please tell me, what are port index in VTK functions?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jul 8, 2013 at 5:51 PM, David Doria &lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; In the future, please keep the conversation on the mailing list so that<br>
&gt;&gt; &gt; everyone can participate/benefit from the discussion.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I believe what you&#39;re seeing is a contrast adjustment mechanism (called<br>
&gt;&gt; &gt; &quot;window level events&quot; -<br>
&gt;&gt; &gt;<br>
&gt;&gt; <a href="http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html#details" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html#details</a><br>
&gt;&gt; &gt; ).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; David<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Mon, Jul 8, 2013 at 11:48 AM, rahul indoria &lt;<a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a><br>
&gt;&gt; &gt;wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; Hi David,<br>
&gt;&gt; &gt;&gt;                I have one more question regarding this example, in the<br>
&gt;&gt; &gt;&gt; output of this example(<br>
&gt;&gt; &gt;&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper</a>), why<br>
&gt;&gt; &gt;&gt; we are getting different colors of the image, when i am left-clicking<br>
&gt;&gt; on<br>
&gt;&gt; &gt;&gt; the image and moving mouse up and down?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Looking forward your reply soon.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; rahul indoria<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Mon, Jul 8, 2013 at 3:22 PM, David Doria &lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; On Mon, Jul 8, 2013 at 9:05 AM, rahul indoria &lt;<br>
&gt;&gt; <a href="mailto:rahulindoria5@gmail.com" target="_blank">rahulindoria5@gmail.com</a>&gt;wrote:<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; Hi,<br>
&gt;&gt; &gt;&gt;&gt;&gt;    I was modifying this example:<br>
&gt;&gt; &gt;&gt;&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSliceMapper</a><br>
&gt;&gt; &gt;&gt;&gt;&gt;  in this example, i am deleting the object vtkImageSlice, and when i<br>
&gt;&gt; am<br>
&gt;&gt; &gt;&gt;&gt;&gt; putting the object &quot;imageSliceMapper&quot; i getting an error?<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; As vtkimageslice class used to represent an image in a 3D scene, i<br>
&gt;&gt; &gt;&gt;&gt;&gt; don`t want to display this in 3D scene, just want to display on the<br>
&gt;&gt; screen<br>
&gt;&gt; &gt;&gt;&gt;&gt; that`s why i am deleting this class, so why i am getting this error?<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; I modified this code like this :<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; What do you want to do if not display the image? The problem is that<br>
&gt;&gt; you<br>
&gt;&gt; &gt;&gt;&gt; can&#39;t call AddViewProp on a mapper - it has to be a vtkProp subclass<br>
&gt;&gt; &gt;&gt;&gt; (like the vtkImageSlice was). In the future, please include the exact<br>
&gt;&gt; &gt;&gt;&gt; error that you are getting.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; David<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; *Best  Regards<br>
&gt;&gt; &gt;&gt; Rahul Indoria<br>
&gt;&gt; &gt;&gt; Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212" target="_blank">+49-157-35652212</a>*<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; *Best  Regards<br>
&gt;&gt; Rahul Indoria<br>
&gt;&gt; Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212" target="_blank">+49-157-35652212</a>*<br>
&gt;&gt; -------------- next part --------------<br>
&gt;&gt; An HTML attachment was scrubbed...<br>
&gt;&gt; URL: &lt;<br>
&gt;&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/8de03097/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/8de03097/attachment-0001.htm</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 3<br>
&gt;&gt; Date: Mon, 8 Jul 2013 15:44:56 -0700 (PDT)<br>
&gt;&gt; From: shinpei &lt;<a href="mailto:noro_shinpei@web.de" target="_blank">noro_shinpei@web.de</a>&gt;<br>
&gt;&gt; Subject: [vtkusers] FindCell method of vtkCellLocator<br>
&gt;&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt;&gt; Message-ID: &lt;<a href="mailto:1373323496433-5721831.post@n5.nabble.com" target="_blank">1373323496433-5721831.post@n5.nabble.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I have two triangle cells in my vtkCellLocator and I create a little bb<br>
&gt;&gt; around a point of one triangle (see picture). Now I use FindCell(bb,<br>
&gt;&gt; idList)<br>
&gt;&gt; and I should get one id, but I get two. Is this a bug, or must I change<br>
&gt;&gt; something?<br>
&gt;&gt;<br>
&gt;&gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png</a>&gt;<br>
&gt;&gt; - two trinagles (red)<br>
&gt;&gt; - bb (blue)<br>
&gt;&gt;<br>
&gt;&gt; My code:<br>
&gt;&gt;<br>
&gt;&gt;     for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints(); ++ptId)<br>
&gt;&gt;     {<br>
&gt;&gt;         bounds[0] = trianglePoint[0] - 0.01;<br>
&gt;&gt;         bounds[1] = trianglePoint[0] + 0.01;<br>
&gt;&gt;         bounds[2] = trianglePoint[1] - 0.01;<br>
&gt;&gt;         bounds[3] = trianglePoint[1] + 0.01;<br>
&gt;&gt;         bounds[4] = trianglePoint[2] - 0.01;<br>
&gt;&gt;         bounds[5] = trianglePoint[2] + 0.01;<br>
&gt;&gt;<br>
&gt;&gt;         cellLocator-&gt;FindCellsWithinBounds(bounds, foundCells);<br>
&gt;&gt;<br>
&gt;&gt;         int size = foundCells-&gt;GetNumberOfIds(); // is always two<br>
&gt;&gt;     }<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Thx<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html</a><br>
&gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 4<br>
&gt;&gt; Date: Mon, 8 Jul 2013 19:00:25 -0700<br>
&gt;&gt; From: Alex Malyushytskyy &lt;<a href="mailto:alexmalvtk@gmail.com" target="_blank">alexmalvtk@gmail.com</a>&gt;<br>
&gt;&gt; Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
&gt;&gt; To: shinpei &lt;<a href="mailto:noro_shinpei@web.de" target="_blank">noro_shinpei@web.de</a>&gt;<br>
&gt;&gt; Cc: VTK &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt;&gt; Message-ID:<br>
&gt;&gt;         &lt;<br>
&gt;&gt; <a href="mailto:CAHR9pJ0m4dYdghFRjZ5Y6YffT23dv3Q%2BScsu4JEK8yMLQZ7rbg@mail.gmail.com" target="_blank">CAHR9pJ0m4dYdghFRjZ5Y6YffT23dv3Q+Scsu4JEK8yMLQZ7rbg@mail.gmail.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;&gt;<br>
&gt;&gt; It is not clear that attached picture corresponds to your claims.<br>
&gt;&gt; There is no visible  relation between trianglePoint and<br>
&gt;&gt; geometry-&gt;GetNumberOfPoints().<br>
&gt;&gt; Also  for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints();<br>
&gt;&gt; ++ptId)<br>
&gt;&gt; loop does not make any sense cause nothing changes in the loop.<br>
&gt;&gt;<br>
&gt;&gt; So I guess your trianglePoint is not what you think it is.<br>
&gt;&gt; For example if this point is shared by 2 triangles you will have the same<br>
&gt;&gt; effect.<br>
&gt;&gt; Another possible problem might be absolute value 0.1 used.<br>
&gt;&gt; For example your triangle may have size smaller than it, which will be a<br>
&gt;&gt; source of such effect too.<br>
&gt;&gt;<br>
&gt;&gt; Your example is not complete , you could create much better example<br>
&gt;&gt; initializing all available variables so the behavior can be reproduced.<br>
&gt;&gt;<br>
&gt;&gt; Alex<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jul 8, 2013 at 3:44 PM, shinpei &lt;<a href="mailto:noro_shinpei@web.de" target="_blank">noro_shinpei@web.de</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I have two triangle cells in my vtkCellLocator and I create a little bb<br>
&gt;&gt; &gt; around a point of one triangle (see picture). Now I use FindCell(bb,<br>
&gt;&gt; &gt; idList)<br>
&gt;&gt; &gt; and I should get one id, but I get two. Is this a bug, or must I change<br>
&gt;&gt; &gt; something?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721831/Unbenannt.png</a>&gt;<br>
&gt;&gt; &gt; - two trinagles (red)<br>
&gt;&gt; &gt; - bb (blue)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; My code:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;     for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints();<br>
&gt;&gt; ++ptId)<br>
&gt;&gt; &gt;     {<br>
&gt;&gt; &gt;         bounds[0] = trianglePoint[0] - 0.01;<br>
&gt;&gt; &gt;         bounds[1] = trianglePoint[0] + 0.01;<br>
&gt;&gt; &gt;         bounds[2] = trianglePoint[1] - 0.01;<br>
&gt;&gt; &gt;         bounds[3] = trianglePoint[1] + 0.01;<br>
&gt;&gt; &gt;         bounds[4] = trianglePoint[2] - 0.01;<br>
&gt;&gt; &gt;         bounds[5] = trianglePoint[2] + 0.01;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;         cellLocator-&gt;FindCellsWithinBounds(bounds, foundCells);<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;         int size = foundCells-&gt;GetNumberOfIds(); // is always two<br>
&gt;&gt; &gt;     }<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thx<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; View this message in context:<br>
&gt;&gt; &gt;<br>
&gt;&gt; <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831.html</a><br>
&gt;&gt; &gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&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;<br>
&gt;&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; -------------- next part --------------<br>
&gt;&gt; An HTML attachment was scrubbed...<br>
&gt;&gt; URL: &lt;<br>
&gt;&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/533f4d72/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/533f4d72/attachment-0001.htm</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 5<br>
&gt;&gt; Date: Mon, 8 Jul 2013 22:09:00 -0700 (PDT)<br>
&gt;&gt; From: mailagentrus &lt;<a href="mailto:mailagentrus@mail.ru" target="_blank">mailagentrus@mail.ru</a>&gt;<br>
&gt;&gt; Subject: [vtkusers] VTK Stereo Rendering<br>
&gt;&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt;&gt; Message-ID: &lt;<a href="mailto:1373346540408-5721833.post@n5.nabble.com" target="_blank">1373346540408-5721833.post@n5.nabble.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;&gt;<br>
&gt;&gt; Hi! I want to add a stereo mode to my program. Program wil be show pairs<br>
&gt;&gt; of<br>
&gt;&gt; images image in stereo mode (with Nvidia 3d vision). I set up NVidia Qudro<br>
&gt;&gt; 410 and saw stereo mode with Polydata object with using Paraview.<br>
&gt;&gt; But, when I try to make own program i see inly the firs pair images in<br>
&gt;&gt; stereo mode, after that image in right eye does not update... Updates inly<br>
&gt;&gt; the left eye image.<br>
&gt;&gt; Help me, please!<br>
&gt;&gt;<br>
&gt;&gt; Code:<br>
&gt;&gt;<br>
&gt;&gt; #include &lt;vtkPolyDataReader.h&gt;<br>
&gt;&gt; #include &lt;vtkSmartPointer.h&gt;<br>
&gt;&gt; #include &lt;vtkDataSetMapper.h&gt;<br>
&gt;&gt; #include &lt;vtkActor.h&gt;<br>
&gt;&gt; #include &lt;vtkRenderWindow.h&gt;<br>
&gt;&gt; #include &lt;vtkRenderer.h&gt;<br>
&gt;&gt; #include &lt;vtkRenderWindowInteractor.h&gt;<br>
&gt;&gt; #include &lt;vtkCamera.h&gt;<br>
&gt;&gt; #include &quot;vtkCommand.h&quot;<br>
&gt;&gt; #include &quot;vtkImageData.h&quot;<br>
&gt;&gt; #include &lt;vtkBMPReader.h&gt;<br>
&gt;&gt; #include &lt;vtkImageViewer2.h&gt;<br>
&gt;&gt; #include &lt;vtkImageActor.h&gt;<br>
&gt;&gt;<br>
&gt;&gt; vtkSmartPointer&lt;vtkBMPReader&gt; readerR;<br>
&gt;&gt; vtkSmartPointer&lt;vtkBMPReader&gt; readerL;<br>
&gt;&gt; vtkSmartPointer&lt;vtkImageViewer2&gt; imageViewer;<br>
&gt;&gt;<br>
&gt;&gt; class vtkTimerCallback : public vtkCommand<br>
&gt;&gt; {<br>
&gt;&gt;   public:<br>
&gt;&gt;     static vtkTimerCallback *New()<br>
&gt;&gt;     {<br>
&gt;&gt;       vtkTimerCallback *cb = new vtkTimerCallback;<br>
&gt;&gt;       cb-&gt;TimerCount = 0;<br>
&gt;&gt;       return cb;<br>
&gt;&gt;     }<br>
&gt;&gt;<br>
&gt;&gt;     virtual void Execute(vtkObject *vtkNotUsed(caller), unsigned long<br>
&gt;&gt; eventId,<br>
&gt;&gt;                          void *vtkNotUsed(callData))<br>
&gt;&gt;     {<br>
&gt;&gt;       if (vtkCommand::TimerEvent == eventId)<br>
&gt;&gt;         {<br>
&gt;&gt;<br>
&gt;&gt; // for example name for left eye image is<br>
&gt;&gt;                 readerL-&gt;SetFileName ( &quot;D:/1234/-40.bmp&quot;);<br>
&gt;&gt;                 readerL-&gt;Update();<br>
&gt;&gt;<br>
&gt;&gt; // for example name for right eye image is<br>
&gt;&gt;                 readerR-&gt;SetFileName ( &quot;D:/1234/40.bmp&quot;);<br>
&gt;&gt;                 readerR-&gt;Update();<br>
&gt;&gt;<br>
&gt;&gt;                 imageViewer-&gt;SetInput(readerL-&gt;GetOutput());<br>
&gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;SetStereoTypeToLeft();<br>
&gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt;&gt;   imageViewer-&gt;GetRenderer()-&gt;ResetCamera();<br>
&gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt;&gt;<br>
&gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;StereoUpdate();<br>
&gt;&gt;<br>
&gt;&gt;                 imageViewer-&gt;SetInput(readerL-&gt;GetOutput());<br>
&gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;SetStereoTypeToRight();<br>
&gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt;&gt;   imageViewer-&gt;GetRenderer()-&gt;ResetCamera();<br>
&gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt;&gt;<br>
&gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;StereoUpdate();<br>
&gt;&gt;<br>
&gt;&gt;         ++this-&gt;TimerCount;<br>
&gt;&gt;         }<br>
&gt;&gt;         cout &lt;&lt; this-&gt;TimerCount &lt;&lt; endl;<br>
&gt;&gt;     }<br>
&gt;&gt;<br>
&gt;&gt;   private:<br>
&gt;&gt;     int TimerCount;<br>
&gt;&gt;<br>
&gt;&gt; };<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; int main ( int argc, char *argv[] )<br>
&gt;&gt; {<br>
&gt;&gt;   //Read the image<br>
&gt;&gt;    readerL =<br>
&gt;&gt;     vtkSmartPointer&lt;vtkBMPReader&gt;::New();<br>
&gt;&gt;   readerL-&gt;SetFileName ( &quot;D:/1234/-5.bmp&quot;);<br>
&gt;&gt;   readerL-&gt;Update();<br>
&gt;&gt;<br>
&gt;&gt;    readerR =<br>
&gt;&gt;     vtkSmartPointer&lt;vtkBMPReader&gt;::New();<br>
&gt;&gt;   readerR-&gt;SetFileName ( &quot;D:/1234/5.bmp&quot;);<br>
&gt;&gt;   readerR-&gt;Update();<br>
&gt;&gt;<br>
&gt;&gt;   // Visualize<br>
&gt;&gt;   imageViewer =<br>
&gt;&gt;     vtkSmartPointer&lt;vtkImageViewer2&gt;::New();<br>
&gt;&gt;<br>
&gt;&gt;    vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; renderWindowInteractor =<br>
&gt;&gt;     vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>
&gt;&gt;   imageViewer-&gt;SetupInteractor(renderWindowInteractor);<br>
&gt;&gt;<br>
&gt;&gt;     imageViewer-&gt;GetRenderWindow()-&gt;SetSize( 800, 600 );<br>
&gt;&gt;<br>
&gt;&gt;   imageViewer-&gt;GetRenderWindow()-&gt;StereoCapableWindowOn();<br>
&gt;&gt;   imageViewer-&gt;GetRenderWindow()-&gt;SetStereoTypeToCrystalEyes();<br>
&gt;&gt;   imageViewer-&gt;GetRenderWindow()-&gt;SetStereoRender(1);<br>
&gt;&gt;   imageViewer-&gt;GetRenderWindow()-&gt;StereoUpdate();<br>
&gt;&gt;<br>
&gt;&gt;  renderWindowInteractor-&gt;Initialize();<br>
&gt;&gt;<br>
&gt;&gt;   imageViewer-&gt;SetInput(readerBase-&gt;GetOutput());<br>
&gt;&gt;   imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt;&gt;   imageViewer-&gt;GetRenderer()-&gt;ResetCamera();<br>
&gt;&gt;                 imageViewer-&gt;GetRenderWindow()-&gt;Render();<br>
&gt;&gt;<br>
&gt;&gt;    // Sign up to receive TimerEvent<br>
&gt;&gt;   vtkSmartPointer&lt;vtkTimerCallback&gt; cb =<br>
&gt;&gt;     vtkSmartPointer&lt;vtkTimerCallback&gt;::New();<br>
&gt;&gt;   renderWindowInteractor-&gt;AddObserver(vtkCommand::TimerEvent, cb);<br>
&gt;&gt;<br>
&gt;&gt;   int timerId = renderWindowInteractor-&gt;CreateRepeatingTimer(100);<br>
&gt;&gt;   std::cout &lt;&lt; &quot;timerId: &quot; &lt;&lt; timerId &lt;&lt; std::endl;<br>
&gt;&gt;<br>
&gt;&gt;   renderWindowInteractor-&gt;Start();<br>
&gt;&gt;<br>
&gt;&gt;    return EXIT_SUCCESS;<br>
&gt;&gt; }<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://vtk.1045678.n5.nabble.com/VTK-Stereo-Rendering-tp5721833.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Stereo-Rendering-tp5721833.html</a><br>
&gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 6<br>
&gt;&gt; Date: Tue, 9 Jul 2013 14:08:36 +0800<br>
&gt;&gt; From: &quot;hongsongyang&quot; &lt;<a href="mailto:hongsongyang@163.com" target="_blank">hongsongyang@163.com</a>&gt;<br>
&gt;&gt; Subject: [vtkusers] [vtkUsers] About Different RenderWindowInteractor<br>
&gt;&gt; To: &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt;&gt; Message-ID: &lt;D36F8CD489D643279CDEF9B7802D2D8F@WlfPC&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
&gt;&gt;<br>
&gt;&gt; Dear All:<br>
&gt;&gt;<br>
&gt;&gt;      I have several renders (e.g 4 render), and we could use SetViewport<br>
&gt;&gt; to<br>
&gt;&gt; display all of them in one RenderWindow.<br>
&gt;&gt;<br>
&gt;&gt; My question is that could I set different interactor for each of the<br>
&gt;&gt; render?<br>
&gt;&gt;<br>
&gt;&gt; For example, for render1, I only need zoom and ww/wl operation, but for<br>
&gt;&gt; render2, I need zoom, pan and rotate operation.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Thanks a lot.<br>
&gt;&gt;<br>
&gt;&gt; Hongsongyang<br>
&gt;&gt;<br>
&gt;&gt; -------------- next part --------------<br>
&gt;&gt; An HTML attachment was scrubbed...<br>
&gt;&gt; URL: &lt;<br>
&gt;&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/73d6e3a8/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/73d6e3a8/attachment-0001.htm</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 7<br>
&gt;&gt; Date: Mon, 8 Jul 2013 23:34:35 -0700<br>
&gt;&gt; From: Gideon Valch &lt;<a href="mailto:gvalch1237@gmail.com" target="_blank">gvalch1237@gmail.com</a>&gt;<br>
&gt;&gt; Subject: [vtkusers] using vtkGL2PSExporter in python [ under<br>
&gt;&gt;         pythonXY() ]<br>
&gt;&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt;&gt; Message-ID:<br>
&gt;&gt;         &lt;<br>
&gt;&gt; <a href="mailto:CAEEGk3YCKrV6gQCtRoPXZZQXQ%2BQr7J%2BKPgK%2BzLAAeF2e6%2BKpgw@mail.gmail.com" target="_blank">CAEEGk3YCKrV6gQCtRoPXZZQXQ+Qr7J+KPgK+zLAAeF2e6+Kpgw@mail.gmail.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I use pythonxy() as my platform for python supported vtk.     Currently,<br>
&gt;&gt; I&#39;m trying to export a vtk render window to post script using the sample<br>
&gt;&gt; code (at bottom) but I&#39;m getting an error (see below).   I suspect this<br>
&gt;&gt; relates to how pythonxy() is compiled.  Can anyone suggest a workaround?<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; GV<br>
&gt;&gt;<br>
&gt;&gt; exporter = vtk.vtkGL2PSExporter()<br>
&gt;&gt; AttributeError: &#39;module&#39; object has no attribute &#39;vtkGL2PSExporter&#39;<br>
&gt;&gt;<br>
&gt;&gt; ----------------------------<br>
&gt;&gt;<br>
&gt;&gt; prefix=&quot;c:\\temp\\foo444&quot;<br>
&gt;&gt; exporter = vtk.vtkGL2PSExporter()<br>
&gt;&gt; exporter.SetFilePrefix(prefix)<br>
&gt;&gt; exporter.SetFileFormatToSVG()<br>
&gt;&gt; exporter.SetRenderWindow(renWin)<br>
&gt;&gt; exporter.CompressOff()<br>
&gt;&gt; exporter.SetSortToOff()<br>
&gt;&gt; #exporter.DrawBackgroundOn()<br>
&gt;&gt; #exporter.Write3DPropsAsRasterImageOn()<br>
&gt;&gt; exporter.Write()<br>
&gt;&gt; -------------- next part --------------<br>
&gt;&gt; An HTML attachment was scrubbed...<br>
&gt;&gt; URL: &lt;<br>
&gt;&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130708/2dfee622/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130708/2dfee622/attachment-0001.htm</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 8<br>
&gt;&gt; Date: Tue, 9 Jul 2013 00:44:38 -0700 (PDT)<br>
&gt;&gt; From: Ruff &lt;<a href="mailto:albin.nilsson@gmail.com" target="_blank">albin.nilsson@gmail.com</a>&gt;<br>
&gt;&gt; Subject: Re: [vtkusers] Help with image planes example<br>
&gt;&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt;&gt; Message-ID: &lt;<a href="mailto:1373355878399-5721836.post@n5.nabble.com" target="_blank">1373355878399-5721836.post@n5.nabble.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;&gt;<br>
&gt;&gt; Thank you!<br>
&gt;&gt; The problem is that when I tried with ImageData as input in<br>
&gt;&gt; volume16reader I<br>
&gt;&gt; got the error &quot;Attempt to connect input port index 0 for an algorithm<br>
&gt;&gt; with 0<br>
&gt;&gt; input ports&quot;<br>
&gt;&gt; Using ImageData as input directly to vtkImagePlaneWidget worked fine<br>
&gt;&gt; though,<br>
&gt;&gt; so I guess that solves it.<br>
&gt;&gt; (My VTK-programming right now is mostly trial and error along with trying<br>
&gt;&gt; to<br>
&gt;&gt; understand the different data structures and the pipeline)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://vtk.1045678.n5.nabble.com/Help-with-image-planes-example-tp5721813p5721836.html" target="_blank">http://vtk.1045678.n5.nabble.com/Help-with-image-planes-example-tp5721813p5721836.html</a><br>
&gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 9<br>
&gt;&gt; Date: Tue, 09 Jul 2013 11:23:11 +0200<br>
&gt;&gt; From: Umer Rafi &lt;<a href="mailto:umer.rafi@rwth-aachen.de" target="_blank">umer.rafi@rwth-aachen.de</a>&gt;<br>
&gt;&gt; Subject: [vtkusers] adding texture to a wavefront .obj  file in vtk<br>
&gt;&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt;&gt; Message-ID: &lt;<a href="mailto:fb959ae41b00e3.51dbf29f@rwth-aachen.de" target="_blank">fb959ae41b00e3.51dbf29f@rwth-aachen.de</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; CHARSET=US-ASCII<br>
&gt;&gt;<br>
&gt;&gt; Hello everyone,<br>
&gt;&gt;<br>
&gt;&gt;     I am new to vtk. I am having a wavefront file of a 3d human model.<br>
&gt;&gt; What I want to do is to render it using vtk and apply different textures to<br>
&gt;&gt; different parts of the 3d human model. For example I have a texture image<br>
&gt;&gt; containing a shirt that I want to apply to torso and arms only.  Another<br>
&gt;&gt; one for jeans that I want to apply to legs and thighs only. I will really<br>
&gt;&gt; appreciate if anyone can provide a sample code snippet to get me started.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; thanks in advance.<br>
&gt;&gt;<br>
&gt;&gt; Regards<br>
&gt;&gt; Umer<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 10<br>
&gt;&gt; Date: Tue, 9 Jul 2013 16:53:12 +0530<br>
&gt;&gt; From: &quot;divya&quot; &lt;<a href="mailto:divya@triassicsolutions.com" target="_blank">divya@triassicsolutions.com</a>&gt;<br>
&gt;&gt; Subject: [vtkusers] Unexpected actor orientation results<br>
&gt;&gt; To: &quot;Vtk Users&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt;&gt; Message-ID: &lt;004201ce7c96$b5c358a0$214a09e0$@<a href="http://triassicsolutions.com" target="_blank">triassicsolutions.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Dear vtkUsers,<br>
&gt;&gt;<br>
&gt;&gt; I am trying to find the orientation of an actor while I&#39;m rotating it,<br>
&gt;&gt; the z<br>
&gt;&gt; and y are correct, but the value range for  the x axis is [-90, 90],<br>
&gt;&gt; whereas<br>
&gt;&gt; the value range for  z and y axis is [-180, 180].<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Also the rotation doesn&#39;t happen in the chosen axis, for example when I<br>
&gt;&gt; chose to rotate the actor by 15 degrees on y-axis, the value of the z-axis<br>
&gt;&gt; increases.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; -------------- next part --------------<br>
&gt;&gt; An HTML attachment was scrubbed...<br>
&gt;&gt; URL: &lt;<br>
&gt;&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0001.htm</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; -------------- next part --------------<br>
&gt;&gt; A non-text attachment was scrubbed...<br>
&gt;&gt; Name: not available<br>
&gt;&gt; Type: image/jpeg<br>
&gt;&gt; Size: 10515 bytes<br>
&gt;&gt; Desc: not available<br>
&gt;&gt; URL: &lt;<br>
&gt;&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0002.jpeg" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0002.jpeg</a><br>




&gt;&gt; &gt;<br>
&gt;&gt; -------------- next part --------------<br>
&gt;&gt; A non-text attachment was scrubbed...<br>
&gt;&gt; Name: not available<br>
&gt;&gt; Type: image/jpeg<br>
&gt;&gt; Size: 13048 bytes<br>
&gt;&gt; Desc: not available<br>
&gt;&gt; URL: &lt;<br>
&gt;&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0003.jpeg" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/3543ac30/attachment-0003.jpeg</a><br>




&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 11<br>
&gt;&gt; Date: Tue, 9 Jul 2013 05:23:41 -0700 (PDT)<br>
&gt;&gt; From: shinpei &lt;<a href="mailto:noro_shinpei@web.de" target="_blank">noro_shinpei@web.de</a>&gt;<br>
&gt;&gt; Subject: Re: [vtkusers] FindCell method of vtkCellLocator<br>
&gt;&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt;&gt; Message-ID: &lt;<a href="mailto:1373372621955-5721840.post@n5.nabble.com" target="_blank">1373372621955-5721840.post@n5.nabble.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;&gt;<br>
&gt;&gt; Sry... I thought it would be clear what I mean.<br>
&gt;&gt;<br>
&gt;&gt; The geometry contains two triangles:<br>
&gt;&gt; Points are:<br>
&gt;&gt; (0 0 0)<br>
&gt;&gt; (0 10 0)<br>
&gt;&gt; (10 0 0)<br>
&gt;&gt; (10 10 0)<br>
&gt;&gt;<br>
&gt;&gt; with connection:<br>
&gt;&gt; (0 1 2)<br>
&gt;&gt; (1 2 3)<br>
&gt;&gt;<br>
&gt;&gt;      for (vtkIdType ptId = 0; ptId &lt; geometry-&gt;GetNumberOfPoints();<br>
&gt;&gt; ++ptId)<br>
&gt;&gt;     {<br>
&gt;&gt;         geometry-&gt;getPoints()-&gt;GetPoint(ptId, trianglePoint);<br>
&gt;&gt;<br>
&gt;&gt;         bounds[0] = trianglePoint[0] - 0.01;<br>
&gt;&gt;         bounds[1] = trianglePoint[0] + 0.01;<br>
&gt;&gt;         bounds[2] = trianglePoint[1] - 0.01;<br>
&gt;&gt;         bounds[3] = trianglePoint[1] + 0.01;<br>
&gt;&gt;         bounds[4] = trianglePoint[2] - 0.01;<br>
&gt;&gt;         bounds[5] = trianglePoint[2] + 0.01;<br>
&gt;&gt;<br>
&gt;&gt;         cellLocator-&gt;FindCellsWithinBounds(bounds, foundCells);<br>
&gt;&gt;<br>
&gt;&gt;         int size = foundCells-&gt;GetNumberOfIds(); // is always two<br>
&gt;&gt;     }<br>
&gt;&gt;<br>
&gt;&gt; The trianglePoint is e.g. (0 0 0) (first iteration of the loop) so I<br>
&gt;&gt; should<br>
&gt;&gt; get only one triangle, but I get always two triangles. The bb is small<br>
&gt;&gt; enough and there is a point which correspons to only one triangle.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721840.html" target="_blank">http://vtk.1045678.n5.nabble.com/FindCell-method-of-vtkCellLocator-tp5721831p5721840.html</a><br>




&gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 12<br>
&gt;&gt; Date: Tue, 9 Jul 2013 15:43:23 +0300<br>
&gt;&gt; From: Haroon Showgan &lt;<a href="mailto:haroon.showgan@gmail.com" target="_blank">haroon.showgan@gmail.com</a>&gt;<br>
&gt;&gt; Subject: [vtkusers] VTK application running on Linux loads VNC server<br>
&gt;&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt;&gt; Message-ID:<br>
&gt;&gt;         &lt;CAJ=<br>
&gt;&gt; <a href="mailto:gTgXfT44oBK1Qz5idLBRDt0kdiZuLh0iA%2BmrtAChwR_-Pkw@mail.gmail.com" target="_blank">gTgXfT44oBK1Qz5idLBRDt0kdiZuLh0iA+mrtAChwR_-Pkw@mail.gmail.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m implementing a VTK application for visualizing geometrical 3D objects.<br>
&gt;&gt; Most of the code is written in C++, and I use TCL-TK widgets for the GUI<br>
&gt;&gt; (I<br>
&gt;&gt; use *vtkTkRenderWidget* for the main canvas).<br>
&gt;&gt;<br>
&gt;&gt; Most of my objects are *vtkVoxel* objects inserted into a *<br>
&gt;&gt; vtkUnstructuredGrid*.<br>
&gt;&gt;<br>
&gt;&gt; I run this application on a Linux server and I connect to this server from<br>
&gt;&gt; Windows using VNC. I noticed that when I load a very large data set into<br>
&gt;&gt; the application then the *VNC server* (on the Linux machine) consumes a<br>
&gt;&gt; lot<br>
&gt;&gt; of memory and uses 100% CPU. I didn&#39;t realize that the memory and CPU<br>
&gt;&gt; usages of a VNC server would be affected so much like this.<br>
&gt;&gt;<br>
&gt;&gt;  Note that my VTK application is also consuming a lot of memory and CPU,<br>
&gt;&gt; but what I find strange is that the VNC server is also affected (the<br>
&gt;&gt; process is called *Xvnc_core*).<br>
&gt;&gt;<br>
&gt;&gt; Does anyone know how this is caused and do you have any suggestion how to<br>
&gt;&gt; mitigate the problem?<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; Haroon<br>
&gt;&gt; -------------- next part --------------<br>
&gt;&gt; An HTML attachment was scrubbed...<br>
&gt;&gt; URL: &lt;<br>
&gt;&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/621fefc2/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/621fefc2/attachment-0001.htm</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 13<br>
&gt;&gt; Date: Tue, 9 Jul 2013 07:25:46 -0700 (PDT)<br>
&gt;&gt; From: Massinissa Bandou &lt;Massinissa.Bandou@USherbrooke.ca&gt;<br>
&gt;&gt; Subject: [vtkusers] .RAW file<br>
&gt;&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt;&gt; Message-ID: &lt;<a href="mailto:1373379946181-5721842.post@n5.nabble.com" target="_blank">1373379946181-5721842.post@n5.nabble.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;&gt;<br>
&gt;&gt; Hello everyone,<br>
&gt;&gt;<br>
&gt;&gt; I tried to read a (.raw) file with the following code but it displays a<br>
&gt;&gt; RED<br>
&gt;&gt; CUBE. Here is some information about my file  dataInfo.txt<br>
&gt;&gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt</a>&gt;  . Is there<br>
&gt;&gt; something wrong in my code?<br>
&gt;&gt;<br>
&gt;&gt; thx for your time and help!<br>
&gt;&gt;<br>
&gt;&gt; sorry my file is too large to be send.<br>
&gt;&gt;<br>
&gt;&gt; #include &lt;vtkSmartPointer.h&gt;<br>
&gt;&gt; #include &lt;vtkRenderWindow.h&gt;<br>
&gt;&gt; #include &lt;vtkRenderWindowInteractor.h&gt;<br>
&gt;&gt; #include &lt;vtkRenderer.h&gt;<br>
&gt;&gt; #include &lt;vtkActor&gt;<br>
&gt;&gt; #include &lt;vtkImageReader&gt;<br>
&gt;&gt; #include &lt;vtkDataSetMapper&gt;<br>
&gt;&gt;<br>
&gt;&gt; int main(int argc, char *argv[])<br>
&gt;&gt; {<br>
&gt;&gt;         vtkImageReader *reader = vtkImageReader::New();<br>
&gt;&gt;         reader-&gt;SetFileName(file.c_str());<br>
&gt;&gt;         reader-&gt;SetFileDimensionality(3);<br>
&gt;&gt;         reader-&gt;SetNumberOfScalarComponents(1);<br>
&gt;&gt;         reader-&gt;SetDataExtent(0,512,0,512,0,512);<br>
&gt;&gt;         reader-&gt;SetDataSpacing(0.145, 0.145, 0.145);<br>
&gt;&gt;         reader-&gt;SetDataByteOrderToBigEndian();<br>
&gt;&gt;         reader-&gt;SetDataScalarTypeToChar();<br>
&gt;&gt;         reader-&gt;Update();<br>
&gt;&gt;<br>
&gt;&gt;         vtkSmartPointer&lt;vtkDataSetMapper&gt; map =<br>
&gt;&gt; vtkSmartPointer&lt;vtkDataSetMapper&gt;::New();<br>
&gt;&gt;         map-&gt;SetInputConnection(reader-&gt;GetOutputPort());<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;         vtkSmartPointer&lt;vtkActor&gt; actor =<br>
&gt;&gt; vtkSmartPointer&lt;vtkActor&gt;::New();<br>
&gt;&gt;         actor-&gt;SetMapper(map);<br>
&gt;&gt;<br>
&gt;&gt;         vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; interactor =<br>
&gt;&gt; vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>
&gt;&gt;<br>
&gt;&gt;         vtkSmartPointer&lt;vtkRenderWindow&gt; renderWindow =<br>
&gt;&gt; vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<br>
&gt;&gt;         interactor-&gt;SetRenderWindow(renderWindow);<br>
&gt;&gt;         vtkSmartPointer&lt;vtkRenderer&gt; renderer =<br>
&gt;&gt; vtkSmartPointer&lt;vtkRenderer&gt;::New();<br>
&gt;&gt;         renderWindow-&gt;AddRenderer(renderer);<br>
&gt;&gt;         renderer-&gt;AddActor(actor);<br>
&gt;&gt;<br>
&gt;&gt;         renderWindow-&gt;Render();<br>
&gt;&gt;         interactor-&gt;Start();<br>
&gt;&gt; }<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html" target="_blank">http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html</a><br>
&gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 14<br>
&gt;&gt; Date: Tue, 9 Jul 2013 11:38:50 -0400<br>
&gt;&gt; From: Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;<br>
&gt;&gt; Subject: Re: [vtkusers] .RAW file<br>
&gt;&gt; To: Massinissa Bandou &lt;<a href="mailto:Massinissa.Bandou@usherbrooke.ca" target="_blank">Massinissa.Bandou@usherbrooke.ca</a>&gt;<br>
&gt;&gt; Cc: VTK Users &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
&gt;&gt; Message-ID:<br>
&gt;&gt;         &lt;<br>
&gt;&gt; <a href="mailto:CADZJ4hNXVuS_7L9ocCzex3XHpqyg5dpdKJ2NmxfQn_DnaSDp_Q@mail.gmail.com" target="_blank">CADZJ4hNXVuS_7L9ocCzex3XHpqyg5dpdKJ2NmxfQn_DnaSDp_Q@mail.gmail.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt;&gt;<br>
&gt;&gt; If your data is 512x512x512 then<br>
&gt;&gt; reader-&gt;SetDataExtent(0,512,0,512,0,512);<br>
&gt;&gt; should be:<br>
&gt;&gt; reader-&gt;SetDataExtent(0,511,0,511,0,511);<br>
&gt;&gt;<br>
&gt;&gt; Also be certain you are setting the correct endianness.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Jul 9, 2013 at 10:25 AM, Massinissa Bandou &lt;<br>
&gt;&gt; <a href="mailto:Massinissa.Bandou@usherbrooke.ca" target="_blank">Massinissa.Bandou@usherbrooke.ca</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Hello everyone,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I tried to read a (.raw) file with the following code but it displays a<br>
&gt;&gt; RED<br>
&gt;&gt; &gt; CUBE. Here is some information about my file  dataInfo.txt<br>
&gt;&gt; &gt; &lt;<a href="http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5721842/dataInfo.txt</a>&gt;  . Is<br>
&gt;&gt; there<br>
&gt;&gt; &gt; something wrong in my code?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; thx for your time and help!<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; sorry my file is too large to be send.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; #include &lt;vtkSmartPointer.h&gt;<br>
&gt;&gt; &gt; #include &lt;vtkRenderWindow.h&gt;<br>
&gt;&gt; &gt; #include &lt;vtkRenderWindowInteractor.h&gt;<br>
&gt;&gt; &gt; #include &lt;vtkRenderer.h&gt;<br>
&gt;&gt; &gt; #include &lt;vtkActor&gt;<br>
&gt;&gt; &gt; #include &lt;vtkImageReader&gt;<br>
&gt;&gt; &gt; #include &lt;vtkDataSetMapper&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; int main(int argc, char *argv[])<br>
&gt;&gt; &gt; {<br>
&gt;&gt; &gt;         vtkImageReader *reader = vtkImageReader::New();<br>
&gt;&gt; &gt;         reader-&gt;SetFileName(file.c_str());<br>
&gt;&gt; &gt;         reader-&gt;SetFileDimensionality(3);<br>
&gt;&gt; &gt;         reader-&gt;SetNumberOfScalarComponents(1);<br>
&gt;&gt; &gt;         reader-&gt;SetDataExtent(0,512,0,512,0,512);<br>
&gt;&gt; &gt;         reader-&gt;SetDataSpacing(0.145, 0.145, 0.145);<br>
&gt;&gt; &gt;         reader-&gt;SetDataByteOrderToBigEndian();<br>
&gt;&gt; &gt;         reader-&gt;SetDataScalarTypeToChar();<br>
&gt;&gt; &gt;         reader-&gt;Update();<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;         vtkSmartPointer&lt;vtkDataSetMapper&gt; map =<br>
&gt;&gt; &gt; vtkSmartPointer&lt;vtkDataSetMapper&gt;::New();<br>
&gt;&gt; &gt;         map-&gt;SetInputConnection(reader-&gt;GetOutputPort());<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;         vtkSmartPointer&lt;vtkActor&gt; actor =<br>
&gt;&gt; vtkSmartPointer&lt;vtkActor&gt;::New();<br>
&gt;&gt; &gt;         actor-&gt;SetMapper(map);<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;         vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; interactor =<br>
&gt;&gt; &gt; vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;         vtkSmartPointer&lt;vtkRenderWindow&gt; renderWindow =<br>
&gt;&gt; &gt; vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<br>
&gt;&gt; &gt;         interactor-&gt;SetRenderWindow(renderWindow);<br>
&gt;&gt; &gt;         vtkSmartPointer&lt;vtkRenderer&gt; renderer =<br>
&gt;&gt; &gt; vtkSmartPointer&lt;vtkRenderer&gt;::New();<br>
&gt;&gt; &gt;         renderWindow-&gt;AddRenderer(renderer);<br>
&gt;&gt; &gt;         renderer-&gt;AddActor(actor);<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;         renderWindow-&gt;Render();<br>
&gt;&gt; &gt;         interactor-&gt;Start();<br>
&gt;&gt; &gt; }<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; View this message in context:<br>
&gt;&gt; &gt; <a href="http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html" target="_blank">http://vtk.1045678.n5.nabble.com/RAW-file-tp5721842.html</a><br>
&gt;&gt; &gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&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;<br>
&gt;&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Unpaid intern in BillsBasement at noware dot com<br>
&gt;&gt; -------------- next part --------------<br>
&gt;&gt; An HTML attachment was scrubbed...<br>
&gt;&gt; URL: &lt;<br>
&gt;&gt; <a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/b188c2b1/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/b188c2b1/attachment-0001.htm</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 15<br>
&gt;&gt; Date: Tue, 9 Jul 2013 08:46:33 -0700 (PDT)<br>
&gt;&gt; From: Ruff &lt;<a href="mailto:albin.nilsson@gmail.com" target="_blank">albin.nilsson@gmail.com</a>&gt;<br>
&gt;&gt; Subject: [vtkusers] My point cloud data won&#39;t display in the renderer.<br>
&gt;&gt; To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt;&gt; Message-ID: &lt;<a href="mailto:1373384793963-5721844.post@n5.nabble.com" target="_blank">1373384793963-5721844.post@n5.nabble.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset=us-ascii<br>
&gt;&gt;<br>
&gt;&gt; All i get is an empty renderWindow. I get no errors, but no data is<br>
&gt;&gt; rendered<br>
&gt;&gt; either. What am I doing wrong?<br>
&gt;&gt;<br>
&gt;&gt; What I do is pretty much this:<br>
&gt;&gt;<br>
&gt;&gt; AtomGrid=vtk.vtkUnstructuredGrid()<br>
&gt;&gt; AtomGrid.SetPoints(    vtkPoints with [index,x,y,z]    )<br>
&gt;&gt; AtomGrid.GetPointData().SetScalars(    vtkFloatArray with [index, scalar]<br>
&gt;&gt; )<br>
&gt;&gt;<br>
&gt;&gt; volMapper = vtk.vtkUnstructuredGridVolumeRayCastMapper()<br>
&gt;&gt; volMapper.SetBlendModeToComposite()<br>
&gt;&gt; volMapper.SetInput(AtomGrid)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I tried volMapper.SetScalarModeToUsePointFieldData(), but then it claims<br>
&gt;&gt; that I have no scalar values to use(!!)<br>
&gt;&gt;<br>
&gt;&gt; (I cheated before, and was satisfied using ImageData for this, but now I<br>
&gt;&gt; really need to get this to work with UnstructuredGrid)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html" target="_blank">http://vtk.1045678.n5.nabble.com/My-point-cloud-data-won-t-display-in-the-renderer-tp5721844.html</a><br>




&gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; vtkusers mailing list<br>
&gt;&gt; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; End of vtkusers Digest, Vol 111, Issue 16<br>
&gt;&gt; *****************************************<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; *Best  Regards<br>
&gt; Rahul Indoria<br>
&gt; Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212" target="_blank">+49-157-35652212</a>*<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20130709/e6f9bcc4/attachment.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20130709/e6f9bcc4/attachment.htm</a>&gt;<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
vtkusers mailing list<br>
<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
End of vtkusers Digest, Vol 111, Issue 17<br>
*****************************************<span><font color="#888888"><br>
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(0,0,255)"><b>Best  Regards<br>Rahul Indoria<br>

Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212" target="_blank">+49-157-35652212</a></b></span><br>
</div>
</font></span></font></span></div></div></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(0,0,255)"><b>Best  Regards<br>Rahul Indoria<br>Mobile No: <a href="tel:%2B49-157-35652212" value="+4915735652212" target="_blank">+49-157-35652212</a></b></span><br>

</div>
</font></span></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://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>